Bug #64022 [Opn->Fbk]: php_suffix does not match when "php" exists in path
| From: | ab@php.net | Date: | Fri, 18 Jan 2013 19:10:15 +0000 |
| Subject: | Bug #64022 [Opn->Fbk]: php_suffix does not match when "php" exists in path | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-10239@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64022&edit=1
ID: 64022
Updated by: ab@php.net
Reported by: spero dot shiropetto at gmail dot com
Summary: php_suffix does not match when "php" exists in path
-Status: Open
+Status: Feedback
Type: Bug
Package: PECL
Operating System: RHEL 6.3
PHP Version: 5.4.11
Block user comment: N
Private report: N
New Comment:
You have to run the pecl commando from the prefix path, not from the global path. Looks like you
have some other php instance around.
Previous Comments:
------------------------------------------------------------------------
[2013-01-18 14:38:19] spero dot shiropetto at gmail dot com
Description:
------------
Receive a warning when attempting to install a pecl package if "php" already exists in the
directory path.
WARNING: php_bin /opt/php-5.4.11/bin/php appears to have a suffix -5.4.11/bin/php, but config
variable php_suffix does not match
./configure --prefix=/opt/php-5.4.11 ##failes
./configure --prefix=/opt/p-5.4.11 ##succeeds
./configure \
--prefix=/opt/p-5.4.11 \
--with-libdir=lib64 \
--enable-cli \
--enable-cgi \
--disable-debug \
--disable-short-tags \
--enable-shared \
--with-apxs2=/usr/sbin/apxs
make clean && make && make install
=================OUTPUT
Installing PEAR environment: /opt/p-5.4.11/lib/php/
[PEAR] Archive_Tar - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.3.0
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util - installed: 1.2.1
[PEAR] PEAR - installed: 1.9.4
pecl install pecl_http
===========OUTPUT
pecl install pecl_http
downloading pecl_http-1.7.4.tar ...
Starting to download pecl_http-1.7.4.tar (Unknown size)
..................................................................................................................................................................................done:
1,026,048 bytes
71 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
whether to enable cURL HTTP requests; specify libcurl directory [yes] :
Expected result:
----------------
pecl should not match the first "php" it sees to determine the php_suffix. packages should
install regardless of where PHP is.
pecl install pecl_http
===========OUTPUT
pecl install pecl_http
downloading pecl_http-1.7.4.tar ...
Starting to download pecl_http-1.7.4.tar (Unknown size)
..................................................................................................................................................................................done:
1,026,048 bytes
71 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
whether to enable cURL HTTP requests; specify libcurl directory [yes] :
Actual result:
--------------
./configure \
--prefix=/opt/php-5.4.11 \
--with-libdir=lib64 \
--enable-cli \
--enable-cgi \
--disable-debug \
--disable-short-tags \
--enable-shared \
--with-apxs2=/usr/sbin/apxs
make clean && make && make install
=================OUTPUT
Installing PEAR environment: /opt/php-5.4.11/lib/php/
[PEAR] Archive_Tar - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.3.0
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util - installed: 1.2.1
[PEAR] PEAR - installed: 1.9.4
Wrote PEAR system config file at: /opt/php-5.4.11/etc/pear.conf
You may want to add: /opt/php-5.4.11/lib/php to your php.ini include_path
/home/user/Source/php/php-5.4.11/build/shtool install -c ext/phar/phar.phar /opt/php-5.4.11/bin
ln -s -f /opt/php-5.4.11/bin/phar.phar /opt/php-5.4.11/bin/phar
Installing PDO headers: /opt/php-5.4.11/include/php/ext/pdo/
pecl install pecl_http
===========OUTPUT
downloading pecl_http-1.7.4.tar ...
Starting to download pecl_http-1.7.4.tar (Unknown size)
................................................................................................................done:
1,026,048 bytes
71 source files, building
WARNING: php_bin /opt/php-5.4.11/bin/php appears to have a suffix -5.4.11/bin/php, but config
variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
whether to enable cURL HTTP requests; specify libcurl directory [yes] : ^C
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64022&edit=1