LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2008-4-9 20:40:35 | 显示全部楼层 |阅读模式
CLFS_multilib,第8章第一个安装就过不了,但是之前装tcl,expect等测试软件是可以的,我觉得GCC等编译工具应该没有问题,第8章开头就是装perl,可是
发表于 2008-4-9 20:41:45 | 显示全部楼层
有啥错误信息?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-9 20:45:16 | 显示全部楼层
按照手册输入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.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-9 20:46:25 | 显示全部楼层
dOOm3d老大来的好快,我还没敲完这些提示就来了,帮忙哈,谢谢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-9 20:56:05 | 显示全部楼层
忘说了,我是用的boot方式
回复 支持 反对

使用道具 举报

发表于 2008-4-9 21:02:29 | 显示全部楼层
CLFS Multilib 的第 8 章是 chroot,而且不是装 perl 的!

你在看哪本手册?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-9 21:34:03 | 显示全部楼层
不好意思,搞错了,我做的第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.
回复 支持 反对

使用道具 举报

发表于 2008-4-9 21:46:25 | 显示全部楼层
不大对劲,linux headers 是不会经过编译的,安装当然没问题,但刚才的 perl 跟现在的 glibc configure 错误都说明你的 gcc 安装不正确
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-9 21:53:49 | 显示全部楼层
可是为什么tcl,expect, dejagnu,tree都编译过了呀
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-9 21:58:26 | 显示全部楼层
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
回复 支持 反对

使用道具 举报

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

本版积分规则

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