configure: error: you must configure in a separate build directory

来源:互联网 发布:js 点击复制当前内容 编辑:程序博客网 时间:2024/04/30 02:53

configure glibc-2.14 时出现以下错误:

[root@localhost opt]# cd glibc-2.14[root@localhost glibc-2.14]# ./configurechecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking for gcc... gccchecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking how to run the C preprocessor... gcc -Echecking for g++... g++checking whether we are using the GNU C++ compiler... yeschecking whether g++ accepts -g... yesconfigure: error: you must configure in a separate build directory

这个只要回到上一级目录执行 configure 就可以了:

[root@localhost glibc-2.14]# cd ../[root@localhost opt]# ./glibc-2.14/configure 
4 0