2014-01-17 LD_LIBRARY_PATH shouldn't contain the current directory
I am trying to build a self-contain GLIBC 2.7. It shows following error when I run configure
1
checking whether ranlib is necessary... no
2
checking LD_LIBRARY_PATH variable... contains current directory
3
configure: error:
4
*** LD_LIBRARY_PATH shouldn't contain the current directory when
5
*** building glibc. Please change the environment variable
6
*** and run configure again.
Copied!
my LD_LIBRARY_PATH is
1
$ echo $LD_LIBRARY_PATH
2
/home/sliu/opt/lib:/home/sliu/opt/libexec/gcc/x86_64-unknown-linux-gnu/4.8.1:/home/sliu/opt/lib64:/home/sliu/opt/lib64/gcj-4.8.1-14:
Copied!
The error message complains that LD_LIBRARY_PATH contain the current directory. However my LD_LIBRARY_PATH doesn't contain any "current directory". Actually, it's caused by the path seperate character ":" instead of "current directory". If you search LD_LIBRARY_PATH in configure, you will find this comments
1
# Test if LD_LIBRARY_PATH contains the notation for the current directory
2
# since this would lead to problems installing/building glibc.
3
# LD_LIBRARY_PATH contains the current directory if one of the following
4
# is true:
5
# - one of the terminals (":" and ";") is the first or last sign
6
# - two terminals occur directly after each other
7
# - the path contains an element with a dot in it
Copied!
Which means, The LD_LIBRARY_PATH can not start or end with character ":".
So this issue can be fixed by removing the last ':' character in LD_LIBRARY_PATH.
解决办法就是,去掉 LD_LIBRARY_PATH 最后的那个路径分隔符':'.
最近更新 1yr ago
复制链接