LD_LIBRARY_PATH shouldn't contain the current directory

时间:2022-10-30 22:42:13

配置:

[root@localhost build]#../configure --prefix=/opt/glibc-2.17

错误提示:

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