php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60163 --with-pear=PATH; PATH has no effect
Submitted: 2011-10-28 19:41 UTC Modified: 2018-06-13 00:21 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: hey at lukecarrier dot me Assigned: requinix (profile)
Status: Closed Package: *Compile Issues
PHP Version: 5.3.8 OS: GNU/Linux; Fedora 15
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hey at lukecarrier dot me
New email:
PHP Version: OS:

 

 [2011-10-28 19:41 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-13 00:19 UTC] peterkokot at gmail dot com
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.
 [2018-06-13 00:21 UTC] requinix@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: requinix
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 09:01:27 2025 UTC