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

Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Tags:

2 Responses to “pecl install -gcc error”

  1. harnir Says:

    Loved it, thanks!

  2. duh Says:

    So how do you change it back afterwards ?

Leave a Reply