Permission denied on a.out in ./configure

Clayton Daley clayton.daley at
Thu Sep 18 16:01:59 UTC 2014

Good morning,

I'm trying to install gmp on a DreamHost shared server. Various posts on
the internet suggest this should be possible. When I run "sh ./configure"
or "sh ./configure --prefix=/come/******/php5" (where *s are my username),
I get:

configure: error: could not find a working compiler

The issue doesn't seem to be the compiler itself as "a.out" appears to be
created, but has a permissions issue (from config.log):

configure:5625: checking compiler gcc -O2 -pedantic -fomit-frame-pointer
Test compile:
configure:5639: gcc -O2 -pedantic -fomit-frame-pointer -m64  conftest.c >&5
configure:5642: $? = 0
configure:5647: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./configure: line 5648: ./a.out: Permission denied
./configure: line 5648: ./b.out: No such file or directory
./configure: line 5648: ./a.exe: No such file or directory
./configure: line 5648: ./a_out.exe: No such file or directory
./configure: line 5648: ./conftest: No such file or directory
configure:5650: $? = 127
failed program was:

int main () { return 0; }

I'm posting in discuss because I realize this is probably a basic Linux
configuration issue instead of a legitimate bug., Unfortunately, I don't
control the environment so I'm hoping that (1) the build would have
completed properly despite the "permission denied" and (2) there is a
workaround option in "configure" to skip the tests (and possibly specify
the compiler instead)

In case it matters, here's some of the requested "bug report" info:

$ gcc -v

Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8'
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--with-arch-32=i586 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)
$ uname -a
Linux baratheon 3.2.45-grsec-2.9.1-r3+ #63 SMP Fri May 24 02:11:07 UTC 2013
x86_64 GNU/Linux

$ sh ./config.guess
$ sh ./configfsf.guess

I could grab the whole config.log if you really need it, but the problem
seems to be obvious from that one snippet.


Clayton Daley

More information about the gmp-discuss mailing list