1. 程式人生 > >You seem to have the current working directory in your LD_LIBRARY_PATH environment variable.

You seem to have the current working directory in your LD_LIBRARY_PATH environment variable.

轉載地址: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

配置:

[[email protected] 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變數的內容

[[email protected] build]# echo $LD_LIBRARY_PATH
:/opt/glibc-2.14/lib:/opt/glibc-2.17/lib

[[email protected] 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 
版權宣告:本文為博主原創文章,轉載請附上博文連結!