mkdir ../binutils-build permission denied
building 5.0 on slackware 9.1
have followed book to the letter...3 times now, get same permissions problem added the user lfs and all goes OK until I go to SU to lfs su - lfs returns /dev/pts/1: Operation not permitted and then gives me lfs@darkstar Set up the environment per book mkdir ../binutils-build returns mkdir: cannot create directory '..binutils-build' Permission denied Advice please Thanks |
different distro different result. I installed LRs LFS and changed nothing in the way I was doing things and I am currently about 1/2 way through the LFS book. Dont understand why it works on LRs and not slack. Any insight would be appreciated as I would like to understand this. Thanks
|
did you follow the instructions in the book about creation of user 'lfs'..? have you given proper permission to the downloaded package directories to 'lfs'.. you can give permission by entering "chown -R lfs /directory/of/packages" in the terminal..
|
Have you unpacked the package in $LFS/sources and changed into the package directory? (Chapetr 5 Intorduction)
cd $LFS/sources bzip2 -cd binutils-2.14.tar.bz2 | tar xvf - cd binutils-2.14 Now you should be able to create the binutils-build directory. |
UH, do you have "devpts" enabled in the $host kernel??
unless your host system has it working, LFS will give this error......... it will be the same with /proc the "virtual processes" have to be working on the $host system for LFS to enable it.........you will need devpts and /proc working in order to enter the chroot environment in chapter 6!! |
I had the same problem so I unpacked all the sources my way in installed them my way and just used there prefixs and other junk ...lol works for me... I think the documentation is poorly done though... but thats just my opinion.
|
CryptDragoon,
Would you mind posting what "your" way is? |
I unpaked all the sources read there readme's and did what I was told.
simple as that all I use the guid fore is to compile what packages in what order I didn't really care what it said about anything else... |
Quote:
|
I just posted this as bug 779
Revise http://lfs.130th.net/lfs/view/test/c...ils-pass1.html from: ============================ mkdir ../binutils-build cd ../binutils-build ============================ to be: ============================ Change to where you downloaded the package cd $LFS/sources If you batch retrieved packages you might have to unpack the tarball as follows: tar -jxvf binutils-2.14.tar.bz2 mkdir binutils-build cd binutils-build ============================ |
Quote:
if you read the introduction in chapter 5 which says: Quote:
if you still think it is a bug, you also have to report pretty much all build instructions in the book, because they all assume that you start in the source directory of the package you are going to build. |
Quote:
#mkdir ../binutils That can be anywhere! It should have been like this: /# cd sources sources#mkdir ../binutils See THAT is how to make porper documentation! not the LFS way! |
All times are GMT -5. The time now is 10:40 AM. |