LinuxSir.cn,穿越时空的Linuxsir!

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

关于lfs book的一些疑问

[复制链接]
发表于 2006-1-5 23:11:03 | 显示全部楼层 |阅读模式
1 在做工具链的时候,安装BASH时,最后要做一个符号链接,但它的目标是源程序中的BASH。那这个源程序编译安装完后,要不要删掉这个源程序目录??

2 也是工具链那里,在编译安装Util-linux时,好像少装一个库Zlib。不能CONFIGURE。
是不是不要完全编译安装。只要后面复制的三个工具程序??
发表于 2006-1-5 23:16:59 | 显示全部楼层
1、连接的不是源程序中的BASH,所以删除掉源程序目录没有关系。
2、可能是主系统没有安装Zlib,也可能装了没检测出来,给主系统装一个zlib试试看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-5 23:32:22 | 显示全部楼层
1.when i do the commandline, my working directory is source code folder.

2 the configuration of Util-linux should be ok , isn't it ??
  my source OS is FC4, it has the zlib-1.2.2.2-3. but i don't know whether it's installed or not?? howto make sure that??
回复 支持 反对

使用道具 举报

发表于 2006-1-6 00:05:56 | 显示全部楼层
1。有啥问题?
2。没问题。rpm 。你要看看rpm的用法。
回复 支持 反对

使用道具 举报

发表于 2006-1-6 00:10:11 | 显示全部楼层
zlib and zlib devel should be installed.
simlinks in LFS are relative to the link source, so everything will be just OK whether or not you delete your source dir. please read the ln manual page and try some different ln format to see the difference.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-6 10:28:17 | 显示全部楼层
Q1 it is my fault. ln -s bash /tools/bin/bash. the target is not in working directory.it links to /tools/bin/bash

Q2  i have the zlib and zlib devel.the error is that : before configuration, i do "sed -i 's@/usr/include@/tools/include@g' configure". it change the libpath from/usr/include to /tools/include, while my zlib is in source OS.
how to solve it??  cancel that step??
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-6 12:57:02 | 显示全部楼层
the result of configure is :

lfs:/mnt/lfs/sources/util-linux-2.12q$./configure

configuring util-linux-2.12q

You have <scsi/scsi.h>
You have <linux/blkpg.h>
You have <linux/kd.h>
You have <locale.h>
You have <langinfo.h>
You have <sys/user.h>
You don't have <uuid/uuid.h>
You have <rpcsvc/nfs_prot.h>
You have <asm/types.h>
You have <linux/raw.h>
You have <stdint.h>
You have <sys/io.h>
You have inet_aton()
You have fsync()
You have getdomainname()
You have nanosleep()
You have personality()
You have updwtmp()
You have fseeko()
You have lchown()
You have rpmatch()
You have <term.h>
You have ncurses. Using <ncurses.h>.
You don't have termcap
You need -lcrypt
You have <libintl.h> and gettext()
You have __progname
You have <pty.h> and openpty()
You have wide character support
You have SYS_pivot_root
You have a tm_gmtoff field in struct tm
Your rpcgen seems to work
You don't have zlib
You don't have blkid
lfs:/mnt/lfs/sources/util-linux-2.12q$

is it ok or not ??
回复 支持 反对

使用道具 举报

发表于 2006-1-6 18:16:07 | 显示全部楼层
没关系的阿,又不需要zlib。
回复 支持 反对

使用道具 举报

发表于 2006-1-6 18:41:35 | 显示全部楼层
从你的configure来看,的确没说需要zlib啊:)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-6 22:56:21 | 显示全部楼层
哦,谢谢!!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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