转载地址:https://blog.csdn.net/qq_24755999/article/details/78722788
问题现象:
You seem to have the current working directory in your
LD_LIBRARY_PATH environment variable. This doesn't work.
make: *** [core-dependencies] 错误 1
配置:
[root@localhost build]#../configure --prefix=/opt/glibc-2.17
1
错误提示:
l * LD_LIBRARY_PATH shouldn’t contain the current directory when
* building glibc. Please change theenvironment variable
* and run configure again.
解决方法:
删除LD_LIBRARY_PATH变量的内容
[root@localhost build]# echo $LD_LIBRARY_PATH
:/opt/glibc-2.14/lib:/opt/glibc-2.17/lib
[root@localhost build]# LD_LIBRARY_PATH=
编译安装成功后重新添加 LD_LIBRARY_PATH:
vim /etc/profile
export LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/opt/glibc-2.14/lib:/opt/glibc-2.17/lib
//wq 保存退出,使之生效
source /etc/profile
---------------------
作者:前功尽弃
来源:CSDN
原文:https://blog.csdn.net/qq_24755999/article/details/78722788
版权声明:本文为博主原创文章,转载请附上博文链接!