1

I'm trying to install php zip module on my new Macbook M1, by using:

pecl install zip

After a while i'm getting this error:

configure: error: Please reinstall the libzip distribution
ERROR: `/private/tmp/pear/temp/zip/configure --with-php-config=/Applications/MAMP/bin/php/php7.4.15/bin/php-config' failed

So i run:

brew install libzip

And i get:

Warning: libzip 1.7.3 is already installed and up-to-date.

At this point i'm stucked. Any idea?

Thank you

35
  • Does this answer your question? configure: error: Please reinstall the libzip distribution Jun 17, 2021 at 13:57
  • None of them are available with brew for osx Jun 17, 2021 at 13:59
  • First run this xcode-select --install and then try to install libzip developer package Jun 17, 2021 at 14:01
  • Even after that it's not getting installed you'll need to build it from source. Reference to install developer packages: stackoverflow.com/questions/23749530/… Jun 17, 2021 at 14:03
  • xcode-select: error: command line tools are already installed, use "Software Update" to install updates I tried to build libzip from source also, but after launching ./configure i still get: checking for libzip... not found.. configure: error: Please reinstall the libzip distribution Jun 17, 2021 at 14:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.