Bug #60163 [Com]: --with-pear=PATH; PATH has no effect
| From: | peterkokot at gmail dot com | Date: | Wed, 13 Jun 2018 00:19:03 +0000 |
| Subject: | Bug #60163 [Com]: --with-pear=PATH; PATH has no effect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215670@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60163&edit=1
ID: 60163
Comment by: peterkokot at gmail dot com
Reported by: hey at lukecarrier dot me
Summary: --with-pear=PATH; PATH has no effect
Status: Open
Type: Bug
Package: *Compile Issues
Operating System: GNU/Linux; Fedora 15
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
Hello, I've tested this with the current Fedora 28 and the PHP 7.2.6 and upcoming PHP 7.3.
I've removed the --with-srcdir option and add the --with-openssl.
For the PHP 7.2, the adjusted configure options that should work ok are:
./configure --host=x86_64-unknown-linux-gnu \
--build=x86_64-unknown-linux-gnu \
--program-prefix= \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib64 \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--cache-file=../config.cache \
--with-config-file-path=/etc/php.ini \
--with-config-file-scan-dir=/etc/php.ini.d \
--with-pear=/var/lib/php/pear \
--with-openssl
Probably this particular bug got fixed somewhere with the migration to the newer build system and
newer auto tools (configure.ac instead of configure.in).
However, there is now some other bug with the latest PHP 7.3 version which will be reported in a
separate bug report. When enabling the phar extension the pear installation fails with some errors.
Previous Comments:
------------------------------------------------------------------------
[2011-10-28 19:41:30] hey at lukecarrier dot me
Description:
------------
When trying to compile PHP 5.3.8 from source on Fedora 15, specifying the target directory for PEAR
seems to have no effect; the value is ignored and the default is used instead.
Test script:
---------------
./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --program-prefix=
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
--srcdir=.. --cache-file=../config.cache --with-config-file-path=/etc/php.ini
--with-config-file-scan-dir=/etc/php.ini.d --with-pear=/var/lib/php/pear
Expected result:
----------------
PEAR's PHP files to be installed to /var/lib/php/pear
Actual result:
--------------
PEAR's PHP files installed to /usr/lib64/php/pear
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60163&edit=1