Problem installing PECL modules (Cannot run C compiled programs)

Mark W

Registered
Apr 29, 2005
2
0
151
I'm having problems installing the zip pecl module. It outputting the error below...

Code:
#pecl install zip
downloading zip-1.8.0.tgz ...
Starting to download zip-1.8.0.tgz (59,749 bytes)
..............done: 59,749 bytes
58 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
building in /var/tmp/pear-build-admin/zip-1.8.0
running: /tmp/tmpqZc37R/zip-1.8.0/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
ERROR: `/tmp/tmpqZc37R/zip-1.8.0/configure' failed
Would anyone know why it's failing? Prior to this error I had a permission problem of which I rectified by removing the noexec/nosuid permissions from /tmp. It's now decided to throw this "cannot run c compiled programs" error.

I've tried to check config.log, but I can't seem to find it.

This is what mount outputs:

#mount | grep /tmp
/dev/sda3 on /tmp type ext3 (rw)
/tmp on /var/tmp type none (rw,noexec,nosuid,bind)

I'm running CentOS 4.4

I would appreciate any help.
 

billy79

Active Member
Dec 15, 2004
42
0
156
I know this is an old thread but did you every figure out the problem with this? I am facing the same problem at this time.

Thanks!!!

-Billy
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
#mount | grep /tmp
/dev/sda3 on /tmp type ext3 (rw)
/tmp on /var/tmp type none (rw,noexec,nosuid,bind)
Well this one is a no brainer ....

The user is trying to execute scripts to compile at a non-executable mount point

Download the source to /usr/local/src instead of /tmp or /var/tmp and
that should clear up this particular issue.