CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Error for compiling OF141 on Redhat EL 46 latest (https://www.cfd-online.com/Forums/openfoam-installation/57433-error-compiling-of141-redhat-el-46-latest.html)

leosding January 5, 2008 03:21

hi, when I compile the OF1.4.
 
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

hsieh January 5, 2008 09:06

Hi, This might have somethi
 
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

leosding January 6, 2008 23:41

Hi, according to the tip on o
 
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?

gschaider January 7, 2008 05:05

Have a look in your /lib(64)-d
 
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

leosding January 8, 2008 01:00

Bernhard, With the hint, I ma
 
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

jjhall February 27, 2008 01:25

Hello, I get a similar erro
 
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.


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