LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]lfs中chroot错误

[复制链接]
发表于 2003-5-9 08:34:18 | 显示全部楼层

I still can't make it .

I tryied as told by the manual several times to install  textutils-2.1 .
but when I use ldd to show ,they are still dynamic linked. what can i do? I 'm going to be creazy! the flwowing are the instructions I used :

[lfs@localhost textutils-2.1]$ CPPFLAGS=-Dre_max_failures=re_max_failures2
./configure --prefix=/mnt/lfs/static --disable-nls && make LDFLAGS=-static && make install
发表于 2003-5-9 08:41:25 | 显示全部楼层
你安装了glibc-static-devel和gcc-static-devel的rpm没有?
发表于 2003-5-9 09:24:50 | 显示全部楼层

no .

but the other packages are now static linked except this one.

where to find them?
发表于 2003-5-9 10:38:42 | 显示全部楼层
It depends. which host system are you using now?
If mandrake, on the cdrom.
If redhat,no such rpms.
If others,I don't know.
You provide too little information to facilitate those who want to help.It's impolite even rude.
发表于 2003-5-10 08:09:02 | 显示全部楼层

I made it justnow!

I reinstalled textutils-2.1 again justnow ,using the same instructions . and when I type the ldd ./* feeling hopelessly to check it, I found that all packages were static linked.I really don't know why. I'm using redhat9.0.
thank you for all your help.
now I will continue to install lfs.
发表于 2003-5-10 08:19:37 | 显示全部楼层
呵呵,可能还是以前输入命令的时候出了点问题,以后认真啊.
发表于 2003-5-10 23:43:41 | 显示全部楼层
LDFLAGS="-static"
DESTDIR=/foo
export LDFLAGS DESTDIR
./configure
make
make install


也可以如此的

来简化LD等一大串字符的输入/////
发表于 2003-5-10 23:56:35 | 显示全部楼层
不一定的,./configure的时候可以不输入,但make LDFLAGS=xxx一定要输入的。因为这种参数不是从环境里来的。
发表于 2003-5-11 20:58:36 | 显示全部楼层
知道还有动态链接,但是怎么知道需要重新编译哪个包呢
发表于 2003-5-11 21:00:37 | 显示全部楼层
每个包的页上不是有一个内容描述么,就是这个软件包里面有什么程序。找找就能找到的。
哪个程序是动态连接,就重新编译哪个软件包。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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