BLFS: Error on chrooting into LFS environment
I successfuly completed LFS and had a system that booted with no error messages. However, after completing the "Bash shell startup files" section of chapter 3 of BLFS I get the following error on boot and chroot.
Code:
: command not found Can anyone point me in the right direction?? |
What? You're trying to do a chroot in your new environment? Or did you restart into your host and you're trying to chroot into your LFS? What command are you typing when you get that error?
|
I'm back in my host system (SuSE9.2) and I created the config files as instructed in the BLFS manual. When I execute the following (again from the host system)
Code:
chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w$ ' PATH=/bin:/usr/bin:/sbin:/usr:sbin /bin/bash --login I also get this message when I boot into the LFS system and logon as root (the only user so far). |
Anyone have any ideas??
The line of ~/.bash_profile it is complaining about is the first uncommented line and it reads as follows, Code:
append () { In the error message, why does it say Code:
'ash: Code:
bash I'd really appreciate any help you can give me on this. |
Post your /etc/profile and ~/.bash_profile
|
I'm not at my linux box at the moment so I can't tell you the exact text.
When I first discovered this error I went through the book and cut'n'paste all the configuration files so I could be sure there were no typos, so (and I realise that it is a little rude to direct you to another page) you can see the text of /etc/profile on pages 55, and 56 of the BLFS book, and the text of ~/.bash_profile on page 61. Again I apologise for not having the relevant info and for directing you to another web page, but I am sure that the contents of the files are the same as in the book. Many thanks. |
Do an ls -l /bin/sh and see if you didn't mistype the symlink to /bin/bash.
|
Hmmm.... /bin/sh points to bash, and not /bin/bash. Is that the problem??
|
Quote:
Cheers, GH |
Thanks freegianghu!! I accidentally omitted the $ in that export command, and now that I have included it all is ok.
Thanks for your help. |
Dammit. All is NOT OK.:mad:
The export command does NOT work with the $. So I'm back to square one....:( Sorry for the hasty reply. |
To answer an earlier query, the following is the contents of /etc/profile,
Code:
# Begin /etc/profile Code:
# Begin ~/.bash_profile |
Quote:
Regards, GH |
Just wondering if anyone out there had an idea what was wrong here?? Could it be due to me cutting and pasting the files, which means that there is no EOF at the end?? I don't think so since the problem seems to be with the first line of code, but I'm not an expert!!!
All help is appreciated!! |
All times are GMT -5. The time now is 03:40 PM. |