The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

    Joined:
    Apr 29, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. billy79

    billy79 Active Member

    Joined:
    Dec 15, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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.
     
Loading...

Share This Page