CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM Install problem (http://www.cfd-online.com/Forums/openfoam/64660-openfoam-install-problem.html)

masb May 19, 2009 06:52

OpenFOAM Install problem
 
Hi Guys,

After I have installed OpenFOAM and run the foamInstallationTest I have got the following message:
Any help will be appreciated.

Regards,

Marco.

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: marco-desktop
OS: Linux version 2.6.28-11-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/marco/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/marco/OpenFOAM/marco-1.5 yes no
$WM_THIRD_PARTY_DIR /home/marco/OpenFOAM/ThirdParty 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/marco/OpenFOAM/OpenFOAM-1.5 yes yes yes

$FOAM_APPBIN ...M-1.5/applications/bin/linuxGccDPOpt yes yes yes
$FOAM_USER_APPBIN ...o-1.5/applications/bin/linuxGccDPOpt yes yes no
$WM_DIR /home/marco/OpenFOAM/OpenFOAM-1.5/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 ...nFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...OpenFOAM/marco-1.5/lib/linuxGccDPOpt yes yes no
$MPI_ARCH_PATH ...penmpi-1.2.6/platforms/linuxGccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : ../src/configure
4.3.3
Minimum required: 4.2.0

gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/marco/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR

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


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_marco-desktop Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

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

Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.

juliuslein May 19, 2009 13:59

Hello Marco,

one of the errors is that you should use the gcc which comes with OpenFOAM. Do the following:

- Open the ~/OpenFOAM/OpenFOAM-1.5-dev/etc/settings.sh (or settings.csh)
- In the section Compiler settings select the following compiler Installation and comment the other options out. It should look like this:

# compilerInstall = OpenFOAM | System
compilerInstall = OpenFOAM
# compilerInstall = System

This should fix at least the error with the gcc and will allow you to compile.

Good luck, Julius

masb May 19, 2009 19:13

Hello Julius,

thank you for your help. I have tried it without success.

Regards,

Marco.

mcjicpm2 May 25, 2009 11:32

OpenFOAM-1.5-dev compiling problem
 
Hi,:eek::cool::confused:

I have downloaded the 1.5-dev version from http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/ , but I have difficulty compiling it.
Here is the exact process that I have done:

cd /home/ad/OpenFOAM

1-I did : tar -xzf OpenFOAM-1.5-dev.General_2009-04-11.tgz
2-I did : tar -xzf ThirdParty.General_2008-12-11.tgz
3-cd etc/
4-source bashrc
5-cd ~
6-vi .bashrc
7-I added . /home/ad/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc to the end of .bashrc in home directory, then I did source .bashrc (no error sofar)
9-when I start compileing it by typing ./Allwamke after almost one hour of compiling it returns me the following error (the src files are compiled with no errors, but neither of applications are compiled, they all come with Error 1 or Error 2):

make[3]: *** [/home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/makeFaMesh] Error 1
make[2]: *** [makeFaMesh] Error 2
Making dependency list for source file curvedEdges/curvedEdge.C
Making dependency list for source file curvedEdges/lineEdge.C
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/decompositionAgglomeration/decompositionMethods/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/autoMesh/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/meshTools/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/triSurface/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/dynamicMesh/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/edgeMesh/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC Make/linux64GccDPOpt/snappyHexMesh.o -L/home/ad/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt \
-L/home/ad/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/openmpi-1.2.6 -lparMetisDecompositionMethod -lfiniteVolume -ldecompositionMethods -ldynamicMesh -lmeshTools -lautoMesh -lOpenFOAM -liberty -ldl -lm -o /home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/snappyHexMesh
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/snappyHexMesh] Error 1
make[2]: *** [snappyHexMesh] Error 2



or



linux64GccDPOpt \
-lmeshTools -lfiniteVolume -ldynamicMesh -lOpenFOAM -liberty -ldl -lm -o /home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/blockMesh
/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make[3]: *** [/home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/blockMesh] Error 1
make[2]: *** [blockMesh] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [generation] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [mesh] Error 2
make: Target `application' not remade because of errors.
+ '[' '' = doc ']'
[ad@fluent-srv4 OpenFOAM-1.5-dev]$


10-It did have no have no affect if I use the binary version of the Third party or the developed version I am getting with both the same error.

Can anyone help me? Am I doing something Wrong?:confused::confused::confused: (should I do it as root??)


All times are GMT -4. The time now is 05:13.