在redhat上安装glibc-2.17,下载,解压缩,配置然后报告LD_LIBRARY_PATH错误:
checking for gawk... gawk
checking version of gawk... 3.1.7, ok
checking for nm... nm
checking for autoconf... autoconf
checking whether autoconf works... no
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
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.
检查我的LD_LIBRARY_PATH环境,如下:
$ echo $LD_LIBRARY_PATH
/public/software/apps/boost-1.59.0/include:/public/software/apps/boost-1.59.0/lib:/usr/local/cudnn/cuda/lib64/:/usr/loca
l/cuda/lib64:/usr/local/lib:/public/software//mpi/openmpi/1.8.5/intel/lib:/opt/gridview//pbs/dispatcher/lib:/public/soft
ware//compiler/intel/composer_xe_2015.2.164/compiler/lib/intel64:/public/software//compiler/intel/composer_xe_2015.2.164
/mkl/lib/intel64::/usr/local/lib64:/usr/local/lib:/lib64:/usr/lib:/public/home/chensu/lib:/public/home/chensu/lib/bin:/p
ublic/software/compiler/gnu/mpc-1.0.2/lib:/public/software/compiler/gnu/mpfr-3.1.3/lib:/public/software/compiler/gnu/gmp
-5.0.1/lib:/public/software/compiler/intel/composer_xe_2015.2.164/compiler/lib/mic:/public/software/compiler/intel/compo
ser_xe_2015.2.164/compiler/lib/intel64:/public/home/chensu/lib/boost_1_61_0:/public/home/chensu/lib/boost_1_61_0/stage/l
ib:/public/home/chensu/lib/sparsehash-master:/public/home/chensu/lib/sparsehash/include/google:/public/home/chensu/lib/s
parsehash/include/sparsehash
有人知道如何设置吗?我将不胜感激。
答案 0 :(得分:1)
请从LD_LIBRARY_PATH环境变量
中删除当前目录答案 1 :(得分:0)
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
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.
[chensu @ admin1 build] $ echo $ LD_LIBRARY_PATH
/public/software/apps/boost-1.59.0/include:/public/software/apps/boost-1.59.0/lib:/public/software/apps/boost-1.59.0/include:/public/software/apps/boost-1.59.0/lib:/usr/local/cudnn/cuda/lib64/:/usr/local/cuda/lib64:/usr/local/lib:/public/software/mpi/openmpi/1.8.5/intel/lib:/opt/gridview/pbs/dispatcher/lib:/public/software/compiler/intel/composer_xe_2015.2.164/compiler/lib/intel64:/public/software/compiler/intel/composer_xe_2015.2.164/mkl/lib/intel64::/usr/local/lib64:/usr/local/lib:/lib64:/usr/lib:/public/home/chensu/lib:/public/home/chensu/lib/bin:/public/software/compiler/gnu/mpc-1.0.2/lib:/public/software/compiler/gnu/mpfr-3.1.3/lib:/public/software/compiler/gnu/gmp-5.0.1/lib:/public/software/compiler/intel/composer_xe_2015.2.164/compiler/lib/mic:/public/software/compiler/intel/composer_xe_2015.2.164/compiler/lib/intel64:/public/home/chensu/lib/boost_1_61_0:/public/home/chensu/lib/boost_1_61_0/stage/lib:/public/home/chensu/lib/sparsehash-master:/public/home/chensu/lib/sparsehash/include/google:/public/home/chensu/lib/sparsehash/include/sparsehash:/public/home/chensu/lib:/public/home/chensu/lib/bin:/public/software/compiler/gnu/mpc-1.0.2/lib:/public/software/compiler/gnu/mpfr-3.1.3/lib:/public/software/compiler/gnu/gmp-5.0.1/lib:/public/software/compiler/intel/composer_xe_2015.2.164/compiler/lib/mic:/public/software/compiler/intel/composer_xe_2015.2.164/compiler/lib/intel64:/public/home/chensu/lib/boost_1_61_0:/public/home/chensu/lib/boost_1_61_0/stage/lib:/public/home/chensu/lib/sparsehash-master:/public/home/chensu/lib/sparsehash/include/google:/public/home/chensu/lib/sparsehash/include/sparsehash
[chensu @ admin1 build] $ pwd
/public/home/chensu/others/Guicai/temp/glibc-2.17/build
答案 2 :(得分:0)
尝试在LD_LIBRARY_PATH中用::(仅单列)替换::。
答案 3 :(得分:0)
我也遇到过这个问题。根据 comment here,这是因为您的 LD_LIBRARY_PATH 有一个空条目(在 mkl/lib/intel64::
中)。当在 LD_LIBRARY_PATH 中找到空条目时,ld 将从当前目录开始查找库。
您需要以某种方式从 LD_LIBRARY_PATH 中删除该空条目。