Kenneth Nash wrote: > I am trying to make an LFS 4.1 system on Mandrake 9.1. I cannot chroot > into /lfs, even though they I copied the bin and lib directory from static > directory to /lfs. It says /bin/bash and /bin/env don't exist. > I tried every version I could to set /lfs directory as root, but it won't > find bash or env. > > /lfs > /static > /bin > /lib > /usr > .. > /bin > /lib > /root > > LFS=/lfs > > here is the original command: > 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
That looks reasonable. But complicated. Perhaps you could try a simple chroot and avoid some of the complexity. chroot /lfs /static/bin/bash Or just: chroot /lfs Do either of those work? > /static/bin/env /static/bin/bash file directory not found What is the output of: ldd /lfs/static/bin/env ldd /lfs/static/bin/bash ldd /lfs/bin/env ldd /lfs/bin/bash For each of the libraries listed (if any) do they all exist in the chroot /lfs area? Set the LD_LIBRARY_PATH to the lib directories in the chroot area and see if ldd can resolve them there. LD_LIBRARY_PATH=/lfs/usr/lib:/lfs/lib ldd /lfs/static/bin/env LD_LIBRARY_PATH=/lfs/usr/lib:/lfs/lib ldd /lfs/static/bin/bash LD_LIBRARY_PATH=/lfs/usr/lib:/lfs/lib ldd /lfs/bin/env LD_LIBRARY_PATH=/lfs/usr/lib:/lfs/lib ldd /lfs/bin/bash HTH, Bob _______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
