php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66929 Incorrect install path with --prefix=...
Submitted: 2014-03-18 21:19 UTC Modified: 2018-08-06 11:14 UTC
Votes:10
Avg. Score:2.8 ± 1.1
Reproduced:2 of 4 (50.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: mot+php at tom dot be Assigned: petk (profile)
Status: Closed Package: *Compile Issues
PHP Version: 5.3.28 OS: Debian 7
Private report: No CVE-ID: None
 [2014-03-18 21:19 UTC] mot+php at tom dot be
Description:
------------
When compiling PHP 5.3.28 with --prefix specified, PHP is installed a different folders. The version of the resulting binaries do check out to be correct.

This was on a clean install Debian 7, so no prior PHP installs have been done.

Test script:
---------------
tar -xzf php-5.3.28.tar.gz
cd php-5.3.28
./configure --prefix=/jail/usr/local/php-5.3.28 --with-freetype-dir=/usr/lib --with-mysql --with-mysqli --with-mssql --enable-exif --enable-soap --with-mcrypt --with-mhash --with-curl --enable-mbstring --with-gettext --with-zlib --enable-ftp --with-openssl --with-xsl --with-pgsql --enable-calendar --enable-bcmath --with-bz2 --with-imap --with-imap-ssl --with-pdo-mysql --with-jpeg-dir --with-png-dir --with-gd --enable-zip --with-xmlrpc --enable-sockets --enable-intl --with-gmp
make
make install


Expected result:
----------------
# ls /jail/usr/local/
php-5.3.28

# /jail/usr/local/php-5.3.28/bin/php --version
PHP 5.3.28 (cli) (built: Mar 18 2014 08:09:33)



Actual result:
--------------
# ls /jail/usr/local/
php-5.3.27    php-5.3.4.26-with-mysql

# /jail/usr/local/php-5.3.27/bin/php --version
PHP 5.3.28 (cli) (built: Mar 18 2014 08:09:33)


# ls /jail/usr/local/php-5.3.4.26-with-mysql/
etc
# ls /jail/usr/local/php-5.3.4.26-with-mysql/etc
pear.conf



Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-06 11:14 UTC] petk@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: petk
 [2018-08-06 11:14 UTC] petk@php.net
Hello, sorry for a late reply here. I've analyzed and checked this one on the same system (Debian 7 and newer) and with PHP-5.3.28 and up. I can't seem to reproduce this issue anymore.

The --prefix configure option works as advertised in PHP and Autoconf. PHP has also INSTALL_ROOT when doing:
make install INSTALL_ROOT=/custom/package/path
which can install package in that location - useful for packaging and similar.

See also this answer for more information about --prefix and INSTALL_ROOT variable.

In case this gets repeated on some newer PHP version, just reopen this one, open a new bug or provide more info.

Thank you for reporting.
 [2018-08-06 11:15 UTC] petk@php.net
P.S: answer for moree info how these works:
https://stackoverflow.com/questions/11307465/destdir-and-prefix-of-make
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC