LinuxSir.cn,穿越时空的Linuxsir!

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

glibc编译的又一问题(lfs 5.1.1)

[复制链接]
发表于 2004-11-13 23:40:22 | 显示全部楼层 |阅读模式
好不容易编到了glibc

一切都是按手册做的
mkdir ../glibc-build
cd ../glibc-build

../glibc-2.3.3-lfs-5.1/configure --prefix=/tools \
    --disable-profile --enable-add-ons=linuxthreads \
    --with-binutils=/tools/bin --with-headers=/tools/include \
    --without-gd --without-cvs

这是一个完全意料不到的问题出现

configure:error:you must configure in a separate build directory

就没给我编译的机会~~~~~~~

可是我用lfs帐号编译别的完全没问题

不知这个错误是什么,是这个glibc的问题么?哪个高手99我 啊
发表于 2004-11-14 00:00:31 | 显示全部楼层
检查一下解压文件滴权限问题,

glibc-2.3.3-lfs-5.1   有没有解压啊?

看错误提示:

configure:error:you must configure in a separate build directory


你好像没有进入gcc-buils文件夹啊?
发表于 2004-11-14 00:01:36 | 显示全部楼层
1. Pls verify the absolute paths.

2. Are you compiling 5.1.1 or 5.1?
发表于 2004-11-14 00:04:51 | 显示全部楼层
你没有在那个glibc-build目录里边运行这个命令?。

解压的和运行的不能是同一个目录。
 楼主| 发表于 2004-11-14 09:36:11 | 显示全部楼层
the absolute paths is
$LFS/source/glibc-build/glibc-2.3.3-lfs-5.1/

i have unpacked the glibc-2.3.3-lfs-5.1.tar.bz2 in  the $LFS/source/glibc-build diractory and then "cd glibc-2.3.3-lfs-5.1" and find it cant config

并且我也试过把glibc-2.3.3-lfs-5.1中所有的文件拷贝到glibc-build中去,还是不行
发表于 2004-11-14 09:53:32 | 显示全部楼层
read the book CAREFULLY..

glibc-build and glibc-2.3.3-lfs-5.1 should be in the same directory, they are parallel.
发表于 2004-11-14 10:33:26 | 显示全部楼层
You should unpack glibc in

$LFS/source/glibc-2.3.3-lfs-5.1/

and then create an empty directory in

$LFS/source/glibc-build/

They are parallel.  Then, you may cd to
$LFS/source/glibc-build/

and then issue ../glibc-2.3.3-lfs-5.1/configure ........
 楼主| 发表于 2004-11-14 11:18:40 | 显示全部楼层
问题解决了 太感谢了
不过我还想问一下为什么一定要并行运行呢
发表于 2004-11-14 11:28:43 | 显示全部楼层
To prevent your compilied object codes from corrupting the original source tree.  You need the clean source tree in the second pass of building.
 楼主| 发表于 2004-11-14 11:36:44 | 显示全部楼层
3x
i got a lot from you
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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