+ -
当前位置:首页 → 问答吧 → configure perl5.8.8遇到问题,请帮忙

configure perl5.8.8遇到问题,请帮忙

时间:2008-04-10

来源:互联网

CLFS_multilib,第8章第一个安装就过不了,但是之前装tcl,expect等测试软件是可以的,我觉得GCC等编译工具应该没有问题,第8章开头就是装perl,可是

作者: mimilinux   发布时间: 2008-04-10

有啥错误信息?

作者: d00m3d   发布时间: 2008-04-10

按照手册输入configure之后,提示:
#include <stdio.h>
int main() { printf("OK/n"); return(0); }
I used the command:
gcc -m32 -o try -O2 -DOVR_DBL_DIG=14 -I/usr/local/include -L/usr/local/lib try.c
./try
and I got the following output:

/bin/sh: ./try: cannot execute binary file
The program compiled OK, but exited with status 126.
You have a problem. Shall I abort Configure [y]
OK. Stopping Configure.

作者: mimilinux   发布时间: 2008-04-10

dOOm3d老大来的好快,我还没敲完这些提示就来了,帮忙哈,谢谢

作者: mimilinux   发布时间: 2008-04-10

忘说了,我是用的boot方式

作者: mimilinux   发布时间: 2008-04-10

CLFS Multilib 的第 8 章是 chroot,而且不是装 perl 的!

你在看哪本手册?

作者: d00m3d   发布时间: 2008-04-10

不好意思,搞错了,我做的第7章,做完了第9章,现在做第10章的perl卡住了,刚才跳过perl把linux headers也做了,没有问题,但是做到glibc-2.7 32bit时又遇到了问题,提示:
checking size of long double... configure: error: cannot compute sizeof (long double) See 'config.log' for more details.

作者: mimilinux   发布时间: 2008-04-10

不大对劲,linux headers 是不会经过编译的,安装当然没问题,但刚才的 perl 跟现在的 glibc configure 错误都说明你的 gcc 安装不正确

作者: d00m3d   发布时间: 2008-04-10

可是为什么tcl,expect, dejagnu,tree都编译过了呀

作者: mimilinux   发布时间: 2008-04-10

gcc -v 的输出是:
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.2.2/configure --prefix=/tools --libdir=/tools/lib64 --build=i486-cross-linux-gnu --target=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --with-local-prefix=/tools --enable-long-long --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 4.2.2

作者: mimilinux   发布时间: 2008-04-10

输出及编译都是重启後完成的?

作者: d00m3d   发布时间: 2008-04-10

是啊,我是用temporary system启动后编译的,gcc -v也是在这个系统下执行的,输出了那些东西。

作者: mimilinux   发布时间: 2008-04-10

引用:
作者: mimilinux
不好意思,搞错了,我做的第7章,做完了第9章,现在做第10章的perl卡住了,刚才跳过perl把linux headers也做了,没有问题,但是做到glibc-2.7 32bit时又遇到了问题,提示:
checking size of long double... configure: error: cannot compute sizeof (long double) See 'config.log' for more details.
难道你的内核还是 32 位的?

作者: d00m3d   发布时间: 2008-04-10

引用:
作者: mimilinux
CLFS_multilib,第8章第一个安装就过不了,但是之前装tcl,expect等测试软件是可以的,我觉得GCC等编译工具应该没有问题,第8章开头就是装perl,可是
引用:
作者: mimilinux
按照手册输入configure之后,提示:
#include <stdio.h>
int main() { printf("OK/n"); return(0); }
I used the command:
gcc -m32 -o try -O2 -DOVR_DBL_DIG=14 -I/usr/local/include -L/usr/local/lib try.c
./try
and I got the following output:

/bin/sh: ./try: cannot execute binary file
The program compiled OK, but exited with status 126.
You have a problem. Shall I abort Configure [y]
OK. Stopping Configure.
看起来,最大的可能是lz编译linux-kernel时没有打开 CONFIG_IA32_EMULATION=y
请参考http://linuxfromscratch.org/pipermai...er/000040.html

作者: 1987a   发布时间: 2008-04-10

楼上这位正解!那天晚上后来我google到了linuxfromscrath.org的一个帖子,不知道是不是你说的那个,感觉CLFS的手册有点误导啊,上面说做个临时系统就ok了,我就做了个最小的能启动的系统,呵呵,希望它能把那些编译需要选项在手册里强调一下。

作者: mimilinux   发布时间: 2008-04-13

热门下载

更多