LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 08-19-2012, 04:05 AM   #16
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412

Hi

another thing I have just noticed you should be in dir /mnt/lfs

you look like you are in $ source
 
Old 08-19-2012, 11:41 AM   #17
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
OK yeah that was a typo.

When i login as lfs i get this;



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.
 
Old 08-19-2012, 11:46 AM   #18
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-19-2012, 12:06 PM   #19
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by gingernate
When i login as lfs i get this;

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:
Code:
cat /home/lfs/.bash_profile
cat /home/lfs/.bashrc
 
Old 08-19-2012, 12:08 PM   #20
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
nathan@ubuntu:~$ sudo cat /home/lfs/.bash_profile
exec env -i HOME=$HOME TERM=$TERM PS1=' \u:\w\$ ' /bin/bash
nathan@ubuntu:~$ cat /home/lfs/.bashrc
set +h
unmask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin/usr/bin
export LFS LC_ALL LFs_TGT PATH


Oh i see. ok im gonna go back and change "unmask 022" to "umask 022"

Last edited by gingernate; 08-19-2012 at 12:12 PM.
 
Old 08-19-2012, 12:13 PM   #21
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by gingernate View Post
nathan@ubuntu:~$ sudo cat /home/lfs/.bash_profile
exec env -i HOME=$HOME TERM=$TERM PS1=' \u:\w\$ ' /bin/bash
nathan@ubuntu:~$ cat /home/lfs/.bashrc
set +h
unmask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin/usr/bin
export LFS LC_ALL LFs_TGT PATH
That should be umask not unmask.....

EDIT: You did notice the typo.........
 
Old 08-19-2012, 12:32 PM   #22
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
ok i think i have fixed that issue, but i still have an issue trying to do the same thing.

lfs@ubuntu:~$ mkdir -v ../binutils-build
mkdir: cannot create directory `../binutils-build': File exists
lfs@ubuntu:~$ cd ../binutils-build
lfs@ubuntu:/home/binutils-build$ ../binutils-2.22/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-werror
-su: ../binutils-2.22/configure: No such file or directory
lfs@ubuntu:/home/binutils-build$
 
Old 08-19-2012, 12:32 PM   #23
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I see other errors:
- PATH=/tools/bin:/bin/usr/bin -> PATH=/tools/bin:/bin:/usr/bin
- export LFS LC_ALL LFs_TGT PATH -> export LFS LC_ALL LFS_TGT PATH

........
 
Old 08-19-2012, 12:33 PM   #24
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
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$
 
Old 08-19-2012, 12:34 PM   #25
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
ok i will fix those errors, but i copied and pasted? Are those errors in the LFS book or is it just expected that i know not to put that?
 
Old 08-19-2012, 12:40 PM   #26
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by gingernate View Post
ok i will fix those errors, but i copied and pasted?
Is that a question? If you actually copy-> pasted then you have a big problem......

Quote:
Are those errors in the LFS book or is it just expected that i know not to put that?
Those errors are not in the book, which you can check yourself.

Do you actually visually check what you copy and paste (type)? If you would have you would have noticed these typo's.
 
Old 08-19-2012, 02:11 PM   #27
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
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??
 
Old 08-19-2012, 04:42 PM   #28
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by gingernate

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.

Last edited by stoat; 08-19-2012 at 05:31 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ../binutils-2.21/configure \ file not found mich04 Linux From Scratch 2 10-25-2011 06:00 AM
[SOLVED] ./configure fails during Binutils Pass 2 supern0va Linux From Scratch 5 11-09-2010 10:46 AM
binutils configure error soumajit Linux From Scratch 1 12-07-2009 07:58 AM
Binutils won't configure or install paintmandoo3993 Linux From Scratch 2 09-24-2009 04:28 PM
-bash: ../binutils-2.15.94.0.2.2/configure: No such file ordirectory satimis Linux From Scratch 10 07-19-2005 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration