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.
nathan@ubuntu:~$ su - lfs
Password:
No command 'unmask' found, did you mean:
Command 'unmass' from package 'unmass' (universe)
unmask: command not found
I dont understand wgat its telling me. When did i type unmass or unmask? at first i thought i had made a mistake eariler on but i went back and double checked and found nothing.
ok so here is what i get when i try to binutils-build;
lfs@ubuntu:~$ mkdir -v ../binutils-build
Command 'mkdir' is available in '/bin/mkdir'
The command could not be located because '/bin' is not included in the PATH environment variable.
mkdir: command not found
lfs@ubuntu:~$
how is mkdir not found? mkdir works fine when logged in as my normal user, just not as lfs. Again i wnt back and deleted the old lfs user and started again, making sure to enter all command right but i was unable to fix anything. Again i understand what the computer is telling me i just dont know how to fix it.
Ok so with a little experimentation i have found that with lfs user even simple commands do not exist, ie. ls. I am for some reason able to cd ../binutils-build.
nathan@ubuntu:~$ su - lfs
Password:
No command 'unmask' found, did you mean:
Command 'unmass' from package 'unmass' (universe)
unmask: command not found
unmask isn't a linux command, umask is. You probably made one or more mistakes in your lfs environment files.
Execute these 2 commands as root user and post the resulting outcome:
I tried to build binutils in "cd /mnt" and i get this;
lfs@ubuntu:/mnt$ mkdir -v ../binutils-build
mkdir: cannot create directory `../binutils-build': Permission denied
lfs@ubuntu:/mnt$ sudo mkdir -v ../binutils-build
[sudo] password for lfs:
lfs is not in the sudoers file. This incident will be reported.
lfs@ubuntu:/mnt$
Yes i double check when i type but sometimes i miss stuff. And i have it all fixed. i thought i had sent you the code from the corrected (copied and pasted) code that i imputed, but i see that i did not. OK so i am back to the same issue. i have entered all the code correctly and i am still experiencing the same issue.
lfs@ubuntu:/home/binutils-build$ ../binutils-2.22/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-werror
bash: ../binutils-2.22/configure: No such file or directory
What am i doing wrong now? do u want me to go through the whole process of making the lfs user up until now and copy and past all the code??
lfs@ubuntu:/home/binutils-build$ ../binutils-2.22/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-werror
bash: ../binutils-2.22/configure: No such file or directory
You were not in the proper directory when you began section 5.4.1. As it is for all packages, untar the binutils tarball and change to the directory created by that. Then begin the commands in 5.4.1. When you do it that way, you will not be down in the /home directory of the lfs user. You will be down in the /sources directory in $LFS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.