pecl install -gcc error

If you get the following error while trying to install pecl packages

=============

pecl install xmlrpci-1.0
WARNING: channel “pear.php.net” has updated its protocols, use “channel-update pear.php.net” to update
downloading xmlrpci-1.0.tgz …
Starting to download xmlrpci-1.0.tgz (9,668 bytes)
…..done: 9,668 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
1. Enable Improved XML-RPC Support? : autodetect

1-1, ‘all’, ‘abort’, or Enter to continue:
building in /var/tmp/pear-build-root/xmlrpci-1.0
running: /usr/temp/download/xmlrpci-1.0/configure –enable-xmlrpci=autodetect
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: `/usr/temp/download/xmlrpci-1.0/configure –enable-xmlrpci=autodetect’ failed
==========================

The cause is that your /tmp is mounted noexec ,You can fix this error by mounting /tmp with exec option

mount -o,remount,rw,exec /tmp

Posted under php

This post was written by Anoop Alias on May 8, 2008

Tags:

1 Comment so far

  1. harnir June 12, 2008 10:22 am

    Loved it, thanks!

Leave a Comment

Name (required)

Email (required)

Website

Comments

More Blog Post

Next Post: neutron.gnusys.net
Previose Post: yum sqlite error