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

Installation on Fedora 12 64-bit

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 23, 2010, 09:56
Default Installation on Fedora 12 64-bit
  #1
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 7
tonyuprm is on a distinguished road
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.
tonyuprm is offline   Reply With Quote

Old   September 25, 2010, 09:24
Default
  #2
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 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: Problem Installing OF 1.6 Ubuntu 9.10 (64 bit) - How to use GCC 4.4.1 ? 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

Last edited by wyldckat; September 25, 2010 at 09:28. Reason: Added link to an old post of mine...
wyldckat is offline   Reply With Quote

Old   September 26, 2010, 01:33
Default
  #3
Member
 
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 7
tonyuprm is on a distinguished road
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
tonyuprm 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
Qt installation in Fedora for OpenFOAM......Required Urgently...... devesh.baghel OpenFOAM 1 November 17, 2009 10:08
Segmentation fault with paraFoam and paraview 3.6.1 on Fedora 11 32 and 64 bit nanes OpenFOAM Paraview & paraFoam 2 September 11, 2009 09:12
AMD 64 bit installation maka OpenFOAM Installation 7 January 11, 2009 11:42
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
problem in installation of Fedora code peter Main CFD Forum 1 August 22, 2006 09:03


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