CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation on Fedora 12 64-bit (http://www.cfd-online.com/Forums/openfoam-installation/80374-installation-fedora-12-64-bit.html)

tonyuprm September 23, 2010 09:56

Installation on Fedora 12 64-bit
 
I am trying to install OpenFOAM 1.7.1 on my Fedora 12 64-bit system. I have not been able to install it successfully. I followed the instructions on the OpenFOAM website. The installation runs but has many errors. Here is the last line in the terminal after trying to install:

Code:

/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make[2]: *** [/home/tony/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT] Error 1
make[2]: Leaving directory `/home/tony/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: *** [mixtureAdiabaticFlameT] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/tony/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical'
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.

When I run the "foamInstallationTest" script this is what I get:

Code:

Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              localhost.localdomain
OS:                Linux version 2.6.31.5-127.fc12.x86_64
-------------------------------------------------------------------------------


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

$FOAM_APPBIN        ...7.1/applications/bin/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_APPBIN    ...nFOAM/site/1.7.1/bin/linux64GccDPOpt  no        no
$FOAM_USER_APPBIN    ...7.1/applications/bin/linux64GccDPOpt  no        no
$WM_DIR              /home/tony/OpenFOAM/OpenFOAM-1.7.1/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        ...M/OpenFOAM-1.7.1/lib/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_LIBBIN    ...nFOAM/site/1.7.1/lib/linux64GccDPOpt  no        no
$FOAM_USER_LIBBIN    ...nFOAM/tony-1.7.1/lib/linux64GccDPOpt  no        no
$MPI_ARCH_PATH      ...1/platforms/linux64Gcc/openmpi-1.4.1  yes  yes  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version  Location
-------------------------------------------------------------------------------
gcc      4.4.4    /usr/bin/gcc                                           
gzip    1.3.12    /usr/bin/gzip                                           
tar      1.22      /bin/tar                                               
icoFoam         
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/tony/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/icoFoam
          current path            :
          CRITICAL ERROR

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


Summary
-------------------------------------------------------------------------------
Base configuration ok.

*** The foam installation contains 1 critical error(s)
***    Review the output for warning messages and consult
***    the installation guide for trouble shooting.

done.


wyldckat September 25, 2010 09:24

Greetings Tony,

Ah, Fedora... You better try using OpenFOAM 1.7.x (link). If I'm not mistaken, there were some changes after the release of 1.7.1 that enable the building of OpenFOAM in Fedora to be a lot smoother (link to relevant bug report)... Although it was intended for Fedora 13, but you might have updated 12 so much, that it might look more like 13 right now ;)

Additionally, next time you run Allwmake, use:
Code:

./Allwmake > make.log 2>&1
This way you can keep a log of the build process (the first errors are usually the ones that matter ;)). And for reporting errors here on the forum, it's a lot easier to post the compressed log file... as long as the compressed log file isn't too big for the forum's quota :)

edit: Did you install the packages mentioned on this post: http://www.cfd-online.com/Forums/ope...tml#post254189 ? On that post you'll find some pearls of wisdom, but the instructions for changing the rules file is no longer needed with OpenFOAM 1.7.1 and 1.7.x.

Best regards,
Bruno

tonyuprm September 26, 2010 01:33

Hi Bruno,

Thanks for your reply. I think I was having a problem because I had tried to install it before. I erased the files but was still having the problem. What I did was I ran the $HOME/OpenFOAM/OpenFOAM-1.7.1/wmake/wcleanAll script and was able to install it afterwards without a problem.

Thanks,

Tony


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