CentOS6.8を使用しております。
すでにinstall済みのphpに、zip extensionを追加しようと思っております。
以下の2つの方法を試しましたが、同じエラーでうまく行きません。
1. peclを使用してinstall
bash
1$ sudo pecl install zip 2 3...(略) 4 5configure: error: Please reinstall the libzip distribution 6 7ERROR: `/var/tmp/zip/configure --with-php-config=/usr/bin/php-config' failed 8configure: error: Please reinstall the libzip distribution
2. wgetで直接ダウンロードする
bash
1wget http://pecl.php.net/get/zip-1.15.1.tgz 2 3sudo tar xzvf zip-1.15.1. 4 5cd zip-1.15.1 6 7sudo phpize 8 9sudo ./configure --enable-zip 10 11 12checking for libzip... not found 13configure: error: Please reinstall the libzip distribution 14
こちら、同じエラーが出ております。
このエラーに対応するため、以下を行いましたが、
$ sudo yum install libzip Package libzip-0.9-3.1.el6.x86_64 already installed and latest version Nothing to do
libzipは入りませんでした。
こちら、解決のヒントを頂ければありがたく思います。

回答2件
あなたの回答
tips
プレビュー