mkdir ../binutils-build gives me "Permission Denied"!!!
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mkdir ../binutils-build gives me "Permission Denied"!!!
I have been working with lfs for days and cant get past this. When I am logged in as user lfs I cannot mkdir ../binutils-build or any other directory in the book that starts with ../
It tells me "Permission Denied". Is the two dots followed by a forward slash in front of these directories just a typo or am I doing something wrong? Im following the book to the letter and this still stops me cold!
Yup....as I said Im following the book to the letter. I hav'nt missed a thing. As a matter of fact I have started over twice to make absolute sure. I get the same thing every time...when im in user lfs I cannot create these directories.
Originally posted by matthewa Yup....as I said Im following the book to the letter. I hav'nt missed a thing. As a matter of fact I have started over twice to make absolute sure. I get the same thing every time...when im in user lfs I cannot create these directories.
Thanks for trying, though
OK, post your /etc/fstab
maybe your user does not have the proper permissions to access .......
Thanks for all the help guys..but lemme ask this...
Where exactly are you suppose to build the binutils-2.15.91.0.2 source at? Let me be more specific.....
1.) At the beginning 4.2. Creating the $LFS/tools Directory it says, " All programs compiled in Chapter 5 will be installed under $LFS/tools to keep them separate from the programs compiled in Chapter 6."
2.) But, at the beginning of the binutils-2.15.91.0.2 builf chapter it states that, " The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory"
3.) To make things even more confusing the prefix ../ at the beginning of mkdir ../binutils-build usually refers to the root file tree, which is where bash puts the directory if I give that command while in root mode.
So, do I compile the binutils-2.15.91.0.2 package in /mnt/lfs/tools? Or, do I compile it in /mnt/lfs/binutils-build? It doesnt make much since using mkdir ../binutils-build, then moving the binutils-2.15.91.0.2 package into that file and building it on the host system. My host already has the binutils package on it! It's suppose to be built on the mnt/lfs partition, right???
Another question...............nothing seems to work for me when Im in user lfs mode! So, why cant I just build everything in root mode? Is it absolutley nesseccary to build within the user lfs mode?????
Originally posted by matthewa
1.) At the beginning 4.2. Creating the $LFS/tools Directory it says, " All programs compiled in Chapter 5 will be installed under $LFS/tools to keep them separate from the programs compiled in Chapter 6."
Right
Quote:
Originally posted by matthewa
2.) But, at the beginning of the binutils-2.15.91.0.2 builf chapter it states that, " The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory"
Yes
Quote:
Originally posted by matthewa
3.) To make things even more confusing the prefix ../ at the beginning of mkdir ../binutils-build usually refers to the root file tree, which is where bash puts the directory if I give that command while in root mode.
You were in [/mnt/lfs/sources/binutils-2.15.91.0.2] so absulute of [../binutils-build] is [/mnt/lfs/sources/binutils-build]
Quote:
Originally posted by matthewa
So, do I compile the binutils-2.15.91.0.2 package in /mnt/lfs/tools? Or, do I compile it in /mnt/lfs/binutils-build? It doesnt make much since using mkdir ../binutils-build, then moving the binutils-2.15.91.0.2 package into that file and building it on the host system. My host already has the binutils package on it! It's suppose to be built on the mnt/lfs partition, right???
You should compile in [/mnt/lfs/sources/binutils-build] then install to [/mnt/lfs/tools]
Quote:
Originally posted by matthewa
Another question...............nothing seems to work for me when Im in user lfs mode! So, why cant I just build everything in root mode? Is it absolutley nesseccary to build within the user lfs mode?????
You can make everything in root mode with your own risk ;-)
(remark: all packages and patches in /mnt/lfs/sources/ )
Whether I should first untar 'binutils-2.15.91.0.2.tar.bz2' with following steps;
lfs:~$ cd /mnt/lfs/sources/
lfs:/mnt/lfs/sources$ tar jxvf binutils-2.15.91.0.2.tar.bz2
lfs:/mnt/lfs/sources$ cd ./binutils-2.15.91.0.2
lfs:/mnt/lfs/sources/binutils-2.15.91.0.2$ mkdir ../binutils-build
lfs:/mnt/lfs/sources/binutils-2.15.91.0.2$ cd mkdir ../binutils-build
to run
../binutils-2.15.91.0.2/configure --prefix=/tools \
--disable-nls
You were in lfs:~$ so when you mkdir ../binutils-build mean you want to make a directory in users directory (ex: /home) => Permission denied
You should be in $/mnt/lfs/sources/binutils-x.x.x before run mkdir ../binutils-build
$ cd /mnt/lfs/sources
$ tar jxf package.tar.bz2
$ cd package*
$ and then follow LFS guide
Noted with thanks.
An additional question;
There are bundle of package-tarballs and patches in /mnt/lfs/sources. After their extraction, the pcakage-tarballs and their decompressed packages are co-existing in the directory. After building LFS completed is there a simple method to delete all package-tarballs together rather than deleting them manually one-by-one to free HD space.
An additional question;
There are bundle of package-tarballs and patches in /mnt/lfs/sources. After their extraction, the pcakage-tarballs and their decompressed packages are co-existing in the directory. After building LFS completed is there a simple method to delete all package-tarballs together rather than deleting them manually one-by-one to free HD space.
B.R.
satimis
To delete all extracted directories, run script like:
Code:
for input in `ls` ; do
if [ -d $input ]; then
echo "Removing $input" && rm -rf $input
fi
done
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.