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

猜你喜欢

转载自www.cnblogs.com/relax-zw/p/11328435.html