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
学会珍惜和尊重知识带来的乐趣