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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC