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.
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:~$
I logged in as my regular username and i was able to mkdir, but when i got to configure binutils i get this;
nathan@ubuntu:~$ ../binutils-2.22.tar.bz2/configure --target=$LFS_TGT --prefix=/tools disable-nls --disable-werror
bash: ../binutils-2.22.tar.bz2/configure: No such file or directory
What the heck am i doing wrong? Something else to note that when i sign in as lfs i get this message;
nathan@ubuntu:~$ su - lfs
Password:
No command 'unmask' found, did you mean:
Command 'unmass' from package 'unmass' (universe)
unmask: command not found
lfs@ubuntu:~$
Any help would be great.
Last edited by gingernate; 08-19-2012 at 01:28 AM.
I think you have made a mistake somewhere earlier, Did you complete the earlier setions as root of the host. Up to where you su to lfs? maybe chapter 4.4 is not correct. I would go back and start again.
ok i have gone back and started over and here may be the problem. I guess for some reason it says /dev/sda3 does not exist? it does i have double checked with gparted
Also what is the command for version-check?
nathan@ubuntu:~$ sudo debugfs -R feature /dev/sda3
[sudo] password for nathan:
debugfs 1.42 (29-Nov-2011)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
nathan@ubuntu:~$ cd /tmp
nathan@ubuntu:/tmp$ tar -cd
tar: You may not specify more than one `-Acdtrux' or `--test-label' option
Try `tar --help' or `tar --usage' for more information.
nathan@ubuntu:/tmp$ cd
nathan@ubuntu:~$ export LFS=/mnt/lfs
nathan@ubuntu:~$ mkdir -pv $LFS
nathan@ubuntu:~$ mount -v -t ext3 /dev/<sda3> $LFS
bash: sda3: No such file or directory
nathan@ubuntu:~$
Last edited by gingernate; 08-19-2012 at 02:23 AM.
Ok thanks thats helpful. I think i had <> around sda3. And i was reading that link you sent me and i have toinstall all those packages on my system? i thought i just had to download the files. If thats the case i feel like an idiot! haha
ok so here is another problem that i have encountered as i continue. its listed under "4.4. Setting Up the Environment"
lfs@ubuntu:~$ cat > ~/.bash_profile <<"EOF"
> exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
> EOF
Command 'cat' is available in '/bin/cat'
The command could not be located because '/bin' is not included in the PATH environment variable.
cat: command not found
Im really sorry for being such a newbie. Although i know what all that means idk how to do it. if you could post commands that would be great. If youre asking what distro im its ubuntu 12.04. and again thanks for being so helpful and sorry for being a newbie
Awesome...... thanks so much! I had a few less error message that time! but there is still a problem.
"5.4.1. Installation of Cross Binutils"
lfs@ubuntu:~$ source ~/.bash_profile
No command 'unmask' found, did you mean:
Command 'unmass' from package 'unmass' (universe)
unmask: command not found
lfs@ubuntu:~$ ^C
lfs@ubuntu:~$
lfs@ubuntu:~$ echo $LFS
/mnt/lfs
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:~$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.