CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] openfoam 2.3.0 installation in RHEL 5 (https://www.cfd-online.com/Forums/openfoam-installation/135658-openfoam-2-3-0-installation-rhel-5-a.html)

cfdsat May 16, 2014 05:03

openfoam 2.3.0 installation in RHEL 5
 
Hi All,


I would like to know whether I can install OF 2.30 in red hat linux 5.

Regards
Pratap

f0208secretx May 23, 2014 12:03

Install OpenFOAM 2.3.0 on RHEL4
 
I am trying to install 2.3.0 on RHEL 4.1.2 on a cluster, following the instructions of
http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL

I was able to follow all the steps except for the one:
Code:

#forcefully load Open-MPI into the environment
#the export command has been reported as needed due to the
#module not being available in a clean installation
module load openmpi-x86_64 || export PATH=$PATH:/usr/lib64/openmpi/bin
 
#here you can change 4 to the number of cores you've got
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 foamCompiler=ThirdParty \
WM_COMPILER=Gcc48 WM_MPLIB=SYSTEMOPENMPI

I will have
Code:

-bash: module: command not found
I ignored this step and continue to build OpenFOAM. And at the end I have a couple of errors. I attached the log file for your reference. Thanks a lot for any help I can get.

log file: https://dl.dropboxusercontent.com/u/...-22-14.log.zip



JHW

wyldckat May 24, 2014 13:45

Greetings Pratap,

I've finished writing and testing the following instructions on CentOS 5.10: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10

I don't know which specific RHEL 5 you have, but do try those instructions and let me know if anything doesn't work as intended.

Best regards,
Bruno

wyldckat May 24, 2014 14:28

Greetings JHW,

I was going to try and install CentOS 4.8 on a virtual machine, but then I re-read your post and I think you're confusing version numbers, as there is no "RHEL 4.1.2", but RHEL 5 comes with GCC 4.1.2. You can confirm this by running:
Code:

cat /etc/*-release
It should give you something similar to this (I used CentOS 5.10):
Code:

CentOS release 5.10 (Final)
If this is the case, then I've finished writing and testing instructions for this version (CentOS/SL/RHEL 5.10) here: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10

Best regards,
Bruno

f0208secretx May 24, 2014 19:45

1 Attachment(s)
Hi Bruno,

Thanks for the reply. That was very embarrassing I was simply following the thread here http://www.howtoforge.com/how_to_fin...x_distribution And I thought the displayed version of the gcc compiler is the linux distribution version. Lesson learned!

I remove the entire Thirdparty folder and re-install it following this instruction http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL and now it works, with one minor problem. Just thought you might want to know. I had problems building setSet library (log attached).

I was able to identify the problem caused by the readline utility. I followed the solution listed here http://openfoamwiki.net/index.php/In...mpile_OpenFOAM and solved it.

Anyway, thanks a lot again.


JHW

wyldckat May 25, 2014 06:40

Hi JHW,

Many thanks for the detailed feedback! It's the second time someone tells me that this issue exists with building setSet, but I usually am not able to trigger this issue.

I'll give it another try to double-check this detail and add a sed based hack to the instructions... but I'll also try to figure out why this occurs.

By the way, knowing which RHEL version you're using would possibly make it easier for me to reproduce the same error.

edit: Figured it out why it happened and have updated the wiki page accordingly.

Best regards,
Bruno

PS: As your thread was on the same topic of installing OpenFOAM 2.3.0 on RHEL 5, I've merged the two related threads, to keep a good discussion thread on this topic!

f0208secretx May 25, 2014 11:53

Thanks. The version I was using:
Code:

-bash-3.2$ cat /etc/*-release
Red Hat Enterprise Linux Server release 5.10 (Tikanga)

JHW

wyldckat May 25, 2014 19:28

Hi JHW,

Many thanks for the feedback! Then it's pretty much the same as CentOS 5.10.

What I managed to figure out was that as I was using a clean system, I therefore didn't have the "readline" development package installed, hence setSet would not use the library "readline". But on your system, it was already installed, which lead to the error you got.

I later re-tried with CentOS 6.5 as well, to ascertain if this issue also happened there or not, but it didn't. Nonetheless, it might happen with 6.4 or older, as I vaguely remember that this issue was fixed sometime ago, namely the dependency on the "libncurses.so".

Best regards,
Bruno

mlstrawb June 2, 2014 13:32

Problem installing on CentOS 5.10
 
I have followed the recommended steps at http://openfoamwiki.net/index.php/In...EL#CentOS_5.10 for installing on our CentOS 5.10 cluster with success until the last step.

At step 18 when I run:

Code:

./makeParaView4 -qmake $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.8.4/bin/qmake PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON
It quickly fails with this output:

Code:

ParaView_SOURCE_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0
ParaView_BINARY_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0
ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0
sed: can't read /opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/VTK/Utilities/kwsys/kwsysDateStamp.cmake: No such file or directory
date-stamp:

Build stages selected
---------------------
    -config  true
    -make    true
    -install  true
---------------------
Features selected
    mesa      false
    mpi      false
    python    false
    qt        true
---------------------
Version information
    qt        4.8.4
    version  4.1.0
    major    4.1
    build    Release
MISMATCH!
    specified 4.1.0
    found   
---------------------
removing old build directory
    /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0
----
Configuring paraview-4.1.0 (major version: 4.1)
    MPI    support : false
    Python support : false
    MESA  support : false
    Qt dev support : true
    Source        : /opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0
    Build          : /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0
    Target        : /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0
    Build type    : Release
----

cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 -DBUILD_SHARED_LIBS:BOOL=ON VTK_USE_RPATH:BOOL=OFF -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON -DPARAVIEW_BUILD_QT_GUI=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/qt-4.8.4/bin/qmake -DCMAKE_BUILD_TYPE:STRING=Release /opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0

----

-- The C compiler identification is GNU
CMake Error: Could not find cmake module file: /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/2.8.12.1/CMakeCCompiler.cmake
-- The CXX compiler identification is GNU
CMake Error: Could not find cmake module file: /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/2.8.12.1/CMakeCXXCompiler.cmake
-- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc
CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:36 (TRY_COMPILE):
  Unknown extension ".c" for file

    /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/CMakeTmp/testCCompiler.c

  try_compile() works only for enabled languages.  Currently these are:

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
  CMakeLists.txt:32 (project)


-- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc -- broken
CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler
  "/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc" is not
  able to compile a simple test program.

  It fails with the following output:

 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:32 (project)


-- Configuring incomplete, errors occurred!
See also "/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/CMakeOutput.log".
See also "/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/CMakeError.log".
    Starting make
make: *** No targets specified and no makefile found.  Stop.

real    0m0.003s
user    0m0.002s
sys    0m0.001s
    Done make
    Installing ParaView to /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0
make: *** No rule to make target `install'.  Stop.
    ---
    Installation complete for paraview-4.1.0
    Set environment variables:

        export ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
    ---

Done

--------

Any insight as to what my problem is?

Thanks.

Mike

wyldckat June 2, 2014 15:17

Greetings Mike and welcome to the forum!

My first suspicion is that the error message you're getting is related to the build being made as superuser, i.e. as root. The installation instructions on the wiki were designed for building as normal user, not as root, because that way it's less likely that the person following the wiki page to skip an important step and mistakenly make an error, and when trying to fix it, accidentally completely destroys the whole system installation...

My second suspicion is that you ran out of disk space on the partition that has the folder "/opt".

My third suspicion is that "/opt" is an NFS mount, which can lead to seriously major problems when doing trying to build source code over a shared network folder, because it's a lot easier this way for metadata to not be up-to-date on time of the build.

If possible, please retry following the build instructions as a normal user. Once the build is completely done, you can copy or move only the important folders+files of the installation to "/opt" and then use chown and chmod for restoring the correct permissions.

Best regards,
Bruno

mlstrawb June 2, 2014 16:05

Bruno ... thanks for the quick reply.

You are right on one of your suspicions. I am installing as
root ... maybe not good, but I've come this far so I'll finish.

/opt is a local directory and is not running out of disk space.

As it turns out my problems were caused by yet another version of cmake that was previously installed in /opt. It was picking this up instead of the expected CentOS version from cmake-2.6.4. After I removed that from my execution path, it used the CentOS cmake and the build of ParaView 4.1.0 completed as expected.

Thanks for your help and thanks especially for such well written step-by-step instructions for installation!

Mike

mlstrawb June 3, 2014 13:26

OK ... I finished the installation into /opt as root and everything went fine.

However all of /opt/OpenFOAM is owned by root.

When I turned this over to a regular user to try out, he tested some of the tutorials and got these results:

% pwd
~/snaps/foam
% /opt/OpenFOAM/OpenFOAM-2.3.0/tutorials/Alltest -default -root ~/snaps/foam
Modifying /opt/OpenFOAM/OpenFOAM-2.3.0/etc/controlDict
cp: cannot create regular file `/opt/OpenFOAM/OpenFOAM-2.3.0/etc/controlDict.org': Permission denied
/opt/OpenFOAM/OpenFOAM-2.3.0/tutorials/Alltest: line 174: /opt/OpenFOAM/OpenFOAM-2.3.0/etc/controlDict: Permission denied
Copying the tutorials
cp: cannot create directory `../tutorialsTest': Permission denied
Modifying the controlDicts to run only one time step
/opt/OpenFOAM/OpenFOAM-2.3.0/tutorials/Alltest: line 182: cd: ../tutorialsTest: No such file or directory

The installation was meant for several users to use a single install of OpenFOAM ... hence installation by root in /opt rather than having each user install OpenFOAM in his home directory. How can this be configured so multiple users can use it?

Thanks.

Mike

wyldckat June 3, 2014 17:17

Hi Mike,

Quote:

Originally Posted by mlstrawb (Post 495401)
However all of /opt/OpenFOAM is owned by root.

As long as all users have read and execute permissions, but only root can write, then it's ready to be used ;)

Quote:

Originally Posted by mlstrawb (Post 495401)
How can this be configured so multiple users can use it?

The OpenFOAM User Guide starts off in the introduction section of Chapter 2 on how to deal with the tutorials, i.e. first make a copy (of the tutorials folder) for personal use :D.

Quoting myself from a few minutes ago, both you and the users can find the OpenFOAM Guides at the following locations:
Quote:

Originally Posted by wyldckat (Post 468318)

Best regards,
Bruno

mlstrawb June 6, 2014 10:25

OK ... it turns out the final step 17 running ./Allwmake in PVReaders directory did not work. Here is the output from running that:


Code:

wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV4Readers.C
SOURCE=vtkPV4Readers.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4Readers.o
'/opt/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc48DPOpt/lib/libvtkPV4Readers.so' is up to date.
+ '[' -d /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 -a -r /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 ']'
+ wmake libso vtkPV4blockMesh
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV4blockMesh.C
Making dependency list for source file vtkPV4blockMeshConvert.C
Making dependency list for source file vtkPV4blockMeshUtils.C
SOURCE=vtkPV4blockMesh.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -I../../vtkPV4Readers/lnInclude -I../PV4blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4blockMesh.o
SOURCE=vtkPV4blockMeshConvert.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -I../../vtkPV4Readers/lnInclude -I../PV4blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4blockMeshConvert.o
SOURCE=vtkPV4blockMeshUtils.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -I../../vtkPV4Readers/lnInclude -I../PV4blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4blockMeshUtils.o
'/opt/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc48DPOpt/lib/libvtkPV4blockMesh.so' is up to date.
+ cd PV4blockMeshReader
+ mkdir -p Make/linux64Gcc48DPOpt
+ cd Make/linux64Gcc48DPOpt
+ cmake ../..
-- The C compiler identification is GNU
CMake Error: Could not find cmake module file: /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/2.8.12.1/CMakeCCompiler.cmake
-- The CXX compiler identification is GNU
CMake Error: Could not find cmake module file: /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/2.8.12.1/CMakeCXXCompiler.cmake
-- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc
CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:36 (TRY_COMPILE):
  Unknown extension ".c" for file

    /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeTmp/testCCompiler.c

  try_compile() works only for enabled languages.  Currently these are:

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
 


-- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc -- broken
CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler
  "/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc" is not
  able to compile a simple test program.

  It fails with the following output:

 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
 


-- Configuring incomplete, errors occurred!
See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeOutput.log".
See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeError.log".
+ make
make: *** No targets specified and no makefile found.  Stop.
+ '[' -d /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 -a -r /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 ']'
+ wmake libso vtkPV4Foam
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV4Foam.C
Making dependency list for source file vtkPV4FoamFields.C
Making dependency list for source file vtkPV4FoamMesh.C
Making dependency list for source file vtkPV4FoamMeshLagrangian.C
Making dependency list for source file vtkPV4FoamMeshSet.C
Making dependency list for source file vtkPV4FoamMeshVolume.C
Making dependency list for source file vtkPV4FoamMeshZone.C
Making dependency list for source file vtkPV4FoamUpdateInfo.C
Making dependency list for source file vtkPV4FoamUtils.C
SOURCE=vtkPV4Foam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4Foam.o
SOURCE=vtkPV4FoamFields.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamFields.o
SOURCE=vtkPV4FoamMesh.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMesh.o
SOURCE=vtkPV4FoamMeshLagrangian.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMeshLagrangian.o
SOURCE=vtkPV4FoamMeshSet.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMeshSet.o
SOURCE=vtkPV4FoamMeshVolume.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMeshVolume.o
SOURCE=vtkPV4FoamMeshZone.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMeshZone.o
SOURCE=vtkPV4FoamUpdateInfo.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamUpdateInfo.o
SOURCE=vtkPV4FoamUtils.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamUtils.o
'/opt/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc48DPOpt/lib/libvtkPV4Foam.so' is up to date.
+ cd PV4FoamReader
+ mkdir -p Make/linux64Gcc48DPOpt
+ cd Make/linux64Gcc48DPOpt
+ cmake ../..
-- The C compiler identification is GNU
CMake Error: Could not find cmake module file: /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/2.8.12.1/CMakeCCompiler.cmake
-- The CXX compiler identification is GNU
CMake Error: Could not find cmake module file: /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/2.8.12.1/CMakeCXXCompiler.cmake
-- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc
CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:36 (TRY_COMPILE):
  Unknown extension ".c" for file

    /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeTmp/testCCompiler.c

  try_compile() works only for enabled languages.  Currently these are:

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
 


-- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc -- broken
CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler
  "/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc" is not
  able to compile a simple test program.

  It fails with the following output:

 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
 


-- Configuring incomplete, errors occurred!
See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeOutput.log".
See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeError.log".
+ make
make: *** No targets specified and no makefile found.  Stop.

As a result, a user running paraFoam got the message:

Code:

%paraFoam

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
./Allwclean
./Allwmake

I saw a message in a different CFD thread that suggested using the builtin reader with "paraFoam -builtin" ... but that was not with CentOS 5.

Is this what we should suggest to users or is there a way to get the PV4Readers to install correctly?

Thanks.

Mike

wyldckat June 7, 2014 10:26

Hi Mike,

The option "-builtin" is related to the ParaView version, and since the version installed with OpenFOAM 2.3.0 is ParaView 4.1.0, it should work just fine on CentOS 5.

As for the build problem, it's the same error you got when you tried building ParaView, where the older CMake version was getting in the way and messing up the build process. Have a look at post #9, where the output error you reported is essentially the same.

Best regards,
Bruno

PS: Please, when posting code, file contents or data output, use the "[CODE]" markers, as explained here: Posting code and output with [CODE]

mlstrawb June 9, 2014 10:09

That doesn't seem to be the same problem here.

Even after verifying that it is using cmake from /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/cmake-2.8.12.1/bin/cmake it fails.

I should note that there was a break between running steps 1-15 and then finishing with steps 16-17. I had to logout after step 15 ... then later login and finish with steps 16-17. Perhaps I missed setting up some ENV variable somewhere. After I logged back in I ran:

source /opt/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc foamCompiler=ThirdParty WM_COMPILER
=Gcc48 WM_MPLIB=SYSTEMOPENMPI

then

cd $WM_THIRD_PARTY_DIR ./makeParaView4 -qmake $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.8.4/bin/qmake PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers wmSET $FOAM_SETTINGS ./Allwclean ./Allwmake

wyldckat June 9, 2014 13:27

Hi Mike,

Back in post #11, you wrote this:
Quote:

Originally Posted by mlstrawb (Post 495262)
As it turns out my problems were caused by yet another version of cmake that was previously installed in /opt. It was picking this up instead of the expected CentOS version from cmake-2.6.4. After I removed that from my execution path, it used the CentOS cmake and the build of ParaView 4.1.0 completed as expected.

I don't know what you did back then to keep the old CMake out of sight, because the environment prepared by OpenFOAM's "bashrc" file should make the custom build of CMake 2.8.12 to be always found before any other version...


Perhaps ParaView didn't end up being build with success? To check if ParaView was built with success, the easiest is to run the following command on a shell environment ready to use OpenFOAM:
Code:

which paraview
If it doesn't tell you that the path is at:
Code:

/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/bin/paraview
or similar, then wrong also occurred while building ParaView itself.

Although if the Allwmake script did try to build the PV4Readers, then ParaView should have been built with success.


Therefore, going back to the latest error message you had posted before, there is this line clearly indicating that the old CMake version is being picked up:
Quote:

Originally Posted by mlstrawb (Post 495929)
Code:

CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:52

and this path shouldn't be picked up while building either ParaView nor PV4Readers.

Best regards,
Bruno

mlstrawb June 9, 2014 14:33

Hi Bruno,

You are right (of course). I was so fixated on finding the correct cmake in PATH that I forgot all about the setting of CMAKE_ROOT environment variable ... which was set to the conflicting cmake version at /opt/cmake.

Thanks again.
Mike

DAPHNE June 10, 2014 20:00

Hi Bruno,

I am using Cent OS Version 6.5...I followed the steps in Wiki to install OpenFOAM 2.3.0.
http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL

And when I was running step #7
Code:

module load openmpi-x86_64 || export PATH=$PATH:/usr/lib64/openmpi/bin
I get this error:
Code:

init.c(556):ERROR:161: Cannot initialize TCL
So logged in as a root and successfully executed this this command and furthur proceeded every step as a root user.

But executing the next command as follows, I received an error as follows:
Code:

[root@CAE CAE]# source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 foamCompiler=ThirdParty WM_COMPILER=Gcc48 WM_MPLIB=SYSTEMOPENMPI
Error:
Code:

Cannot open configuration file /home/CAE/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/openmpi-1.6.3/share/openmpi/mpicc-wrapper-data.txt
Error parsing data file mpicc: Not found

I dont know why it is still pointing to the previous version of OpenFOAM-2.2.x...I have removed the path set in .bashrc file and removed OpenFOAM-2.2.x and there is no ThirdParty-2.2.x now..
Is there anywhere else I should change the path of OpenFOAM?
I dont have any aliases.I set the environment variables in every new tab I open.But still there is an error.

But when I execute the above commands like 2 separate commands no issues as follows:
Code:

[root@CAE CAE]# source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc
[root@CAE CAE]# WM_NCOMPPROCS=4 foamCompiler=ThirdParty WM_COMPILER=Gcc48 WM_MPLIB=SYSTEMOPENMPI

Then I proceeded with the steps.
But after executing step 14
Code:

./Allwmake > make.log 2>&1


I found error in log file.
It seems there is some problem in build.

A part of Log file contents:
Code:

home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:496: error:  was not declared in this scope /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:497: error:  was not declared in this scope
 /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:503: error:  has no member named 
 /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:503: error:  was not declared in this scope
 /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:504: error: expected initializer before  token
 /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:505: error:  was not declared in this scope
/home/CAE/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/surfaceMeshImport
 /usr/bin/ld: cannot find -lOpenFOAM
 collect2: ld returned 1 exit status
 make[2]: *** [/home/CAE/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/surfaceMeshImport] Error 1
 make[1]: *** [surfaceMeshImport] Error 2



After running the foamInstallationTest I got the following:
Code:

Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              CAE
OS:                Linux version 2.6.32-431.17.1.el6.x86_64
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/CAE/OpenFOAM                      yes      yes
$WM_PROJECT_USER_DIR /home/CAE/OpenFOAM/CAE-2.3.0            no        no
$WM_THIRD_PARTY_DIR  /home/CAE/OpenFOAM/ThirdParty-2.3.0      yes      yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /home/CAE/OpenFOAM/OpenFOAM-2.3.0        yes  yes  yes

$FOAM_APPBIN        ...-2.3.0/platforms/linux64GccDPOpt/bin  yes  yes  yes
$FOAM_SITE_APPBIN    .../2.3.0/platforms/linux64GccDPOpt/bin  no        no
$FOAM_USER_APPBIN    ...-2.3.0/platforms/linux64GccDPOpt/bin  no        no
$WM_DIR              /home/CAE/OpenFOAM/OpenFOAM-2.3.0/wmake  yes  yes  yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN        ...-2.3.0/platforms/linux64GccDPOpt/lib  yes  yes  yes
$FOAM_SITE_LIBBIN    .../2.3.0/platforms/linux64GccDPOpt/lib  no        no
$FOAM_USER_LIBBIN    ...-2.3.0/platforms/linux64GccDPOpt/lib  no        no
$MPI_ARCH_PATH      ...0/platforms/linux64Gcc/openmpi-1.6.5  yes  yes  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version  Location
-------------------------------------------------------------------------------
flex    2.5.35    /usr/bin/flex                                           
ERROR: gcc version is too old for this release of OpenFOAM
    User version    : 4.4.7
    Minimum required: 4.5.0

gcc      4.4.7    /usr/bin/gcc                                           
gzip    1.3.12    /usr/bin/gzip                                           
tar      1.23      /bin/tar                                               
icoFoam         
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/CAE/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/icoFoam
          current path            :
          CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
The system test has evoked 1 fatal error(s).
The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for troubleshooting.

Done


Any suggestions for changing the OpenFOAm settings for Conflicting installation is appreciated.

wyldckat June 15, 2014 08:34

Greetings DAPHNE,

This error message:
Quote:

Originally Posted by DAPHNE (Post 496471)
Code:

module load openmpi-x86_64 || export PATH=$PATH:/usr/lib64/openmpi/bin
I get this error:
Code:

init.c(556):ERROR:161: Cannot initialize TCL

can be ignored. Please do not switch to root mode for building/installing OpenFOAM, otherwise you risk damaging your whole Linux installation.

If you had continued to proceeded with the installation instructions as they are written, you wouldn't have gotten all of these problems :(

I'll make a note of this in the wiki pages, so that people won't fall into the same line of thought.

Best regards,
Bruno

pgiannuzzi July 27, 2014 17:00

Problems Installing OpenFOAM 2.3.0 on centOS 5.10
 
1 Attachment(s)
I am trying to install 2.3.0 on CentOS 5.10 using the installation tutorial at:
http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL

When I get to the openFOAM build check (step 16) icoFoam does not exist. I also find the following error in the make.log:
error: call of overloaded

I have attached part of the make.log, the entire make.log is too large to attach. Any insight you can provide would be greatly appreciated.

wyldckat August 4, 2014 13:08

Greetings pgiannuzzi and welcome to the forum!

Sorry for taking so long to answer back, but I didn't manage to have enough time to come to the forum any sooner.

I don't know if you've managed to solve this issue or not, but from what I can see from the log file you're attached, there are two issues that seem to have occurred:
  1. You're building as "root", namely with administrative powers. This is dangerous as one wrong step is more than enough to damage your system installation and have to reinstall everything again if something critical is damaged. My guess is that you missed the step #4 which explicitly states that you should run the command "exit" before proceeding, as this will exit from root mode :(.
  2. The first error message I could see in the log file leads me to believe that the correct GCC 4.8 compiler was not built with success. If you go into the ThirdParty-2.3.0 folder:
    Code:

    cd $WM_THIRD_PARTY_DIR
    there are 2 files there: "mkgcc.log" and "mkbinutils.log" - which should tell us what happened when GCC and binutils were built with success or not.
    The simplest test is to simply run:
    Code:

    gcc --version
    If it does not state something about being the version 4.8.1, then something definitely went wrong and those 2 files should tell us why.
Best regards,
Bruno

pgiannuzzi August 9, 2014 12:58

Problems Installing OpenFOAM 2.3.0 on CentOS 5.10
 
Bruno -

Thank you very much for your help. I see what you are saying about installing as root. I deleted the OpenFOAM directory that I had created as root and went through the steps again as a new user (including exiting at step 4).
Now when I type: gcc --version
I get: gcc (OpenFOAM) 4.8.1
This makes me think that gcc was installed ok and I do not need to go through the large mkgcc.log and mkbinutils.log files in detail (correct me if I am wrong).

I run into problems after step 15. Looking in the make.log I see:
Code:

cp -f ../bin/d[agm]* /home/pgiannuzzi/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/scotch_6.0.0/bin
cp: cannot stat `../bin/d[agm]*': No such file or directory
make: [install] Error 1 (ignored)



This is causing be to run into problems when I get to step 18 and try to make paraview I get:
Code:

qmake not found under specified QMAKE_PATH
      QMAKE_PATH=/home/pgiannuzzi/OpenFOAM/ThirdPARTY-2.3.0/platforms/linux64Gcc48/qt-4.8.4/bin/qmake
leaving unspecified
 
 *** Error: cannot find qmake either at $QMAKE_PATH or in current $PATH



This is because there is no qt-4.8.4 directory within the linux64Gcc48 directory.

Any thoughts on this one. If I havn't given you enough info, please let me know what I can provide that might help.

Thanks again;
Paul

wyldckat August 11, 2014 11:34

Hi Paul,

Quote:

Originally Posted by pgiannuzzi (Post 505181)
I run into problems after step 15. Looking in the make.log I see:
Code:

cp -f ../bin/d[agm]* /home/pgiannuzzi/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/scotch_6.0.0/bin
cp: cannot stat `../bin/d[agm]*': No such file or directory
make: [install] Error 1 (ignored)



Actually, that's a false positive, i.e. that error message can be ignored, as the parenthesis imply. It occurs when the Allwmake script in the "ThirdParty-*" folder is cleaning up after the Scotch library has been built. This is because the source code folder is that same one used for building as well, which can lead to conflicts if you want to build more than one architecture (e.g. to have both 32 and 64-bit).
If there are any other errors in the "make.log" file following that one, than those are most likely the ones to be concerned about.


Quote:

Originally Posted by pgiannuzzi (Post 505181)
This is causing be to run into problems when I get to step 18 and try to make paraview I get:
Code:

qmake not found under specified QMAKE_PATH
      QMAKE_PATH=/home/pgiannuzzi/OpenFOAM/ThirdPARTY-2.3.0/platforms/linux64Gcc48/qt-4.8.4/bin/qmake
leaving unspecified
 
 *** Error: cannot find qmake either at $QMAKE_PATH or in current $PATH



This is because there is no qt-4.8.4 directory within the linux64Gcc48 directory.


OK, in this case we need to look at the file "mkqt.log", which should tell us what went wrong, or at the very least, hint at what went wrong when trying to build Qt.

Best regards,
Bruno

pgiannuzzi August 11, 2014 13:12

Problems Installing OpenFOAM 2.3.0 on CentOS 5.10
 
Thanks Bruno;

I skimmed through the mkqt.log and found this text at the end of the log:

qcryptographichash.o qxmlstream.o qxmlutils.o-m64
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/pgiannuzzi/OpenFOAM/ThirdParty-2.3.0/qt-everywhere-opensource-src-4.8.4/mkspecs/linux-g64.
Error building: Qt-4.8.4

I went looking for the Linux-g64 folder in mkspecs and it is not there. Any clues on how to tackle this one? Is there a preferred method of installing Xlib?

Paul

wyldckat August 11, 2014 15:07

Hi Paul,

Sorry about that :(. I don't know what happened when I wrote the instructions, but somewhere along the line I forgot to write down all of the packages that are needed for CentOS 5.10.

I've updated the wiki page a few minutes ago: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10
But just in case, here is the complete installation command for the necessary packages:
Code:

yum install openmpi openmpi-devel zlib-devel readline-devel ncurses-devel \
texinfo gstreamer-plugins-base-devel libXext-devel libGLU-devel libXt-devel \
libXrender-devel libXinerama-devel libpng-devel libXrandr-devel libXi-devel \
libXft-devel libXcursor-devel

Then you can skip to step #17, run the first and last line on that step. This is because most of the missing packages are related to building Qt and ParaView.

Hopefully this fixes all of the remaining problems.

Best regards,
Bruno

vmgbritt December 23, 2014 11:19

Install Problems RHEL
 
1 Attachment(s)
Hi,


Thank you for developing such detailed instructions for installation of OpenFOAM on RHEL systems. I might be a bit overzealous but I jumped straight into installing 2.3.1 rather than 2.3.0 ...

I've followed your directions installing OF 2.3.1 onto A Centos 5.11 X86_64 machine.

I'm getting compilation issues and it appears the problem lies in the gcc compiler not being recognized. The mkgcc.log indicates gcc-4.8.1 is installed and built but if I execute gcc --version I get nothing. If I execute gcc -v I get 4.1.2 which was initially installed. I tried adapting your
sed -i -e 's=gcc\-4\.8\.2=gcc-4.8.1=' OpenFOAM-2.3.0/etc/config/settings.sh

to
sed -i -e 's=gcc\-4\.1\.2=gcc-4.8.1=' OpenFOAM-2.3.0/etc/config/settings.sh

Again no success.

I tried installing from devtoolset1.1 but again still gcc --version returns 4.1.2.

Pretty sure that my issues relate to the compiler version not being recognized.

Attached a zip file with log files if it would help.

Appreciate any insight you can provide.

All the best for the Holiday Season to everyone.

Britt

wyldckat December 29, 2014 20:04

Greetings Britt and welcome to posting on the forum!

Quote:

Originally Posted by vmgbritt (Post 525074)
I might be a bit overzealous but I jumped straight into installing 2.3.1 rather than 2.3.0 ...

Uhm... "overzealous" is not the word I would use... perhaps "courageous", but not "overzealous" ;)

About 3-4 days after you posted your question, I managed to copy-paste-adapt the installation instructions for OpenFOAM 2.3.1, which you can now find here: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10

My advice: delete the folders "OpenFOAM-2.3.1" and "ThirdParty-2.3.1" from within the folder "~/OpenFOAM". Then you might not need to run wget in step #6, but otherwise double-check if all other steps are done exactly as they are written ;)

Best regards,
Bruno

vmgbritt January 2, 2015 14:58

Success
 
Bruno,

Thanks for updating with the 2.3.1 instructions. I thought it was identical to what I had done previously but I guess not. At any rate it is running successfully now.

Further question that may or may not fit here. No that I have it built on one machine what is the "best" method of packaging this install to roll out to the additional 13 cluster machines I have [all identical architecture?]. I'd rather not build it on each machine ? !

Thanks,

Britt

wyldckat January 2, 2015 18:48

Hi Britt,

I'm glad it's working!

As for the deployment in multiple machines, it might depend on the level of detail you want on the slave nodes. The critical folders (if my memory serves me right) that can simply be copied are:
  • OpenFOAM-2.3.1
    • bin
    • etc
    • platforms
  • ThirdParty-2.3.1
    • platforms
Beyond that, it's only needed for the main machine or workstation for developing any new changes.

Best regards,
Bruno

cfdopenfoam March 31, 2015 10:59

paraview4.1.0-OF2.3.0 on Ubuntu 12.04
 
unfortunately i faced the same problem with paraview-4.1.0 installation.

i followed the guidelines http://www.openfoam.org/archive/2.3....oad/source.php
but i got this :

Code:

Built: cmake-2.8.12.1
yk@yk-VirtualBox:~/OpenFOAM/ThirdParty-2.3.0$ cd $WM_THIRD_PARTY_DIR
yk@yk-VirtualBox:~/OpenFOAM/ThirdParty-2.3.0$ ./makeParaView4

ParaView_SOURCE_DIR=/home/yk/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0
ParaView_BINARY_DIR=/home/yk/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0
ParaView_DIR=/home/yk/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
sed: can't read /home/yk/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/VTK/Utilities/kwsys/kwsysDateStamp.cmake: No such file or directory
date-stamp:

Build stages selected
---------------------
    -config  true
    -make    true
    -install  true
---------------------
Features selected
    mesa      false
    mpi      false
    python    false
    qt        true
---------------------
Version information
    qt        4.8.1
    version  4.1.0
    major    4.1
    build    Release
MISMATCH!
    specified 4.1.0
    found   
---------------------
----
Configuring paraview-4.1.0 (major version: 4.1)
    MPI    support : false
    Python support : false
    MESA  support : false
    Qt dev support : true
    Source        : /home/yk/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0
    Build          : /home/yk/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0
    Target        : /home/yk/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
    Build type    : Release
----

cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/yk/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0 -DBUILD_SHARED_LIBS:BOOL=ON VTK_USE_RPATH:BOOL=OFF -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_BUILD_QT_GUI=ON -DCMAKE_BUILD_TYPE:STRING=Release /home/yk/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0

----

CMake Error at CMakeLists.txt:31 (cmake_minimum_required):
  CMake 2.8.8 or higher is required.  You are running version 2.8.7


-- Configuring incomplete, errors occurred!
    Starting make
make: *** No targets specified and no makefile found.  Stop.
Command exited with non-zero status 2
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 4480maxresident)k
0inputs+0outputs (0major+331minor)pagefaults 0swaps
    Done make
    Installing ParaView to /home/yk/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
make: *** No rule to make target `install'.  Stop.
    ---
    Installation complete for paraview-4.1.0
    Set environment variables:

        export ParaView_DIR=/home/yk/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
    ---

Done

any help? thsnks a lot.


Quote:

Originally Posted by wyldckat (Post 495254)
Greetings Mike and welcome to the forum!

My first suspicion is that the error message you're getting is related to the build being made as superuser, i.e. as root. The installation instructions on the wiki were designed for building as normal user, not as root, because that way it's less likely that the person following the wiki page to skip an important step and mistakenly make an error, and when trying to fix it, accidentally completely destroys the whole system installation...

My second suspicion is that you ran out of disk space on the partition that has the folder "/opt".

My third suspicion is that "/opt" is an NFS mount, which can lead to seriously major problems when doing trying to build source code over a shared network folder, because it's a lot easier this way for metadata to not be up-to-date on time of the build.

If possible, please retry following the build instructions as a normal user. Once the build is completely done, you can copy or move only the important folders+files of the installation to "/opt" and then use chown and chmod for restoring the correct permissions.

Best regards,
Bruno


wyldckat March 31, 2015 16:04

Quote:

Originally Posted by cfdopenfoam (Post 539278)
Code:

Built: cmake-2.8.12.1
yk@yk-VirtualBox:~/OpenFOAM/ThirdParty-2.3.0$ cd $WM_THIRD_PARTY_DIR
yk@yk-VirtualBox:~/OpenFOAM/ThirdParty-2.3.0$ ./makeParaView4
[...]

CMake Error at CMakeLists.txt:31 (cmake_minimum_required):
  CMake 2.8.8 or higher is required.  You are running version 2.8.7


Quick answer: If you had followed one of the following instructions:
you would have seen what's missing, namely the need to execute this command:
Code:

wmSET
after building CMake.

cfdopenfoam March 31, 2015 22:01

OF2.3.0/1InstalltaionGuidelines
 
thank you very much for timely reply. hope that someone could see this when installing OF-2.3.0 because the command wmSET is missing in the corresponding guidelines while included in the new version of 2.3.1.

PS: i am almost new to OF and linux but i've learned a lot and solverd my own problems with the help of this forum. thanks for all!


Quote:

Originally Posted by wyldckat (Post 539310)
Quick answer: If you had followed one of the following instructions:
you would have seen what's missing, namely the need to execute this command:
Code:

wmSET
after building CMake.



All times are GMT -4. The time now is 01:57.