LD_LIBRARY_PATH shouldn't contain the current directory

来源:互联网 发布:网络安全检查自查报告 编辑:程序博客网 时间:2024/06/07 19:58

配置:

[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/profileexport LD_LIBRARY_PATH =  $LD_LIBRARY_PATH:/opt/glibc-2.14/lib:/opt/glibc-2.17/lib//wq 保存退出,使之生效source /etc/profile
原创粉丝点击