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

openfoam 2.3.0 installation in RHEL 5

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   May 16, 2014, 05:03
Default openfoam 2.3.0 installation in RHEL 5
  #1
New Member
 
pratap
Join Date: Nov 2013
Posts: 21
Rep Power: 3
cfdsat is on a distinguished road
Hi All,


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

Regards
Pratap
cfdsat is offline   Reply With Quote

Old   May 23, 2014, 12:03
Default Install OpenFOAM 2.3.0 on RHEL4
  #2
Member
 
J.-H. Wang
Join Date: Oct 2010
Location: Ithaca, New York
Posts: 52
Rep Power: 6
f0208secretx is on a distinguished road
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
f0208secretx is offline   Reply With Quote

Old   May 24, 2014, 13:45
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 is offline   Reply With Quote

Old   May 24, 2014, 14:28
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   May 24, 2014, 19:45
Default
  #5
Member
 
J.-H. Wang
Join Date: Oct 2010
Location: Ithaca, New York
Posts: 52
Rep Power: 6
f0208secretx is on a distinguished road
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
Attached Files
File Type: zip make-05-24-14-2ndsweep.log.zip (5.5 KB, 3 views)
f0208secretx is offline   Reply With Quote

Old   May 25, 2014, 06:40
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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!

Last edited by wyldckat; May 25, 2014 at 08:19. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   May 25, 2014, 11:53
Default
  #7
Member
 
J.-H. Wang
Join Date: Oct 2010
Location: Ithaca, New York
Posts: 52
Rep Power: 6
f0208secretx is on a distinguished road
Thanks. The version I was using:
Code:
-bash-3.2$ cat /etc/*-release
Red Hat Enterprise Linux Server release 5.10 (Tikanga)
JHW
f0208secretx is offline   Reply With Quote

Old   May 25, 2014, 19:28
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
f0208secretx likes this.
wyldckat is offline   Reply With Quote

Old   June 2, 2014, 13:32
Default Problem installing on CentOS 5.10
  #9
New Member
 
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 3
mlstrawb is on a distinguished road
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

Last edited by wyldckat; June 2, 2014 at 15:06. Reason: Added [CODE][/CODE]
mlstrawb is offline   Reply With Quote

Old   June 2, 2014, 15:17
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 is offline   Reply With Quote

Old   June 2, 2014, 16:05
Default
  #11
New Member
 
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 3
mlstrawb is on a distinguished road
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
wyldckat likes this.
mlstrawb is offline   Reply With Quote

Old   June 3, 2014, 13:26
Default
  #12
New Member
 
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 3
mlstrawb is on a distinguished road
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
mlstrawb is offline   Reply With Quote

Old   June 3, 2014, 17:17
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Mike,

Quote:
Originally Posted by mlstrawb View Post
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 View Post
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 .

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 View Post
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 6, 2014, 10:25
Default
  #14
New Member
 
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 3
mlstrawb is on a distinguished road
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

Last edited by wyldckat; June 7, 2014 at 10:20. Reason: Added [CODE][/CODE]
mlstrawb is offline   Reply With Quote

Old   June 7, 2014, 10:26
Default
  #15
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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]
wyldckat is offline   Reply With Quote

Old   June 9, 2014, 10:09
Default
  #16
New Member
 
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 3
mlstrawb is on a distinguished road
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
mlstrawb is offline   Reply With Quote

Old   June 9, 2014, 13:27
Default
  #17
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Mike,

Back in post #11, you wrote this:
Quote:
Originally Posted by mlstrawb View Post
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 View Post
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
wyldckat is offline   Reply With Quote

Old   June 9, 2014, 14:33
Default
  #18
New Member
 
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 3
mlstrawb is on a distinguished road
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
mlstrawb is offline   Reply With Quote

Old   June 10, 2014, 20:00
Default
  #19
New Member
 
DAPHNE
Join Date: Apr 2014
Posts: 6
Rep Power: 3
DAPHNE is on a distinguished road
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.

Last edited by wyldckat; June 15, 2014 at 08:35. Reason: DAPHNE: to add test result of OpenFOAM installation | wyldckat: Added [CODE][/CODE] for clarity
DAPHNE is offline   Reply With Quote

Old   June 15, 2014, 08:34
Default
  #20
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings DAPHNE,

This error message:
Quote:
Originally Posted by DAPHNE View Post
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
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to run a case with OpenFOAM 1.6-ext that works with OpenFOAM 2.3.0 Jiricbeng OpenFOAM Running, Solving & CFD 15 May 21, 2014 03:52
Openfoam 2.1 installation in ubuntu 12.04 jsm OpenFOAM Installation 11 May 7, 2012 04:56
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Installation of OpenFOAM 1.7.1 to OprnSUSE 11.2 superfxfund OpenFOAM Installation 3 November 11, 2010 03:15
Some Query on Installation of OpenFoam lzgwhy OpenFOAM Installation 1 July 15, 2009 03:20


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