Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-25-2008, 08:24 PM   #1
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Rep: Reputation: 30
(SOLVED) Compile ./configure Permission denied

I'm using a fresh install of Kubuntu 8.04 with KDE3 (though this is not a KDE/Gnome problem). I have installed libc6-dev, make, automake, autoconf, g++, gcc and other things.

Whenever I try to compile something with ./configure, I have problems. It says:

bash: ./configure: /bin/sh: bad interpreter: Permission denied
I found a way around this by doing: "sh ./configure" but the configure script fails because it try to execute './a.out' at one point as a check, and gets the error:

./configure: line 2827: ./a.out: Permission denied
This is a fairly serious error, since this means I cannot compile things. Anyone know of this bug and if there is a fix?

Last edited by sadarax; 04-26-2008 at 12:19 AM.
Old 04-25-2008, 08:50 PM   #2
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Try command: sudo ./configure
Old 04-25-2008, 09:32 PM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Are you trying this in your home directory where you have full rights? Also make sure you didn't untar the tarball using a windows utility. A \n\r pair at the end of lines in scripts can cause problems as well, but I don't think this is the case here.
Also make sure you have the binutils package installed.
Old 04-26-2008, 12:18 AM   #4
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
The problem was how I had mounted my harddrive. I normally configure my /etc/fstab by hand, but this time I figured "What the hey? I'll just let KDE do it for me through their GUI." Well, the GUI set the drive with 'noexec' as an option when mounting.

I changed the option, remounted and everything was fine.


compile, configure, denied, permission

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 On
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
./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
./configure errors: permission denied! TippExed Linux - Software 4 09-10-2002 10:50 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:44 AM.

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