【问题标题】:Install the glibc report configure LD_LIBRARY_PATH error安装glibc报configure LD_LIBRARY_PATH错误
【发布时间】:2018-04-16 10:57:04
【问题描述】:

在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

有人知道怎么设置吗?我将不胜感激。

【问题讨论】:

    标签: linux glibc


    【解决方案1】:

    尝试在 LD_LIBRARY_PATH 中将 :: 替换为 :(仅单列)。

    【讨论】:

      【解决方案2】:

      请从 LD_LIBRARY_PATH 环境变量中删除您的当前目录

      【讨论】:

      • LD_LIBRARY_PATH 环境变量中没有当前目录
      • $ pwd /public/home/chensu/others/Guicai/glibc-2.17
      • 打印 'echo $PATH' 和 'echo $LD_LIBRARY_PATH' 并分享输出
      【解决方案3】:

      我也遇到过这个问题。根据comment here,这是因为您的 LD_LIBRARY_PATH 有一个空条目(在mkl/lib/intel64:: 中)。当在 LD_LIBRARY_PATH 中找到一个空条目时,ld 将开始从当前目录查找库。

      您需要以某种方式从 LD_LIBRARY_PATH 中删除该空条目。

      【讨论】:

        【解决方案4】:

        从我安装 glibc-2.32 的尝试中,我发现 $LD_LIBRARY_PATH 不应该有尾随 :。

        【讨论】:

          【解决方案5】:
          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
          

          【讨论】:

            猜你喜欢
            • 2017-02-12
            • 1970-01-01
            • 1970-01-01
            • 2013-04-15
            • 2021-06-23
            • 1970-01-01
            • 2015-08-06
            • 2012-08-24
            • 1970-01-01
            相关资源
            最近更新 更多