php53u pecl install failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IUS Community Project |
Fix Released
|
Undecided
|
Jeffrey Ness |
Bug Description
I am seeing constant failures when attempting to install packages via pecl using php53u-pear.
CentOS release 5.6 (Final)
php53u-
php53u-
php53u-
php53u-
php53u-
php53u-
php53u-
php53u-
php53u-
Example:
[root@localhost vagrant]# pecl install -n solr-1.0.1
warning: pecl/solr requires PHP extension "curl"
downloading solr-1.0.1.tgz ...
Starting to download solr-1.0.1.tgz (100,683 bytes)
......done: 100,683 bytes
28 source files, building
ERROR: could not chdir to /var/tmp/solr/tests
The issues seem to reside around the extraction of the packages once downloaded and inability to locate the config.m4 file once extracted to run phpsize. The extracted path /var/tmp/solr/tests doesn't exist. This problem isn't affecting all package installs via pecl, just some.
Changed in ius: | |
assignee: | nobody → Jeffrey Ness (jeffrey-ness) |
status: | New → In Progress |
Hello Mark,
Thank you for your bug report, I have also been able to reproduce this issue on a Redhat EL 5.6 server using the latest php53u-pear package:
# rpm -q php53u-pear pear-1. 9.3-1.ius. el5.noarch
php53u-
# pecl install -n solr-1.0.1 ....... ....... ....done: 100,683 bytes
warning: pecl/solr requires PHP extension "curl"
downloading solr-1.0.1.tgz ...
Starting to download solr-1.0.1.tgz (100,683 bytes)
....
28 source files, building
ERROR: could not chdir to /var/tmp/solr/tests
Testing with the php53u-pear package from IUS Testing however showed more success:
# rpm -q php53u-pear pear-1. 9.4-1.ius. el5.noarch
php53u-
# pecl install -n solr-1.0.1 ....... ....... ....done: 100,683 bytes build/shtool: /bin/sh: bad interpreter: Permission denied
warning: pecl/solr requires PHP extension "curl"
downloading solr-1.0.1.tgz ...
Starting to download solr-1.0.1.tgz (100,683 bytes)
....
28 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
/usr/bin/phpize: /tmp/solr/
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
After remounting /tmp with execute permission the install went fine:
# mount -o remount /dev/vda2 /tmp
# pecl install -n solr-1.0.1 ....... ....... ....done: 100,683 bytes
warning: pecl/solr requires PHP extension "curl"
downloading solr-1.0.1.tgz ...
Starting to download solr-1.0.1.tgz (100,683 bytes)
....
28 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Enable Solr (yes of course) [yes] :
It seems this may be a issue with the 1.9.3 PEAR package which has been addressed in 1.9.4,
if you would please try with the IUS Testing package and provide any feedback:
https:/ /bugs.launchpad .net/ius/ +bug/807109
Thank you