Glibc编译报错:*** LD_LIBRARY_PATH shouldn't contain the current directory when*** building glibc. Please change the environment variable

执行glibc编译出错如下图

[root@localhost tmpdir]# ../configure --prefix=/usr/loacl/glibc2.9 --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

这里是环境变量的问题,加入环境变量即可

[root@localhost tmpdir]# vim /etc/profile

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/loacl/glibc2.9/lib

export LD_LIBRARY_PATH

 

posted @ 2019-08-09 17:10  努力跑在岁月之前  阅读(10302)  评论(0编辑  收藏  举报