Edit report at https://bugs.php.net/bug.php?id=76483&edit=1
ID: 76483
Comment by: npelov at croler dot net
Reported by: pa at yourserveradmin dot com
Summary: PHP 7.3.0alpha1 cannot be compiled with system
liblzip
Status: Not a bug
Type: Bug
Package: Zip Related
Operating System: CentOS
PHP Version: 7.3.0alpha1
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Steps to install libzip on CentOS 6 (should be the same for 7):
0. if you've installed libzip-devel - remove it: yum erase libzip-devel
1. download and extract libzip from libzip.org
2. install cmake3 from epel (google how to install epel on centos)
3. in libzip dir: mkdir build && cd build && cmake3
-DCMAKE_INSTALL_PREFIX=/usr/local/libzip .. && make install
4. in order for php to use libzip it must be added to pkgconfig - cd /usr/lib/pkgconfig &&
ln -s /usr/local/libzip/lib/pkgconfig/libzip.pc
5. I passed option: --enable-zip=/usr/local/libzip to configure, but maybe --enable-zip is enough
because it uses pkgconfig to locate libraries. Try eigher.
Previous Comments:
------------------------------------------------------------------------
[2019-06-15 08:21:44] jfcherng at gmail dot com
@forwork.jan
I install libzip on /usr/local. I could build it with executing the following command before
building.
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:${PKG_CONFIG_PATH}"
------------------------------------------------------------------------
[2019-05-10 04:14:13] forwork dot jan at gmail dot com
I have the same question
I have compile libzip-1.5.2 by cmake
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libzip ..
&& make install
echo "/usr/local/libzip/lib64" >> /etc/ld.so.conf && ldconfig
But in compile still fail
checking libzip... yes
checking for the location of zlib... /usr
checking for pkg-config... (cached) /bin/pkg-config
checking for libzip... not found
configure: error: Please reinstall the libzip distribution
------------------------------------------------------------------------
[2019-03-20 07:59:06] cmb@php.net
If you use --without-libzip, the deprecation notice is to be
expected, since this option will be removed in the future (PHP 7.4
or 8).
If you use --with-libzip, the installed libzip has to be ⥠0.11.
If it is not, consider to update.
------------------------------------------------------------------------
[2019-03-20 06:47:10] pa at yourserveradmin dot com
To make the question cleat: prior to the 7.3.3 patch release builds successfully passed using the
previously suggested combination of configuration flags.
So, in case this is just a configuration flags question, possible I'll be able to provide you
with guarantee working set of flags.
------------------------------------------------------------------------
[2019-03-20 06:44:19] pa at yourserveradmin dot com
> compiling 7.3.3 on the same machine
Have you tried to compile PHP 7.3.2 to see if your issue is caused by the latest patch version
changes?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=76483
--
Edit this bug report at https://bugs.php.net/bug.php?id=76483&edit=1