'Install the glibc report configure LD_LIBRARY_PATH error

Install the glibc-2.17 on redhat, download, unzip, configure then report LD_LIBRARY_PATH error:

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.

Check my environment of LD_LIBRARY_PATH, the following:

$ 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

Does anybody know how to set it? I will be appreciated.



Solution 1:[1]

Try replacing :: with : (only single column) in your LD_LIBRARY_PATH.

Solution 2:[2]

Please remove your current directory from LD_LIBRARY_PATH environment variable

Solution 3:[3]

I have also come across this issuse. According to comment here, it is because your LD_LIBRARY_PATH has an empty entry (in mkl/lib/intel64::). When an empty entry is found in LD_LIBRARY_PATH, ld will start finding library from current directory.

You need to somehow remove that empty entry from LD_LIBRARY_PATH.

Solution 4:[4]

From my attempts to install glibc-2.32, I discovered that $LD_LIBRARY_PATH should not have a trailing :.

Solution 5:[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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Salis Joshi
Solution 2 Azhar Hussain
Solution 3 jdhao
Solution 4 Jacob Valdez
Solution 5 Taufik_TF