bash: bzcat: command not found
bash-2.05a$ cd /mnt/lfs/usr/src/
bash-2.05a$ bzcat bzip2-1.0.2.tar.bz2 | tar xv bash: bzcat: command not found bash-2.05a$ this how my bash shel appear i am in the stage of installing bzip2 in chapter 6 when i open my bash shell i found written " bash-2.05a$ " instead of " linux$ " and when i type anycomman as u can see above like cd /mnt/lfs it stays on bash also and when trying to unbz2 the bzip2 file it says command not found although i am sure i unbz2 all the previos packages with the same command can anyone help me plz |
It sounds like bash is not finding the program because it is not loaded with the correct config (/etc/profile , ~/.bash_profile, ~/.bashrc). I don't know why it would suddenly do that, but try this:
go to your home directory (/root) and type "source .bash_profile". This should change the prompt (if this is where you configured it), and have the correct path settings. Or you could do "/usr/bin/bzcat" Good Luck ***I had those profile file names wrong*** |
bash-2.05a# cd /root
bash-2.05a# source .bash_profile bash: .bash_profile: No such file or directory |
hmm... How did you set up your prompt to have "linux$"? Either way, you should have the .bash_profile... here's a copy of mine (with irrevelant stuff pulled out)
# Begin /root/.bash_profile PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin export PS1 PATH # End /root/.bash_profile |
Are you still chrooted into the $LFS directory?
This makes bash think that $LFS is / (the root dir. of the system) Once you get some time, check out this how-to: http://www.linux.org/docs/ldp/howto/...WTO/index.html |
sorry but i am not sure how to check if i am still chrooted or not
i typed source .bash_profile under /mnt/lfs/root and the result was that the bash shel retuned to the normal state : but when i closed the bash shel and reopened it again it returned to write " bash-2.05a $ ' again |
i was able it unbiz2 the file with the command u said in the other thread
; tar -jxvf <file.bz2> |
About the chroot stuff (it's kindof important... you can screw things up). You are installing the LFS from an other system, correct? ok, that system has it's own directory tree ( "/" being at the top, with /root /usr/ , ect....) Now, when you are installing the lfs from that system, you are installing it in a directory WITHIN that directory tree (in the book, they call it $LFS). When you do "chroot $LFS" from the command line in the origonal system, it tells bash that the top level of the directory tree should be $LFS, and FOR THAT SESSION OF BASH ONLY, it considers $LFS on your base system to be "/". This way, when you install programs, they don't go all over the place in your base system, and stay right there in your $LFS directory. this means that every time you open a new window from your base system, you have to do that chroot command. In chapter 6 of the book, look again @ "entering the chrooted environment". the 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 sets up that path stuff for you (instead of using ~/.bash_profile) Good Luck -Adam |
i think that i will start the lfs from the start again and be more carefull cos i think i made smale mistakes while procceding in the step
hope i have good luck this time |
thanx alot for ur help my friend
|
bash-2.05a# 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 chroot: cannot execute /static/bin/env: No such file or directory bash-2.05a# i think will restart from the start again but do i have to do anything to clean the old lfs system and to remove the bash-2.05a |
ooh yeah, to get the "source .bash_profile" to work in chapter 6, you have to add ":/static/bin:/static/bin/bash:" at the end of "PATH=" in that file
|
yeah, maybe your $LFS variable didn't work... that happened to me too at first. I installed it all with the actual path (/mnt/lfs/) instead of doing the $LFS thing. you should probably just delete all of the stuff in $LFS.
***Unless you think you can install a few missing packages again, this time in the correct path Good Luck... ooh yeah... look @ "install software as an unprivelaged user" again... this way you can set up a user "lfs" in your base system that won't be able to write damaging stuff to your base system, and will have the $LFS variable set for you |
th same error msg
|
after that, try re-booting, maybe the "bash-2.05a" will go away... because your system will re-load the bash config stuff
|
All times are GMT -5. The time now is 07:12 AM. |