在編譯glibc時(shí),進(jìn)到glibc源碼里:
cd glibc-source && mkdir build &&cd build
開始配置,執(zhí)行了如下命令:../configure --prefix=/opt/glibc
然后報(bào)如下錯(cuò)誤:
“configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: makeinfo
*** some features or tests will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable… contains current directory
configure: error:
*** LD_LIBRARY_PATH shouldn’t contain the current directory when
*** building glibc. Please change the environment variable
*** and run configure again.
”
網(wǎng)上也搜索了下,說(shuō)是環(huán)境變量的問題,摸索了下,不用去改配置文件,只要在剛剛執(zhí)行命令的終端下運(yùn)行下面這個(gè)命令就可以了,然后再執(zhí)行上面的配置命令就會(huì)成功了。
export LD_LIBRARY_PATH=
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-501231.html
圖示:
(一開始有報(bào)錯(cuò),這行執(zhí)行后,在配置的運(yùn)行結(jié)果就會(huì)成功)
希望能幫到你。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-501231.html
到了這里,關(guān)于glibc編譯時(shí)報(bào)錯(cuò):configure: error:*** LD_LIBRARY_PATH shouldn‘t contain the current directory when ***的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!