You are not logged in.

#1 2013-05-25 00:25:09

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

[Solved] ./configure: permission denied

Edit: the reason was I had it compiling in /tmp which was set as a ram drive and had the noexec mount flag set.

Ok this is really starting to piss me off, a few weeks ago I did something that rendered me unable to compile programs because I keep getting ./configure:permission denied no matter what I change. I'm at a loss of what to do now.

 [root@ra ~/heimdall]# makepkg -si --asroot
==> Starting build()...
/root/heimdall/PKGBUILD: line 24: ./configure: Permission denied
==> ERROR: A failure occurred in build().
    Aborting...
# 
# /etc/fstab: static file system information
#
# <file system>                                 <dir>           <type>  <options>                               <dump>  <pass>
tmpfs                                           /tmp            tmpfs   nodev,nosuid,size=4G,noexec             0       0

UUID=e7bf512f-aaa6-49e0-9cc5-bbb9b272f213       /               ext4    rw,noatime,discard,exec,sync,nouser     0       2
UUID=8e4095f2-a443-4d29-9e06-8a71ea0aadc4       /home           xfs     suid,dev,discard,sync,exec              0       2
UUID=8e4e2cff-b92b-413e-88b8-b962653064c8       /var/lib/mysql  ext3    defaults,noatime,discard,data=ordered   0       2

UUID=27df0f80-1b79-4bf1-ac89-1dc0eb68a149       /mnt/movies     xfs     user,defaults,noatime,exec              0       2
UUID=450fec66-be30-4245-b81e-857e6169a113       /mnt/stuff      ext4    user,defaults,noatime,exec              0       2
UUID=30cd911b-fb5d-4f41-9067-39444c4726d6       /mnt/media      xfs     user,defaults,noatime,exec              0       2
UUID=61552c0b-5044-41ad-af91-19bd18e5d7fa       /mnt/moremedia  xfs     user,defaults,noatime,exec              0       2

How can I fix this?

Last edited by brando56894 (2013-05-25 03:26:08)

Offline

#2 2013-05-25 01:00:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] ./configure: permission denied

I'm not sure, but could suid interfere with makepkg's permissions?

EDIT: ah, missed this is all done as root not in your /home/

Last edited by Trilby (2013-05-25 02:01:28)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#3 2013-05-25 01:37:21

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: [Solved] ./configure: permission denied

I don't think that's the problem because it happens with root and normal accounts. It's more of a noexec problem I think.

Offline

#4 2013-05-25 02:01:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] ./configure: permission denied

Is there a reason you're running that as root?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#5 2013-05-25 03:06:38

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: [Solved] ./configure: permission denied

my home and / partitions are different filesystems, I thought it was an XFS problem but it doesn't work on ext4 either.

Offline

#6 2013-05-25 03:08:56

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [Solved] ./configure: permission denied

Is it possible ./configure is not executable? If it is, you can add an appropriate line to the PKGBUILD before it is run.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#7 2013-05-25 03:24:25

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: [Solved] ./configure: permission denied

I just found out that the problem was/is that these files can be run in /tmp because the noexec mount flag was set, I haven't had a chance to reboot but I did change the directory in /etc/makepkg.conf to /home/bran/makepkg and it compiled just fine.

Offline

#8 2013-05-25 11:21:33

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [Solved] ./configure: permission denied

Sidenote: never build as root, ever. Both the kenrel and bumblebee, (and probably other proojects), have had bugs in their makefiles that have caused rm -rf / and similar.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB