+ -
当前位置:首页 → 问答吧 → clfs中关于编译autoconf和automake

clfs中关于编译autoconf和automake

时间:2009-06-30

来源:互联网

求救!关于编译autoconf和automake
在用海勇的《手把手教你源代码制作龙芯64位系统》做的automake时出现了
checking build system type... i686-cross-linux-gnu=${CROSS_TARGET} --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips64el-unknown-linux-gnu-strip... mips64el-unknown-linux-gnu-strip
checking for perl... /usr/bin/perl
checking for tex... no
checking whether autoconf is installed... no
configure: error: Autoconf 2.60 or better is required.
Please make sure it is installed and in your PATH
然后我将automake之前编译的autoconf的路径加到PATH:
PATH=/loongson/cross-tools/bin:/bin:/usr/bin:/loongson/usr/bin/
重新configure得到:
checking build system type... i686-cross-linux-gnu=${CROSS_TARGET} --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips64el-unknown-linux-gnu-strip... mips64el-unknown-linux-gnu-strip
checking for perl... /usr/bin/perl
checking for tex... no
checking whether autoconf is installed... yes
checking whether autoconf works... no
configure: error: The installed version of autoconf does not work.
Please check config.log for error messages before this one
怎么办

作者: haday   发布时间: 2009-06-30

"checking build system type... i686-cross-linux-gnu=${CROSS_TARGET} --prefix=/usr"

我怎么感觉你的./configure写的有点问题。

作者: youbest   发布时间: 2009-06-30

youbest还真是敬业,我在龙芯的论坛里面也问了同样的问题,你都回答了,大概还是半夜回答的,佩服
"checking build system type... i686-cross-linux-gnu=${CROSS_TARGET} --prefix=/usr"
这个终端有点小问题,其实输出的结果应该是这样的:
bash-3.2$ ./configure --build=${CROSS_HOST} --host=${CROSS_TARGET} --prefix=/usr
checking build system type... i686-cross-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips64el-unknown-linux-gnu-strip... mips64el-unknown-linux-gnu-strip
checking for perl... /usr/bin/perl
checking for tex... no
checking whether autoconf is installed... no
configure: error: Autoconf 2.60 or better is required.
Please make sure it is installed and in your PATH.

作者: haday   发布时间: 2009-06-30

在编译automake时检测的autoconf是不是宿主系统上的autoconf,而不是automake之前编译的autoconf?搞不懂,我在宿主系统上安装了同一个一个autoconf,automake的configure就过去了。

作者: haday   发布时间: 2009-07-01