Showing results for no package libzip found
Search instead for no package libcap found

Solved it:

Copyapt-get install libzip-dev

will install the missing libzip-distribution

Answer from Tobias Gassmann on Stack Overflow
🌐
PHP
php.net › manual › en › zip.installation.php
PHP: Installation - Manual
yes checking for libzip >= 0.11... no configure: error: Package requirements (libzip >= 0.11) were not met: No package 'libzip' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Discussions

docker-init command fails with error checking for libzip... not found
I'm getting this error from docker-init on windows 10 with node 10.11.0 and docker 2.0.0 checking for libzip... not found configure: error: Please reinstall the libzip distribution This was fix... More on github.com
🌐 github.com
4
December 17, 2018
php 8.1.24 to 8.1.25 error | DirectAdmin Forums
"When I try to update from php 8.1.24 to 8.1.25 with CustomBuild, I get the following error message." configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met: No package 'libzip' found No package 'libzip' found No package 'libzip' found Consider... More on forum.directadmin.com
🌐 forum.directadmin.com
November 30, 2023
Libzip is missing
Hi, I noticed a strange behaviour with the compose:1.8 image I tried to build it on my computer and i got the error : "configure: error: Please reinstall the libzip distribution" I don... More on github.com
🌐 github.com
2
December 12, 2018
docker - Installing PHP-zip on a php:7.4-fpm image - Stack Overflow
ERROR: Service 'webapi' failed ... a non-zero code: 1 · I assume either libzip4 isn't a valid version or it can't make the link between libzip and libzip4. The main issue is that, without that library, i'm stuck and can't install the extension at all. Also i'm quiet a rookie when it comes to docker so i call out your help ! Thanks for your time ! ... Ok, so the issue is that you have to guess that the package you need to ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
DirectAdmin
forum.directadmin.com › home › forums › technical discussion › installation / system requirements
SOLVED Centos 7: Error build PHP 7.4 & 8.1 | DirectAdmin Forums
August 17, 2022 - no checking for zip archive read/write ... met: Requested 'libzip >= 0.11' but version of libzip is 0.10.1 Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix....
🌐
Cpming
blog.cpming.top › p › package-requirements-libzip-0-11-were-not-met
PHP configure: error: Package requirements (libzip >= 0.11) were not met - cpming
May 28, 2020 - checking for libzip >= 0.11... no configure: error: Package requirements (libzip >= 0.11) were not met: No package 'libzip' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables ...
🌐
GitHub
github.com › agentejo › cockpit › issues › 958
docker-init command fails with error checking for libzip... not found · Issue #958 · agentejo/cockpit
December 17, 2018 - I'm getting this error from docker-init on windows 10 with node 10.11.0 and docker 2.0.0 checking for libzip... not found configure: error: Please reinstall the libzip distribution This was fixed by adding this line to the Dockerfile: li...
Author   agentejo
🌐
DirectAdmin
forum.directadmin.com › home › forums › technical discussion › general technical discussion & troubleshooting
php 8.1.24 to 8.1.25 error | DirectAdmin Forums
November 30, 2023 - "When I try to update from php ... found No package 'libzip' found No package 'libzip' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix....
🌐
GitHub
github.com › composer › docker › issues › 69
Libzip is missing · Issue #69 · composer/docker
December 12, 2018 - I managed to fix this by adding libzip-dev at the end of the line 8 ... No fields configured for issues without a type.
Author   composer
Top answer
1 of 3
7

To install libzip4, you have to add the Ubuntu repositories to your apt source list. This can be done by

sudo apt-add-repository main
sudo apt-add-repository restricted
sudo apt-add-repository universe
sudo apt-add-repository multiverse

Here you find some examples.

2 of 3
2

@ravery's answer got me half way there:

The problem though wasn't a conflict so much but simply that the 32 bit package won't satisfy the dependency requirement for 64 bit installation (even though you can install 32 versions of software in general with 32 bit dependencies) at least in this case (or in general - I have no idea).

Unfortunately, the 64 bit version either doesn't have an installation candidate, or has some other package name I don't know and can't find online.

sudo apt-get install libzip4  

Reading package lists... Done Building dependency tree
Reading state information... Done Package libzip4 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'libzip4' has no installation candidate


I can't seem to find a ppa for the 64 bit package either...

If you follow @ravery advice and do:

sudo apt-get purge libzip4

You get:

Reading package lists... Done Building dependency tree
Reading state information... Done The following packages will be REMOVED: libzip4:i386* 0 upgraded, 0 newly installed, 1 to remove and 20 not upgraded. After this operation, 121 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 311771 files and directories currently installed.) Removing libzip4:i386 (1.0.1-0ubuntu1) ... Purging configuration files for libzip4:i386 (1.0.1-0ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu9) ...

So the 32 bit version is now removed

Then:

Go to pkgs.org: https://ubuntu.pkgs.org/16.04/ubuntu-universe-amd64/libzip4_1.0.1-0ubuntu1_amd64.deb.html

Here you can download and manually install the 64 bit .deb package that apt-get either doesn't have or can't locate by name...

Finally Just run:

sudo apt-get install php-zip

The dependency issue is resolved and the plugin installs normally!

Find elsewhere
🌐
GitHub
github.com › ctabin › libzippp › issues › 97
Could NOT find LIBZIP (missing: _libzip_pkgcfg) · Issue #97 · ctabin/libzippp
June 2, 2021 - +++ CMakeLists.txt @@ -17,7 +17,7 @@ option(LIBZIPPP_ENABLE_ENCRYPTION "Build with encrypti list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") -find_package(LIBZIP MODULE REQUIRED) +find_package(libzip REQUIRED) add_library(libzippp "src/libzippp.cpp") add_library(libzippp::libzippp ALIAS libzippp) # Convenience alias @@ -87,10 +87,10 @@ if(LIBZIPPP_INSTALL) COMPATIBILITY SameMajorVersion ) - install( - FILES ${PROJECT_CONFIG_FILE} ${PROJECT_VERSION_FILE} cmake/FindLIBZIP.cmake - DESTINATION ${configInstallDestination} - ) + #install( + # FILES ${PROJECT_CONFIG_FILE} ${PROJECT_VERSION_FILE} cmake/FindLIBZIP.cmake + # DESTINATION ${configInstallDestination} + #) install( EXPORT libzipppTargets
Author   ctabin
🌐
GitHub
github.com › openscad › openscad › issues › 1870
dependency missing in documentation/scripts libzip-dev · Issue #1870 · openscad/openscad
November 23, 2016 - qmake openscad.pro Project MESSAGE: If you're building a development binary, consider adding CONFIG+=experimental Project MESSAGE: Using QOpenGLWidget Project MESSAGE: Using C++11 Package libzip was not found in the pkg-config search path. Perhaps you should add the directory containing libzip.pc' to the PKG_CONFIG_PATH environment variable No package 'libzip' found Package libzip was not found in the pkg-config search path.
Author   openscad
🌐
Red Hat
access.redhat.com › solutions › 7050700
libzip-tools package not present in RHEL 9 - Red Hat Customer Portal
August 27, 2024 - No translations currently exist. libzip-tools package is not present over RHEL 9 , this exclusion is also not documented in "Considerations in Adopting RHEL 9 and Key differences" Documentation.
Top answer
1 of 1
5

I have managed to compile PECL zip (partly due to snow in the UK cancelling my booked day!). I have not tested this in php, but it loads correctly into phpinfo();

Option 1: Update Libzip & Hope for the best

I used an external CentOS-7 repo (which amzn linux 2 is supposed to be pretty compatible with) and the following script:

#PECL requires libzip 11 - get it from a foreign repo
sudo rpm --import http://wiki.psychotic.ninja/RPM-GPG-KEY-psychotic
#this looks wrong but the repo uses a single release
sudo rpm -ivh http://packages.psychotic.ninja/6/base/i386/RPMS/psychotic-release-1.0.0-1.el6.psychotic.noarch.rpm

#YUM REPO HACKS START
#unfortunately amazon-linux-2 release numbering breaks it - force RHEL 7 numbering
sudo sed -i s/\$releasever/7/g /etc/yum.repos.d/psychotic.repo
#Need to exclude outdated amzn zip packages
sudo yum remove libzip libzip-devel
#check for an exclude line, add our one if not present (to the main repo)
grep -A 100 -m1 "\[amzn2-core" /etc/yum.repos.d/amzn2-core.repo | grep exclude= || sudo sed -i -E "s/($(grep -A 100 -m1 "\[amzn2-core" /etc/yum.repos.d/amzn2-core.repo | grep -m1 ^name=)$)/\1\nexclude=libzip libzip-devel/" /etc/yum.repos.d/amzn2-core.repo
#check this worked, if not modify the existing exclude line(s)
grep -A 100 -m1 "\[amzn2-core" /etc/yum.repos.d/amzn2-core.repo | grep "exclude=.*libzip" || sudo sed -i -E "s/exclude=/exclude=libzip libzip-devel /" /etc/yum.repos.d/amzn2-core.repo
#YUM REPO HACKS END

sudo yum install --enablerepo=psychotic-plus gcc libzip libzip-devel
#now install PECL
wget http://pear.php.net/go-pear.phar
sudo php go-pear.phar
#patch it to cope with the XML being a module
sudo sed -i "$ s|\-n||g" /usr/bin/pecl
#and this should now work
sudo pecl install zip
#may still need to manually add to the php.ini
grep "^extension=zip.so" /etc/php.ini || echo "extension=zip.so" | sudo tee -a /etc/php.ini

Be VERY careful with the bit of this script marked 'YUM REPO HACKS' - it intentionally includes commands to modify your repo configuration which have had minimal testing. All it is actually doing is replacing the '$releasever' variable in the pyschotic repo with '7' and adding 'exclude=libzip libzip-devel' to the amzn2-core repo. You could do this with vim!

Option 2: 2 versions of libzip

From my research: if you are not comfortable with a 'found-by-google' repo on your server (I don't blame you, depends on use case) then you could leave the amzn zip in place, use their source repo to install libzip 11.2 source, install that (and/or its libraries) to an alternate location (find the instructions elsewhere for that) and compile the php module manually.

To compile zip manually:

$ pecl download zip
$ tar -xf zip-*.tgz && cd zip-* && phpize
$ ./configure --with-libzip=/path/to/secondary/libzip

...etc

🌐
GitHub
github.com › actions › virtual-environments › issues › 1084
libzip package issues on Ubuntu 20.04 · Issue #1084 · actions/runner-images
June 19, 2020 - Describe the bug In Ubuntu 18.04, libzip is provided by libzip4. However, Ubuntu 20.04 provides libzip through libzip5 instead (I have no idea why this decision was made, esp. given that Debian is still using libzip4 as the package name)...
Author   actions
🌐
GitHub
github.com › roottusk › vapi › issues › 53
E: Unable to locate package libzip-dev · Issue #53 · roottusk/vapi
August 17, 2023 - The command '/bin/sh -c apt-get update && apt-get install -y libzip-dev && apt-get install -y zlib1g-dev && rm -rf /var/lib/apt/lists/* && docker-php-ext-install zip' returned a non-zero code: 100 ...
Author   roottusk
🌐
GitHub
github.com › microsoft › vcpkg › issues › 12600
[libzip] find_package doesn't work as well as setting libzip_DIR · Issue #12600 · microsoft/vcpkg
July 27, 2020 - Please describe. find_package(libzip ... libzip-config.cmake Add the installation prefix of "libzip" to CMAKE_PREFIX_PATH or set "libzip_DIR" to a directory containing one of the above files....
Author   microsoft