PECL Install Error: /bin/sh: bad interpreter: Permission denied
Category:
When I tried to use PECL to install APC. I got error below :
downloading APC-3.0.19.tgz ... Starting to download APC-3.0.19.tgz (115,735 bytes) .........................done: 115,735 bytes 47 source files, building WARNING: php_bin /usr/local/php5/bin/php appears to have a suffix 5/bin/php, but config variable php_suffix does not match running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 /usr/local/php5/bin/phpize: /tmp/pear/temp/APC/build/shtool: /bin/sh: bad interpreter: Permission denied Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. ERROR: `phpize' failed
Then, I realized that I did something with /tmp partition for security reason. So, I have to temporary disable it by using command below:
mount -o remount,exec /tmp
After installed extension, just remount /tmp partition again.
mount -o remount,noexec /tmp
Comments
Codename: Steev...
Tue, 03/01/2011 - 13:07
Permalink
No-Go For Me But...
Solved it on an (mt) host using a chrooted environment under /root
Simple actually. See their docs.
Jak
Sun, 04/03/2011 - 14:44
Permalink
Thanks for this!
Thanks for this!
Add new comment