Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Problem installing PECL modules (Cannot run C compiled programs)

Discussion in 'General Discussion' started by Mark W, Nov 15, 2006.

  1. Mark W

    Mark W Registered

    Apr 29, 2005
    Likes Received:
    Trophy Points:
    I'm having problems installing the zip pecl module. It outputting the error below...

    #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.
  2. billy79

    billy79 Active Member

    Dec 15, 2004
    Likes Received:
    Trophy Points:
    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.


  3. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    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.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice