|
安装到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老半天的份上,帮我看看吧,重新设置一些参数,他的顺序是怎样的?呜...........我可是第二次没成功啊! |
|