Bug #66929 [Opn->Csd]: Incorrect install path with --prefix=...
| From: | petk@php.net | Date: | Mon, 06 Aug 2018 11:14:03 +0000 |
| Subject: | Bug #66929 [Opn->Csd]: Incorrect install path with --prefix=... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216634@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66929&edit=1
ID: 66929
Updated by: petk@php.net
Reported by: mot+php at tom dot be
Summary: Incorrect install path with --prefix=...
-Status: Open
+Status: Closed
Type: Bug
Package: *Compile Issues
Operating System: Debian 7
PHP Version: 5.3.28
-Assigned To:
+Assigned To: petk
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2014-03-18 21:19:45] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66929&edit=1