Hi,
I think that you missed the part where it says that the books assumes that you enter the source directory after decompress something, let me clarify that:
Code:
# This is what the book hopes you do everytime
tar -xvf package-1.2.tar.gz
cd package-1.2
And this is important because the if you've followed every instruction of the book, you should have a tools directory owned by the user you use to work with lfs but the same user doesn't own the root tree. So, let say you have this:
And 'tools' is owned by lfsuser (is an example), but 'lfs' is not owned by the same user, so, if you do this:
Code:
[root@localhost:/media/lfs/tools]: tar -xvf package-1.2.tar.gz
#and then you do this:
[root@localhost:/media/lfs/tools]: mkdir ../package-build
You'll get the permission denied error because your telling the system that it has to create the directory above the current directory, that with the above examples will be /media/lfs and not /media/lfs/tools where it should be.
So, this is what you have to do:
Code:
[root@localhost:/media/lfs/tools]: tar -xvf binutils-version.tar.gz
[root@localhost:/media/lfs/tools]: cd binutils-version
[root@localhost:/media/lfs/tools/binutils-version]: mkdir ../binutils-build
Change 'version' with the version of the package
Regards