LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: mimilinux

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

[复制链接]
发表于 2008-4-9 22:14:33 | 显示全部楼层
输出及编译都是重启後完成的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-9 22:29:03 | 显示全部楼层
是啊,我是用temporary system启动后编译的,gcc -v也是在这个系统下执行的,输出了那些东西。
回复 支持 反对

使用道具 举报

发表于 2008-4-9 23:00:10 | 显示全部楼层
Post by 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 位的?
回复 支持 反对

使用道具 举报

发表于 2008-4-10 00:02:23 | 显示全部楼层
Post by mimilinux;1836521
CLFS_multilib,第8章第一个安装就过不了,但是之前装tcl,expect等测试软件是可以的,我觉得GCC等编译工具应该没有问题,第8章开头就是装perl,可是

Post by mimilinux;1836525
按照手册输入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/pipe ... ovember/000040.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-13 19:40:19 | 显示全部楼层
楼上这位正解!那天晚上后来我google到了linuxfromscrath.org的一个帖子,不知道是不是你说的那个,感觉CLFS的手册有点误导啊,上面说做个临时系统就ok了,我就做了个最小的能启动的系统,呵呵,希望它能把那些编译需要选项在手册里强调一下。
回复 支持 反对

使用道具 举报

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

本版积分规则

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