Hi freegianghu.
Quote:
Did you miss to run make install when you were installing bash?
|
No.
Hereinunder are the steps taken down on my notes;
Code:
5.27. Bash-3.0
http://www.linuxfromscratch.org/lfs/...er05/bash.html
lfs:/mnt/lfs/sources/texinfo-4.8$ cd ../
lfs:/mnt/lfs/sources$ tar xjf bash-3.0.tar.bz2
lfs:/mnt/lfs/sources$ cd bash-3.0
lfs:/mnt/lfs/sources/bash-3.0$ patch -Np1 -i ../bash-3.0-avoid_WCONTINUED-1.patch
patching file jobs.c
Hunk #1 succeeded at 2471 (offset -5 lines).
lfs:/mnt/lfs/sources/bash-3.0$ ./configure --prefix=/tools �Vwithout-bash-malloc
lfs:/mnt/lfs/sources/bash-3.0$ make
lfs:/mnt/lfs/sources/bash-3.0$ make install
lfs:/mnt/lfs/sources/bash-3.0$ ln -s bash /tools/bin/sh
All went through without complaint. I can remove it and do it again.
Hereinunder are steps performed with "re-start" the FC3
[satimis@localhost ~]$ su
Password:
[root@localhost satimis]# export LFS=/mnt/lfs
[root@localhost satimis]# mount /dev/hda6 $LFS
[root@localhost satimis]# mkdir -p $LFS
[root@localhost satimis]# echo $LFS
/mnt/lfs
Continued
[root@localhost satimis]# mkdir -p $LFS/{proc,sys}
[root@localhost satimis]# mount -t proc proc $LFS/proc
Code:
mount: proc already mounted or /mnt/lfs/proc busy
mount: according to mtab, proc is already mounted on /mnt/lfs/proc
[root@localhost satimis]# mount -t sysfs sysfs $LFS/sys
Code:
mount: sysfs already mounted or /mnt/lfs/sys busy
mount: according to mtab, sysfs is already mounted on /mnt/lfs/sys
[root@localhost satimis]# mount -f -t tmpfs tmpfs $LFS/dev
[root@localhost satimis]# mount -f -t tmpfs tmpfs $LFS/dev/shm
[root@localhost satimis]# mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts
[root@localhost satimis]# chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h
Code:
bash: chroot: command not found
[root@localhost satimis]# /usr/sbin/chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login
Code:
/tools/bin/env: /tools/bin/bash: No such file or directory
[root@localhost satimis]# ldd /mnt/lfs/tools/bin/bash
Code:
ldd: /mnt/lfs/tools/bin/bash: No such file or directory
[root@localhost satimis]# ldd /mnt/lfs/tools/bin/env
Code:
linux-gate.so.1 => (0x003ee000)
libc.so.6 => /tools/lib/libc.so.6 (0x00b73000)
/tools/lib/ld-linux.so.2 (0x00f9d000)
I can't under why I got through "chrooting" on LFS 6.0 but failed on LFS 6.1
B.R.
satimis