编译 glibc-2.14 时出现的一个LD_LIBRARY_PATH不路径bug

 

../configure --prefix=/home/zzhy/wd/software/glibc-2.14

错误:
checking LD_LIBRARY_PATH variable... contains current directory
configure: error:
*** LD_LIBRARY_PATH shouldn t contain the current directory when
*** building glibc. Please change the environment variable
*** and run configure again.

解决:


echo $LD_LIBRARY_PATH
/public/software/mpi/openmpi-16-intel/lib:/public/software/intel/composer_xe_2011_sp1.7.256/compiler/lib/intel64:/public/software/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64:/opt/gridview//pbs/dispatcher427/lib::/usr/local/lib64:/usr/local/lib

LD_LIBRARY_PATH不能以终结符作为开始和最后一个字符,不能有2个终结符连在一起,所以修改下LD_LIBRARY_PATH即可

export LD_LIBRARY_PATH=/public/software/mpi/openmpi-16-intel/lib:/public/software/intel/composer_xe_2011_sp1.7.256/compiler/lib/intel64:/public/software/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64:/opt/gridview/pbs/dispatcher427/lib:/usr/local/lib64:/usr/local/lib


posted @ 2017-07-11 23:50 emanlee 阅读(...) 评论(...) 编辑 收藏