做高算平台,安装编译行业软件OpenFOAM的时候踩过坑,其中的一个。

http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-3.0.0/CentOS_SL_RHEL
我是按照以上文档安装OpenFOAM的,其实遇到很多错…
要么就是网络问题等

编译OpenFOAM的时候出错,具体的报错还在编译中写到日志里面去了。找出来好像还挺麻烦的,就记得:
cannot find -lboost_thread
试验以下命令:

#locate boost_thread

发现是有的。

其实之前也是安装什么东西,一直找不到boost.so什么鬼的东西,想了很久都不能解决,后来,我说,好吧,没有的话,我装一个吧
yum install libboost-dev类似的,这是插曲哈。

使用了,

#echo $LD_LIBRARY_PATH

查看,是由于环境的原因。我查看了环境

/home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64Gcc/CGAL-4.7/lib:/home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64Gcc/gperftools-svn/lib:/home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64Gcc/ParaView-4.4.0/lib/paraview-4.4:/home/ancon/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system:/home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64GccDPInt64Opt/lib/openmpi-system:/usr/lib64/openmpi/lib:/home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64/mpc-1.0.1/lib:/home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64/mpfr-3.1.2/lib:/home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64/gmp-5.1.2/lib:/home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64/gcc-4.8.4/lib64:/home/ancon/OpenFOAM/ancon-3.0.0/platforms/linux64GccDPInt64Opt/lib:/home/ancon/OpenFOAM/site/3.0.0/platforms/linux64GccDPInt64Opt/lib:/home/ancon/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt64Opt/lib:/home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64GccDPInt64Opt/lib:/home/ancon/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt64Opt/lib/dummy

上面有gcc的环境,报错那里有个gcc的目录,我就知道肯定是环境造成的,有2种解决办法
其一:

#ln -s /usr/lib64/libboost_thread-mt.so /home/ancon/OpenFOAM/ThirdParty-3.0.0/platforms/linux64/gcc-4.8.4/lib64/libboost_thread.so

其二,把安装boot_thread.so的环境加入到LD_LIBRARY_PATH中。

我查看了服务器,好像编译完了,这个管理节点是24CPU,64G的内存的,果然快的,就到这吧。

你可能感兴趣的:(高算)