LinuxQuestions.org
Help answer threads with 0 replies.
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, 01:27 AM   #1
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Rep: Reputation: Disabled
Angry Cant configure binutils!


LFS v7.1
5.4.1. Installation of Cross Binutils

i am unable to mkdir mkdir -v ../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:~$


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.
 
Old 08-19-2012, 01:48 AM   #2
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

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.

Also post the output of version-check
 
2 members found this post helpful.
Old 08-19-2012, 02:22 AM   #3
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-19-2012, 02:32 AM   #4
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

Have a read here

Run the script make sure your host is compliant to build with.

Quote:
mount -v -t ext3 /dev/<sda3> $LFS
you dont need < > around sda3.
 
Old 08-19-2012, 02:41 AM   #5
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-19-2012, 02:52 AM   #6
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

Did you issue all the commands upto chapter 4.4 as root?

can you post the output of the version-check as well
 
Old 08-19-2012, 02:54 AM   #7
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
Yes i did do all commands a root and how do i do version-check?
 
Old 08-19-2012, 03:11 AM   #8
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

copy and paste the script into host make it executable then run the script, make sure it,s in your path
 
Old 08-19-2012, 03:15 AM   #9
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-19-2012, 03:23 AM   #10
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
maybe this is what youre looking for?

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"
 
Old 08-19-2012, 03:24 AM   #11
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
Ok

Copy and paste [code]#!/bin/bash
# Simple script to list version numbers of critical development tools

Code:
#!/bin/bash
# Simple script to list version numbers of critical development tools

export LC_ALL=C
bash --version | head -n1 | cut -d" " -f2-4
echo "/bin/sh -> `readlink -f /bin/sh`"
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
bison --version | head -n1
if [ -e /usr/bin/yacc ];
  then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`"; 
  else echo "yacc not found"; fi

bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
diff --version | head -n1
find --version | head -n1
gawk --version | head -n1
if [ -e /usr/bin/awk ];
  then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`"; 
  else echo "awk not found"; fi

gcc --version | head -n1
ldd --version | head -n1 | cut -d" " -f2-  # glibc version
grep --version | head -n1
gzip --version | head -n1
cat /proc/version
m4 --version | head -n1
make --version | head -n1
patch --version | head -n1
echo Perl `perl -V:version`
sed --version | head -n1
tar --version | head -n1
echo "Texinfo: `makeinfo --version | head -n1`"
xz --version | head -n1

echo 'main(){}' > dummy.c && gcc -o dummy dummy.c
if [ -x dummy ] 
  then echo "gcc compilation OK";
  else echo "gcc compilation failed"; fi
rm -f dummy.c dummy
Run
Code:
chmod +x version-check.sh
to make it executeable.
Put file in /bin

then run script from terminal
 
1 members found this post helpful.
Old 08-19-2012, 03:29 AM   #12
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
Alright thanks. i hope this is what you were looking for.


bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-29-generic-pae (buildd@roseapple) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
gcc compilation OK
 
Old 08-19-2012, 03:36 AM   #13
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
Ok

all good just got to fix this part
Quote:
/bin/sh -> /bin/dash
should be /bin/sh -> /bin/bash

Code:
sudo rm -v /bin/sh
Code:
sudo ln -s /bin/bash /bin/sh
 
Old 08-19-2012, 03:49 AM   #14
gingernate
LQ Newbie
 
Registered: Aug 2012
Distribution: Ubuntu 12.04LTS
Posts: 20

Original Poster
Rep: Reputation: Disabled
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:~$
 
Old 08-19-2012, 03:59 AM   #15
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
Is this a typo
Quote:
lfs@ubuntu:~$ mkdir -v ..binutils-build
should be lfs@ubuntu:~$ mkdir -v ../binutils-build

and
Quote:
No command 'unmask' found, did you mean:
should be No command 'umask' found, did you mean:

post .bashrc file
 
  


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 02:14 AM.

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