LoginSignup
2
1

More than 5 years have passed since last update.

lumen にはzipエクステンションが必要

Posted at
$ lumen new site

The Zip PHP extension is not installed

phpにzipエクステンション入れてとな。
peclで取ってきます

sudo yum install php-pear --disablerepo=* --enablerepo=remi,remi-php70
エラー: パッケージ: php-xml-7.0.14-1.el7.remi.x86_64 (remi-php70)
             要求: libxslt.so.1(LIBXML2_1.0.18)(64bit)
エラー: パッケージ: php-xml-7.0.14-1.el7.remi.x86_64 (remi-php70)
             要求: libxslt.so.1(LIBXML2_1.0.24)(64bit)
エラー: パッケージ: php-xml-7.0.14-1.el7.remi.x86_64 (remi-php70)
             要求: libxslt.so.1(LIBXML2_1.0.22)(64bit)
エラー: パッケージ: php-xml-7.0.14-1.el7.remi.x86_64 (remi-php70)
             要求: libexslt.so.0()(64bit)
エラー: パッケージ: php-xml-7.0.14-1.el7.remi.x86_64 (remi-php70)
             要求: libxslt.so.1()(64bit)
エラー: パッケージ: php-xml-7.0.14-1.el7.remi.x86_64 (remi-php70)
             要求: libxslt.so.1(LIBXML2_1.0.13)(64bit)
エラー: パッケージ: php-xml-7.0.14-1.el7.remi.x86_64 (remi-php70)
             要求: libxslt.so.1(LIBXML2_1.0.11)(64bit)
問題を回避するために --skip-broken を用いることができます。

だめでした。。。
結局この方のブログを参考にしました。感謝です。
https://www.lancork.net/2016/05/yum-centos67-php7-install/

$ sudo yum -y update
$ sudo yum -y install yum-plugin-priorities
$ sudo rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
$ sudo yum --enablerepo=remi-php70 -y install php-pear
$ pecl install zip
$ sudo vim /etc/php.ini
php.ini
extension=zip.so
$ lumen new site

完了!
ちなみにzipエクステンション入れるとき、gccをインストールしてないといけませんでした。

downloading zip-1.13.5.tgz ...
Starting to download zip-1.13.5.tgz (316,993 bytes)
..........done: 316,993 bytes
119 source files, building
running: phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
building in /var/tmp/pear-build-rootA9WaYX/zip-1.13.5
running: /var/tmp/zip/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/var/tmp/pear-build-rootA9WaYX/zip-1.13.5':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: `/var/tmp/zip/configure --with-php-config=/usr/bin/php-config' failed
yum install -y gcc

再実行で無事に入りました。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1