LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1330|回复: 3

clfs中关于编译autoconf和automake

[复制链接]
发表于 2009-6-30 00:06:50 | 显示全部楼层 |阅读模式
求救!关于编译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
怎么办
发表于 2009-6-30 01:12:46 | 显示全部楼层
"checking build system type... i686-cross-linux-gnu=${CROSS_TARGET} --prefix=/usr"

我怎么感觉你的./configure写的有点问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-30 13:04:54 | 显示全部楼层
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.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-30 20:57:04 | 显示全部楼层
在编译automake时检测的autoconf是不是宿主系统上的autoconf,而不是automake之前编译的autoconf?搞不懂,我在宿主系统上安装了同一个一个autoconf,automake的configure就过去了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表