CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] cmake: command not found

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vivek05

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2018, 10:05
Default cmake: command not found
  #1
New Member
 
Join Date: Jul 2018
Posts: 3
Rep Power: 7
ali_kerem is on a distinguished road
Hello Everyone,

I'm trying to install OpenFoam-5.0 and ThirdParty-5.0 on Centos 7.5 x86_64.
I'm trying to follow this guide -> https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL

2.2 CentOS 7.4 (1708), after step 8 when I try to do step 9 it gives error about cmake;

./makeCGAL: line 274: cmake: command not found


when I try to do step 8 again it gives this output;

$ ./makeCmake
---------------
Already built: cmake-3.9.0


how to break this paradox?
ali_kerem is offline   Reply With Quote

Old   July 4, 2018, 16:20
Default
  #2
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Did you refresh your bash environment by
Code:
wmRefresh
fertinaz is offline   Reply With Quote

Old   July 5, 2018, 01:15
Default
  #3
New Member
 
Join Date: Jul 2018
Posts: 3
Rep Power: 7
ali_kerem is on a distinguished road
that does not change anything
ali_kerem is offline   Reply With Quote

Old   July 5, 2018, 03:28
Default
  #4
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Try appending cmake/bin folder to your $PATH manually then. But this is weird.
fertinaz is offline   Reply With Quote

Old   July 5, 2018, 07:59
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by ali_kerem View Post
Hello Everyone,

I'm trying to install OpenFoam-5.0 and ThirdParty-5.0 on Centos 7.5 x86_64.
I'm trying to follow this guide -> https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL

2.2 CentOS 7.4 (1708), after step 8 when I try to do step 9 it gives error about cmake;

./makeCGAL: line 274: cmake: command not found


when I try to do step 8 again it gives this output;

$ ./makeCmake
---------------
Already built: cmake-3.9.0


how to break this paradox?



See what "makeCGAL -help" tells you, perhaps it has a -cmake option too. In the 1712, 1806 versions (maybe earlier too) this will also examine the platforms/ directories when trying to resolve a particular cmake version.


/mark
olesen is offline   Reply With Quote

Old   July 5, 2018, 09:43
Default
  #6
New Member
 
Join Date: Jul 2018
Posts: 3
Rep Power: 7
ali_kerem is on a distinguished road
Quote:
Originally Posted by fertinaz View Post
Try appending cmake/bin folder to your $PATH manually then. But this is weird.
after changing .bash_profile and trying again, it acts like CGAL installed I think but there is no makeCGAL step or anything in the guide or should i follow Centos 6.9 guide?


Code:
== Detect external libraries ==
-- External libraries supported: GMP;GMPXX;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE
-- Preconfiguring library: GMP ...
-- Could NOT find GMP (missing: GMP_LIBRARIES GMP_INCLUDE_DIR)
CMake Error at cmake/modules/CGAL_SetupDependencies.cmake:66 (message):
  CGAL requires GMP to be found
Call Stack (most recent call first):
  CMakeLists.txt:681 (include)


-- Configuring incomplete, errors occurred!
See also "/home/aero/OpenFOAM/ThirdParty-5.0/build/linux64Gcc/CGAL-4.10/CMakeFiles/CMakeOutput.log".
+ exit 1
CMakeOutput.log doesn't have anything includes error



Quote:
Originally Posted by olesen View Post
See what "makeCGAL -help" tells you, perhaps it has a -cmake option too. In the 1712, 1806 versions (maybe earlier too) this will also examine the platforms/ directories when trying to resolve a particular cmake version.


/mark
makeCGAL -help does not help because it doesn't exist and I think makeCGAL step is missing in Centos 7.4 guide
ali_kerem is offline   Reply With Quote

Old   August 17, 2018, 16:02
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!


I'm late to this, but the problem with CMake is that OpenFOAM 5.0 had a bug in the file "etc/config.sh/paraview", which was reported here: https://bugs.openfoam.org/view.php?id=2648
This is also why I wrote the instructions at openfoamwiki to use 5.x instead of 5.0
If this is still a problem, then download this file https://github.com/OpenFOAM/OpenFOAM...ig.sh/paraview and replace the one at ... bah, here is the commands that do this for you:
Code:
mv $WM_PROJECT_DIR/etc/config.sh/paraview $WM_PROJECT_DIR/etc/config.sh/paraview.50
wget https://raw.githubusercontent.com/OpenFOAM/OpenFOAM-5.x/master/etc/config.sh/paraview -O $WM_PROJECT_DIR/etc/config.sh/paraview

wmRefresh
With this cmake is ready to be used.



As for the problem with CGAL, my guess is that it could be because the packages "mpfr-devel gmp-devel" were not installed or because the wrong CMake version was being used...


@ali_kerem: If you still have this issue and want to fix it, please let us know.


Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 8, 2019, 12:55
Default
  #8
Member
 
Vivek
Join Date: Mar 2018
Location: India
Posts: 54
Rep Power: 8
vivek05 is on a distinguished road
Hi

Quote:
Originally Posted by wyldckat View Post
Greetings to all!
[CODE]mv $WM_PROJECT_DIR/etc/config.sh/paraview $WM_PROJECT_DIR/etc/config.sh/paraview.50
wget https://raw.githubusercontent.com/OpenFOAM/OpenFOAM-5.x/master/etc/config.sh/paraview -O $WM_PROJECT_DIR/etc/config.sh/paraview
I am also facing same kind of error despite following the above steps.

when making ./makeCGAL
PHP Code:
removing old build directory
    
/home/vvmk/OpenFOAM/ThirdParty-5.0/build/linux64Gcc48/CGAL-4.10
----
Configuring CGAL-4.10 with boost 105500
    Source         
: /home/vvmk/OpenFOAM/ThirdParty-5.0/CGAL-4.10
    Build          
: /home/vvmk/OpenFOAM/ThirdParty-5.0/build/linux64Gcc48/CGAL-4.10
    Target         
: /home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc48/CGAL-4.10
    ThirdParty     
boost
    ThirdParty     
gmp/mpfr
----
cmake -DCMAKE_INSTALL_PREFIX=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc48/CGAL-4.10 -DCMAKE_BUILD_TYPE=Release -DWITH_CGAL_Qt5=OFF -DBoost_INCLUDE_DIR=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc48/boost_1_55_0/include -DBoost_LIBRARY_DIRS=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc48/boost_1_55_0/lib -DBoost_THREAD_LIBRARY=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc48/boost_1_55_0/lib/libboost_thread.so -DBoost_THREAD_LIBRARY_RELEASE=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc48/boost_1_55_0/lib/libboost_thread.so -DBoost_SYSTEM_LIBRARY=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc48/boost_1_55_0/lib/libboost_system.so -DBoost_SYSTEM_LIBRARY_RELEASE=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc48/boost_1_55_0/lib/libboost_system.so -DBoost_VERSION=105500 -DGMP_INCLUDE_DIR=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64/gmp-5.1.2/include -DGMP_LIBRARIES_DIR=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64/gmp-5.1.2/lib64 -DGMP_LIBRARIES=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64/gmp-5.1.2/lib64/libgmp.so -DGMPXX_INCLUDE_DIR=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64/gmp-5.1.2/include -DGMPXX_LIBRARIES=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64/gmp-5.1.2/lib64/libgmpxx.so -DMPFR_INCLUDE_DIR=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64/mpfr-3.1.2/include -DMPFR_LIBRARIES_DIR=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64/mpfr-3.1.2/lib64 -DMPFR_LIBRARIES=/home/vvmk/OpenFOAM/ThirdParty-5.0/platforms/linux64/mpfr-3.1.2/lib64/libmpfr.so /home/vvmk/OpenFOAM/ThirdParty-5.0/CGAL-4.10
./makeCGALline 274cmakecommand not found
+ exit 
could you clarify this?
vivek05 is offline   Reply With Quote

Old   January 8, 2019, 16:56
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by vivek05 View Post
could you clarify this?
Quick questions:
  1. Which installation instructions are you following?
  2. Which Linux Distribution are you using?
__________________
wyldckat is offline   Reply With Quote

Old   January 8, 2019, 19:27
Default
  #10
Member
 
Vivek
Join Date: Mar 2018
Location: India
Posts: 54
Rep Power: 8
vivek05 is on a distinguished road
Thanks Bruno for reply

I am trying to install OpenFOAM-5.0 in my hpc account.
I am using Red Hat Enterprise Linux

----
Sorry for the typo

*hpc account

Last edited by wyldckat; January 9, 2019 at 17:24. Reason: merged posts a few minutes apart
vivek05 is offline   Reply With Quote

Old   January 9, 2019, 17:26
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: Which version of Redhat Enterprise Linux? If you don't know how to find out, run the following command:
Code:
uname -a
wyldckat is offline   Reply With Quote

Old   January 10, 2019, 03:28
Default
  #12
Member
 
Vivek
Join Date: Mar 2018
Location: India
Posts: 54
Rep Power: 8
vivek05 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick question: Which version of Redhat Enterprise Linux? If you don't know how to find out, run the following command:
Code:
uname -a
Thanks Bruno!!

Finally installed OpenFoam 5.0
Error was due to Cmake compilation
After compiling Cmake , I executed ./makeCGAL it's done without any error
wyldckat likes this.
vivek05 is offline   Reply With Quote

Old   September 3, 2019, 15:27
Default
  #13
New Member
 
Rahul
Join Date: Aug 2019
Posts: 3
Rep Power: 6
Monrah is on a distinguished road
Quote:
Originally Posted by vivek05 View Post
Thanks Bruno!!

Finally installed OpenFoam 5.0
Error was due to Cmake compilation
After compiling Cmake , I executed ./makeCGAL it's done without any error



How did you compile cmake?
I've used ./makeCmake command to build the cmake3.9.0. After the it is showing that cmake is build, if I use commands like make, then it says that cmake-3.9.0 is already built.
But when I use ./makeCGAL then it says that cmake command not found.
What should I do to compile cmake successfully? And I am installing openfoam5.0 on my lab cluster.

Any help regarding this?

Last edited by Monrah; September 9, 2019 at 09:44.
Monrah is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[RapidCFD] Discussion thread on how to install and use RapidCFD newoscar OpenFOAM Community Contributions 84 September 2, 2022 01:04
[Gmsh] Insatlling gmsh from the source code-issue? CFD-Lover OpenFOAM Meshing & Mesh Conversion 20 June 12, 2018 06:39
[OpenFOAM] Problem with paraFoam on a linux-64 bit bunni ParaView 4 April 14, 2010 20:55
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45


All times are GMT -4. The time now is 17:21.