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

Error for compiling OF141 on Redhat EL 46 latest

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 5, 2008, 04:21
Default hi, when I compile the OF1.4.
  #1
Member
 
Leosding
Join Date: Mar 2009
Posts: 51
Rep Power: 8
leosding is on a distinguished road
hi,
when I compile the OF1.4.1 on redhat enterpise linux 4.6 (up to date) the eroor is :
make[3]: Entering directory `/home/dsd/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/manipulation/Opti onal/setSet'
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -DREADLINE=1 -I/home/dsd/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/dsd/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC Make/linux64GccDPOpt/writePointSet.o Make/linux64GccDPOpt/floatScalar.o Make/linux64GccDPOpt/writeFuns.o Make/linux64GccDPOpt/writePatch.o Make/linux64GccDPOpt/fieldToCell.o Make/linux64GccDPOpt/setSet.o -L/home/dsd/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt \
-lmeshTools -lreadline -lOpenFOAM -liberty -ldl -lm -o /home/dsd/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/setSet
/usr/lib/../lib64/libreadline.so: undefined reference to `tgetnum'
/usr/lib/../lib64/libreadline.so: undefined reference to `tgoto'
/usr/lib/../lib64/libreadline.so: undefined reference to `tgetflag'
/usr/lib/../lib64/libreadline.so: undefined reference to `BC'
/usr/lib/../lib64/libreadline.so: undefined reference to `tputs'
/usr/lib/../lib64/libreadline.so: undefined reference to `PC'
/usr/lib/../lib64/libreadline.so: undefined reference to `tgetent'
/usr/lib/../lib64/libreadline.so: undefined reference to `UP'
/usr/lib/../lib64/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make[3]: *** [/home/dsd/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/setSet] 错误 1
make[3]: Leaving directory `/home/dsd/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/manipulation/Opti onal/setSet'
make[2]: *** [Optional] 错误 2
make[2]: Leaving directory `/home/dsd/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/manipulation'
make[1]: *** [manipulation] 错误 2
make[1]: Leaving directory `/home/dsd/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh'
make: *** [mesh] 错误 2
+ '[' 0 = 1 -a '' = doc ']'
[dsd@TCWS01 OpenFOAM-1.4.1]$


what's wrong?

thanks
leosding is offline   Reply With Quote

Old   January 5, 2008, 10:06
Default Hi, This might have somethi
  #2
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi,

This might have something to do with readline libraries. Check the "Readline libraries on some x86_64" section of "Howto compile OpenFOAM" on openfoamwiki.

In my case (64 bit SuSE 10.2), I do not have curses.so, but I do have ncurses.so. So, after adding -lcurses, I created static links to ncurses.

Hope this helps!

Pei
hsieh is offline   Reply With Quote

Old   January 7, 2008, 00:41
Default Hi, according to the tip on o
  #3
Member
 
Leosding
Join Date: Mar 2009
Posts: 51
Rep Power: 8
leosding is on a distinguished road
Hi,
according to the tip on openfoamwiki, compiling is OK.
Now solver is running,but when run FoamX, the error is:
[leo@TCWS01 icoFoam]$ FoamX
Starting NameServer with inet:TCWS01:1234 ...
nsd: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
[1]+ Stopped FoamX

why?
leosding is offline   Reply With Quote

Old   January 7, 2008, 06:05
Default Have a look in your /lib(64)-d
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Have a look in your /lib(64)-directory. There should be a libssl.so.0.9.x . Making a symbolic link to that should fool nsd into thinking it has got the right version

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 8, 2008, 02:00
Default Bernhard, With the hint, I ma
  #5
Member
 
Leosding
Join Date: Mar 2009
Posts: 51
Rep Power: 8
leosding is on a distinguished road
Bernhard,
With the hint, I make symbloc link libssl.so.0.9.8, libcrypto.so.0.9.8 and libelf.so.0 in /usr/lib64.
Now FoamX run smoothly.

thanks
leosding is offline   Reply With Quote

Old   February 27, 2008, 02:25
Default Hello, I get a similar erro
  #6
New Member
 
Jeremiah Hall
Join Date: Mar 2009
Location: Denver, Co, USA
Posts: 10
Rep Power: 8
jjhall is on a distinguished road
Hello,

I get a similar error when trying to run FoamX:

Starting NameServer with inet:Aragorn:1234 ...
nsd: error while loading shared libraries: libelf.so.0: cannot open shared object file: No such file or directory

I have found in /usr/lib64/ the file libelf.so.0. Where should I put the symbolic link to this file? In the FoamX directory?

Thanks for the help.
jjhall 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
Errors when Compiling UDF: error C2040/error C2099 Julian K. FLUENT 1 December 21, 2008 01:23
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise mbeaudoin OpenFOAM Installation 20 June 17, 2008 06:43
compiling error baskar FLUENT 2 May 4, 2005 11:49
Error while compiling UDF Sridhar FLUENT 0 August 7, 2001 11:02
Error while compiling a UDF Sridhar FLUENT 0 July 17, 2001 13:22


All times are GMT -4. The time now is 02:09.