Am Donnerstag, 20. April 2006 21:13 schrieb Dan Nicholson: > On 4/20/06, Mag. Leonhard Landrock <[EMAIL PROTECTED]> wrote: > OK, so your PATH is correct. Now we need to figure out why you're > using the host GCC. What is the output from these commands? > > $ type -p gcc > $ type -p cc
Wrong "su" command: ============== [EMAIL PROTECTED]:~$ su lfs Password: [EMAIL PROTECTED]:/home/leo$ type -p gcc /tools/bin/gcc [EMAIL PROTECTED]:/home/leo$ type -p cc /tools/bin/cc Right "su" command: ============= [EMAIL PROTECTED]:~$ su - lfs Password: [EMAIL PROTECTED]:~$ type -p gcc /tools/bin/gcc [EMAIL PROTECTED]:~$ type -p cc /tools/bin/cc Inside the chroot environment: =================== veneto:~# 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 root:/# type -p gcc /tools/bin/gcc root:/# type -p cc /tools/bin/cc > Also, when becoming the lfs user, you should switch to a login shell. > This is accomplished by adding the - argument to su. So, you would > want to become the lfs user with: > > su - lfs > > Possibly this is your whole problem since without -, you will not > source ~/.bash_profile and the lfs user's environment would not be > clean. Thank you for the hint with "su - lfs". I'm sure I did it right at the first time ("4.3. Adding the LFS User"). But then ... As I mentioned in my first e-mail it took me some time to get this far. If I change the user, I'm used to the command "su USER" without any "-". Is there any chance (if that is the problem) to get the whole stuff repaired without starting from scratch? > -- > Dan Best wishes, Leonhard. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page