I
I
Igor Ivanov2020-08-17 23:03:42
PHP
Igor Ivanov, 2020-08-17 23:03:42

Can't install zip module: "PHP Startup: Unable to load dynamic library 'zip.so'"?

CentOS 7 has a fresh version of PHP. I want to include the zip module. Compiled from source code, tk. again, fresh was required (there was such a problem:

checking for libzip... configure: error: system libzip must be upgraded to version >= 0.11
). Next pecl install zip, it's installed. But after adding to the file "zip.ini": extension=zip.soand restarting, the output php -mdid not contain the coveted zip module. php -voutputs the following warning in addition to the version:

PHP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/lib64/php/modules/zip.so (libzip.so.5: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/zip.so.so (/usr/lib64/php/modules/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
.

The path is: "/usr/lib64/php/modules/zip.so". Rights: 755. In theory, the library should be available. The most interesting thing is that all these actions were carried out on the dev server with identical settings, and everything was installed there.

I would like to know your opinion. What could be the reason, how to fix it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Igor Ivanov, 2020-08-18
@PlugIN

The casket opened easily. Needed this sudo yum install libzip5:

T
toxa82, 2020-08-18
@toxa82

Specify extension name without .so

D
Dmitry, 2020-08-17
@q2digger

where is php installed in the system? from a regular repo?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question