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

Problems compiling OF solvers

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 29, 2009, 07:49
Default Problems compiling OF solvers
  #1
Senior Member
 
Anonymous
Join Date: Mar 2009
Posts: 110
Rep Power: 7
madad2005 is on a distinguished road
Dear All,

I've been attempting to compile v1.5 from source on suse 11.1 using the system compiler, but I have been having a strange issue. I managed to compile the /src directory fine with no errors. However, I'm now trying to compile the applications/solvers directory and every one gives me the same error (see below). It claims it can't find any of the shared libraries, although I am sure they are being linked in (and they do exist in /home/adriano/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt )

Any ideas?
madad2005 is offline   Reply With Quote

Old   June 29, 2009, 09:21
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 439
Rep Power: 13
linnemann will become famous soon enough
Hi

try gcc -print-search-dirs

If the path you mentioned isn't in that list it cannot find the libraries.

you have remembered to change the bashrc and setup.sh accordingly to be able to use the system compiler?

if all other fails add this to your .bashrc.

LD_LIBRARY_PATH=/home/adriano/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

If this doesn't work I'm out of ideas

Regards
linnemann is offline   Reply With Quote

Old   June 29, 2009, 09:58
Default
  #3
Senior Member
 
Anonymous
Join Date: Mar 2009
Posts: 110
Rep Power: 7
madad2005 is on a distinguished road
linneman, that has solved the problem. I didn't realise there were special settings when using the system compiler, but adding it to LD_LIBRARY_PATH has worked a treat.

Thank you for your help! :-)
madad2005 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
Problems in compiling solvers when using OpenFOAM13_11092006 jin_xu OpenFOAM Installation 6 July 2, 2010 13:34
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Problems in Compiling OpenFOAM in IRIX lakeat OpenFOAM Installation 0 June 7, 2007 22:44
Problems compiling UDFs under SuSE 10.2 George FLUENT 1 February 21, 2007 09:36
Problems on Compiling UDF in FLUENT Strawberi-KeatKeat FLUENT 1 October 4, 2006 02:50


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