LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-20-2010, 07:58 AM   #1
Blackbird++
LQ Newbie
 
Registered: Jun 2010
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 1
Permission denied while ./configure in Ubuntu


Hi, here's my problem:

I want to build LFS on my Ubuntu machine.
When I'm trying to do ../binutils-2.20/configure in chapter 5.4.1, I get a:
Code:
bash: ../binutils-2.20/configure: Permission denied
I followed the main book step by step. I'm working as the user lfs and the configure-script is executable:
Code:
$ ls -l $LFS/sources/binutils-2.20/
...
-rwxr-xr-x 1 lfs lfs  439149 Sep  2  2009 configure
...
The partition is mounted with the 'user' option, no 'noexec'.


Could you tell me please what is the problem here?
 
Old 06-20-2010, 08:23 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by Blackbird++ View Post
The partition is mounted with the 'user' option, no 'noexec'.


Could you tell me please what is the problem here?
Sorry didn't see the no noexec !

Have you tried changing to the binutils-2.20 directory and running it as ./configure ?

Last edited by smoker; 06-20-2010 at 08:26 AM.
 
Old 06-20-2010, 08:47 AM   #3
Blackbird++
LQ Newbie
 
Registered: Jun 2010
Distribution: Ubuntu
Posts: 16

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by smoker View Post
Sorry didn't see the no noexec !
Sorry? :-D
Quote:
Originally Posted by smoker View Post
Have you tried changing to the binutils-2.20 directory and running it as ./configure ?
Sure, same thing.
 
Old 06-20-2010, 08:47 AM   #4
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
Hi,

Quote:
I followed the main book step by step.
No, you did not.....

Quote:
The partition is mounted with the 'user' option, no 'noexec'.
Why? Any good reason to deviate from the book?

Another thing: Did you make ubuntu suitable for installing LFS? Out of the box ubuntu is not suitable (vii. Host System Requirements). I would suggest using the LFS liveCD as host. You could change ubuntu, but that could have other side effects (seeing from ubuntu that is), the LFS liveCD was created to be a suitable host for building LFS.

Hope this helps.
 
Old 06-20-2010, 10:00 AM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by Blackbird++ View Post
Sorry? :-D
I originally jumped on noexec as the cause, then saw the extra no in front, so I edited the post. I apologised in case you had already seen the original erroneous post.

I defer to druuna's greater experience on the LFS issue.
 
Old 06-20-2010, 10:02 AM   #6
Blackbird++
LQ Newbie
 
Registered: Jun 2010
Distribution: Ubuntu
Posts: 16

Original Poster
Rep: Reputation: 1
@druuna: I didn't deviate from the book, because 'user' isn't "too restrictive", and hasn't to do with my problem anyway.

What do you mean with suitable? I just installed all needed packages.

Last edited by Blackbird++; 06-20-2010 at 10:03 AM.
 
Old 06-20-2010, 10:09 AM   #7
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
Hi,
Quote:
Originally Posted by Blackbird++ View Post
@druuna: I didn't deviate from the book, because 'user' isn't "too restrictive", and hasn't to do with my problem anyway.
I do hope you at least tried the way the book tells you to do it. That works, any deviation might mess things up. But it is your LFS install, do whatever you want.

Quote:
What do you mean with suitable? I just installed all needed packages.
Care to explain this? You are at chapter 5.4.1, this is the first package you need to install and it fails.....
 
Old 06-20-2010, 02:22 PM   #8
Blackbird++
LQ Newbie
 
Registered: Jun 2010
Distribution: Ubuntu
Posts: 16

Original Poster
Rep: Reputation: 1
It shouldn't be impossible to build LFS on Ubuntu.

So, what do you think should I try out to solve my current problem? Or, to make my Ubuntu "suitable".
 
Old 06-20-2010, 02:36 PM   #9
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
Hi,

If you want to use ubuntu, make sure it meets the requirements (vii. Host System Requirements). This would probably mean you have to upgrade and/or downgrade packages and possibly install packages. Do mind the comments behind the packages.

As stated in post #4, I would advise against it (use the liveCD). But in the end it is your box

Hope this helps.
 
Old 06-22-2010, 12:16 PM   #10
Blackbird++
LQ Newbie
 
Registered: Jun 2010
Distribution: Ubuntu
Posts: 16

Original Poster
Rep: Reputation: 1
Ok, here you are:
Code:
$ ./version-check.sh

bash, version 4.1.5(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.1) stable release version 2.11.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.32-22-generic-pae (buildd@palmer) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #36-Ubuntu SMP Thu Jun 3 23:14:23 UTC 2010
m4 (GNU M4) 1.4.13
GNU Make 3.81
patch 2.6
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.22
Texinfo: makeinfo (GNU texinfo) 4.13
Compilation OK
Do I really have to downgrade these packages? Sounds a bit stupid to me.

Anyway I don't want to use the live cd - wouldn't I have to set up all settings everytime I reboot?

Last edited by Blackbird++; 06-22-2010 at 12:19 PM.
 
Old 06-22-2010, 12:27 PM   #11
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
Hi,

Without looking at the requirements in the book I already see one that is definitely wrong, and it will cause problems.

Quote:
Anyway I don't want to use the live cd - wouldn't I have to set up all settings everytime I reboot?
You need to do that with or without the liveCD.
 
Old 06-22-2010, 12:49 PM   #12
Blackbird++
LQ Newbie
 
Registered: Jun 2010
Distribution: Ubuntu
Posts: 16

Original Poster
Rep: Reputation: 1
Ok, I think I will have to learn a lot to become success with LFS... look at this: FAQ. 'user' includes 'noexec'.

Sorry all.
 
Old 06-22-2010, 12:56 PM   #13
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
Hi,

Like I said: Follow the book, the book is good

You do need to fix the other problem.......
 
Old 06-22-2010, 01:22 PM   #14
Blackbird++
LQ Newbie
 
Registered: Jun 2010
Distribution: Ubuntu
Posts: 16

Original Poster
Rep: Reputation: 1
Sorry, I don't understand you again. What's the thing?
 
Old 06-22-2010, 01:36 PM   #15
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
The fact that user includes noexec does not change the output you posted in post #10. Been trying to put that to your attention in post #11 and #13.
 
  


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
./configure - permission denied Odan Linux - General 14 03-31-2013 10:04 AM
./configure: Permission denied munkie_poo Slackware 31 07-15-2012 02:55 AM
env: ./configure: Permission denied GavB Linux - Newbie 6 02-12-2007 02:43 PM
./configure: Permission denied Qing Feng Linux - Newbie 3 11-16-2004 11:08 AM
./configure --> permission denied mrosati Linux - Software 3 05-13-2004 02:48 PM

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

All times are GMT -5. The time now is 03:56 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