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

library not found by linker

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 6, 2009, 01:50
Default library not found by linker
  #1
New Member
 
elbert
Join Date: Mar 2009
Location: Ames, IA
Posts: 9
Rep Power: 8
elbertj is on a distinguished road
Send a message via Skype™ to elbertj
Hi All,

I have been having issues building OpenFOAM 1.6 on a 64-bit machine. (I successfully installed OF1.6 on a 32-bit laptop.) The machine is;
Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

I had extracted the 1.6 sources and DP binaries. While I execute the ./Allwmake the code generates and error at this stage in /applications/solvers/basic/laplacianFoam as http://home.eng.iastate.edu/~ejp/openfoam/allwmake_1_partial.log . The full log <allwmake_1.log>is in the same folder.

I could find that while initializing using etc/cshrc the PATH & LD_LIBRARY_PATH variables are not updated. CMAKE_HOME is not created. I guess the above error is created as the LD_LIBRARY_PATH is not updated after initializing.

It ought to look like this: (works)
/home/ejp/codes/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/openmpi-1.3.3:/home/ejp/codes/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linuxGccDPOpt/lib:/home/ejp/codes/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib:/home/ejp/codes/OpenFOAM/ThirdParty-1.6/gmp-4.2.4/platforms/linux/lib:/home/ejp/codes/OpenFOAM/ThirdParty-1.6/mpfr-2.4.1/platforms/linux/lib:/home/ejp/OpenFOAM/ejp-1.6/lib/linuxGccDPOpt:/home/ejp/codes/OpenFOAM/site/1.6/lib/linuxGccDPOpt:/home/ejp/codes/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt:/opt/intel/fc/9.1.043/lib:/opt/intel/cc/9.1.043/lib

But it is : (64-bit machine)
/opt/intel/compiler/lib/intel64:/opt/intel/compiler/lib/intel64:/opt/intel/compiler/mkl/lib/em64t:/opt/intel/compiler/tbb/em64t/cc4.1.0_libc2.4_kernel2.6.16.21/lib:/usr/local/intel9.1/lib:/usr/local/intel9.1/lib:/local/ejp/codes/fortranposix-0.1-1:/local/ejp/codes/gnuplotfortran-0.2.2-1:/local/ejp/codes/fortranposix-0.1-1:/local/ejp/codes/gnuplotfortran-0.2.2-1:/local/ejp/codes/mylibs

The compiler it uses:
[ejp@pd1 openfoam]$ gcc --version
gcc (OpenFOAM) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.


Kindly help me troubleshoot.

Thanks,
Elbert
elbertj is offline   Reply With Quote

Old   October 7, 2009, 02:03
Default
  #2
New Member
 
elbert
Join Date: Mar 2009
Location: Ames, IA
Posts: 9
Rep Power: 8
elbertj is on a distinguished road
Send a message via Skype™ to elbertj
I got this resolved. The issue was with setting the environment variable $PATH. In my ~/.cshrc the path variable was set using both setenv (separator ':') and set. While using set the separator ought to be ' ' while I used ':' mistakenly.

The script OpenFoam-1.6/bin/foamCleanPath separates the path and reassembles the variable adding new locations. This script didn't add new locations due to wrong separators in PATH. The same is with LD_LIBRARY_PATH.
elbertj is offline   Reply With Quote

Reply

Tags
64-bit, environment variable, library, linker, path

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 paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26


All times are GMT -4. The time now is 22:46.