LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-20-2004, 08:51 PM   #1
El Basto
Member
 
Registered: Jun 2004
Location: Thousand Oaks, CA
Distribution: Suse 9.2, Slackware
Posts: 76

Rep: Reputation: 15
Compile binutils as lfs or root?


I am in the 3rd section of chapter 5 trying to compile binutils-2.14.
I have followed everything word for word untill this point (I think). I am logged in as the user 'lfs' and have unpacked binutils-2.14 into $LFS/sources/. I created a build directory for binutils ( $LFS/sources/binutils-build/ ) and cd into it. Then I make the command...
Code:
../binutils-2.14/configure --prefix=/tools --disable-nls
and I get an error saying "bash: ../binutils-2.14/configure: /bin/sh: bad interpreter: Permission denied" Does this mean I am supposed to compile binutils as root? I was under the impression that creating the user 'lfs' was so I didnt have to do everything as root.

Any ideas?
 
Old 08-20-2004, 08:55 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
this usually means you did not set your $PATH

export LFS=/LFS

or whatever PATH LFS is on your box

<edit/> also make sure that your lfs user has permissions to
the /LFS/tools directory.........

Last edited by 320mb; 08-20-2004 at 08:58 PM.
 
Old 08-20-2004, 09:26 PM   #3
El Basto
Member
 
Registered: Jun 2004
Location: Thousand Oaks, CA
Distribution: Suse 9.2, Slackware
Posts: 76

Original Poster
Rep: Reputation: 15
Ok, I made sure $LFS is set
Code:
echo $LFS
/mnt/lfs
And I checked the permissions on $LFS/tools/ which are drwxr-xr-x.
But I did notice that the group was 'root'. Should I change it to 'users' ?

Thanks for the speedy response!
 
Old 08-22-2004, 01:47 AM   #4
El Basto
Member
 
Registered: Jun 2004
Location: Thousand Oaks, CA
Distribution: Suse 9.2, Slackware
Posts: 76

Original Poster
Rep: Reputation: 15
Nevermind, I got it. I had mounted with too restrictive permissions. Unmounting and re-mounting solved the problem.

Thanks for the help!
 
Old 09-13-2004, 01:10 PM   #5
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Rep: Reputation: 15
Im having the same problem. Trying to configure gives:

bash: ../binutils-2.14/configure: /bin/sh: bad interpreter: Permission denied

To see if it was a permission problem i tried it as root and i got the same error. If i copy the binutils .tar.gz to, for example, my /root directory, extract it and run configure, it works.
If i cd to the binutils directory on /mnt/lfs/sources/binutils-2.14 and run configure it fails with the same error.

Ive tried all of the suggestions above, could someone help?

Thanks.

Last edited by donbellioni; 09-13-2004 at 01:21 PM.
 
Old 09-13-2004, 01:37 PM   #6
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Rep: Reputation: 15
Sorted. It was a problem with fstab.

http://www.redhat.com/archives/fedor.../msg04453.html

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
building Binutils-2.14 pass 1 (LFS 5.1.1) alihamza Linux From Scratch 1 10-10-2005 07:37 AM
LFS 5.1.1 - Can't install binutils-2.14 ginobili_20 Linux From Scratch 2 08-30-2004 03:01 PM
$LFS/tools empty after binutils install? awgriff279 Linux From Scratch 2 08-28-2004 05:57 PM
LFS 5.1.1: another problem after binutils pass 2 7.e.Q Linux From Scratch 1 07-12-2004 04:37 AM
LFS binutils install??? znif Linux From Scratch 2 06-25-2004 06:24 PM


All times are GMT -5. The time now is 04:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration