LinuxSir.cn,穿越时空的Linuxsir!

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

有几个地方实在搞不清,害我第二次安装LFS有卡住了,兄弟们帮忙看看!

[复制链接]
发表于 2003-1-2 22:41:54 | 显示全部楼层 |阅读模式
安装到glibc,我把glibc-2.25.tar.bz2解压开来,把glibc-2.25.patch文件也拷贝到glibc-2.25目录中,然后进入glibc-2.25目录,执行:
patch -Np1 -i ../glibc-2.2.5-2.patch &&
touch /etc/ld.so.conf &&
mkdir ../glibc-build &&
cd ../glibc-build &&
../glibc-2.2.5/configure --prefix=/usr --disable-profile \
    --enable-add-ons --libexecdir=/usr/bin &&
echo "cross-compiling = no" > configparms &&
make &&
make install &&
make localedata/install-locales &&
exec /static/bin/bash --login
居然出现错误:
eversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file resolv/nss_dns/dns-network.c.rej
patching file sunrpc/xdr_array.c
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file sunrpc/xdr_array.c.rej
patching file sysdeps/i386/Makefile
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file sysdeps/i386/Makefile.rej
patching file sysdeps/i386/fpu/libm-test-ulps
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file sysdeps/i386/fpu/libm-test-ulps.rej
patching file sysdeps/m68k/Makefile
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file sysdeps/m68k/Makefile.rej
patching file sysdeps/s390/s390-32/Makefile
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file sysdeps/s390/s390-32/Makefile.rej
patching file sysdeps/unix/sysv/linux/errlist.c
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file sysdeps/unix/sysv/linux/errlist.c.rej
The next patch would create the file sysdeps/wordsize-32/divdi3.c,
which already exists!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file sysdeps/wordsize-32/divdi3.c.rej

兄弟们下面这句话是什么意思啊?具体怎么操作?
“在安装glibc前,你必须在glibc-2.2.5 目录而不是/usr/src下将glibc-linuxthreads解包”


当退出CHROOT时,要重新设置一些命令,都要重新设置哪些命令啊,
1)export LFS=/mnt/lfs
2)mkdir -p $LFS &&
mount /dev/hda9 $LFS
3)echo $LFS
4)chown -R lfs $LFS/static
5)su lfs
6)cat > ~lfs/.bash_profile << "EOF"
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
CC='gcc -s'
export LFS LC_ALL CC
EOF
source ~/.bash_profile
7)chroot $LFS /static/bin/env -i \
    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
    /static/bin/bash --login
8)chown -R 0:0 /static
9)mkdir -p /{bin,boot,dev/pts,etc/opt,home,lib,mnt,proc} &&
mkdir -p /{root,sbin,tmp,usr/local,var,opt} &&
for dirname in /usr /usr/local
    do
    mkdir $dirname/{bin,etc,include,lib,sbin,share,src}
    ln -s share/{man,doc,info} $dirname
    mkdir $dirname/share/{dict,doc,info,locale,man}
    mkdir $dirname/share/{nls,misc,terminfo,zoneinfo}
    mkdir $dirname/share/man/man{1,2,3,4,5,6,7,8}
done &&
mkdir /var/{lock,log,mail,run,spool} &&
mkdir -p /var/{tmp,opt,cache,lib/misc,local} &&
mkdir /opt/{bin,doc,include,info} &&
mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}} &&
ln -s ../var/tmp /usr
10)chmod 0750 /root &&
chmod 1777 /tmp /var/tmp
11)mount proc /proc -t proc
12)ln -sf /proc/mounts /etc/mtab
13)ln -s /static/bin/bash /bin/bash &&
ln -s bash /bin/sh
14)echo "root:x:0:0:root:/root:/bin/bash" > /etc/passwd
15)cat > /etc/group << "EOF"
root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:
EOF
16)cp MAKEDEV-1.7 /dev/MAKEDEV &&
cd /dev &&
chmod 754 MAKEDEV
兄弟们看在我ctrl+c  ctrl+v老半天的份上,帮我看看吧,重新设置一些参数,他的顺序是怎样的?呜...........我可是第二次没成功啊!
发表于 2003-1-2 23:06:02 | 显示全部楼层

族条命令执行

族条命令执行
发表于 2003-1-2 23:08:02 | 显示全部楼层

路径不对

路径不对
发表于 2003-1-2 23:19:31 | 显示全部楼层

HEHE!

glibc-2.25.patch 要在上一层目录才对啊~~
 楼主| 发表于 2003-1-2 23:25:30 | 显示全部楼层
您是说不要把glibc-2.25.patch文件也拷贝到glibc-2.25目录中?
发表于 2003-1-2 23:56:56 | 显示全部楼层
glibc-2.25.patch要放在上一级目录里。所有的patch都是放在上一级目录里的。那个patch -Np1 -i ../xXXX.patch
-Np1说的是把patch里的路径减一级,-i说的是后面的是patch文件,再后面跟的就是patch的路径,../指的是上一级目录。
 楼主| 发表于 2003-1-3 00:21:17 | 显示全部楼层
啊,完蛋了,全错了,我把所有的PATCH文件都拷贝到了下一级目录了,多谢大大们指教,呜........,明晚开始第三次安装LFS,看来我真的很笨,
发表于 2003-1-3 00:32:52 | 显示全部楼层
看来我们还是要把上手前的一些东西写一下,比如命令贴在哪个目录,比如打patch。
对了,你如果是在下一级目录里打patch,应该是打不上的啊,因为找不到文件,那&&就会让整个过程终止了。你是这样的么?
发表于 2003-1-3 08:23:43 | 显示全部楼层
对于一些基础的东西,在LFS的安装说明书上讲得不够详细,看来有必要搞一个入门知识的介绍。
 楼主| 发表于 2003-1-3 08:43:35 | 显示全部楼层
我是把patch文件拷贝到下一级目录,后来想想应该没问题,只不过下一级目录里多了一个patch文件,不知道关系大吗?
入门知识真的好重要,当初想先按说明书安装一遍先,然后再去理解命令的含义,没想到,问题多多,先是主系统autoconf文件的版本太低,后来是概念模糊,每次重新来需要设置的有哪些命令也不清楚,头都大了,不过这就是乐趣,安装发行版就没这种乐趣了,so easy,其实经历这些又有兄弟们的耐心教导,我相信我会安装成功的,我不会放弃!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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