Composerを使ってLaravelをインストールしようとしたところ以下のエラーが発生しました。
[vagrant@localhost ~]$ composer global require laravel/installer Changed current directory to /home/vagrant/.config/composer Using version ^3.0 for laravel/installer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/installer v3.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system. - laravel/installer v3.0.0 requires ext-zip * -> the requested PHP extension zip is missing from your system. - Installation request for laravel/installer ^3.0 -> satisfiable by laravel/installer[v3.0.0, v3.0.1]. To enable extensions, verify that they are enabled in your .ini files: - /etc/opt/remi/php72/php.ini - /etc/opt/remi/php72/php.d/20-bz2.ini - /etc/opt/remi/php72/php.d/20-calendar.ini - /etc/opt/remi/php72/php.d/20-ctype.ini - /etc/opt/remi/php72/php.d/20-curl.ini - /etc/opt/remi/php72/php.d/20-exif.ini - /etc/opt/remi/php72/php.d/20-fileinfo.ini - /etc/opt/remi/php72/php.d/20-ftp.ini - /etc/opt/remi/php72/php.d/20-gettext.ini - /etc/opt/remi/php72/php.d/20-iconv.ini - /etc/opt/remi/php72/php.d/20-json.ini - /etc/opt/remi/php72/php.d/20-phar.ini - /etc/opt/remi/php72/php.d/20-sockets.ini - /etc/opt/remi/php72/php.d/20-tokenizer.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. Installation failed, deleting ./composer.json.
zipが無いようなので、下記サイトを参考にコマンドを打つも変わりなし、、、
https://qiita.com/don-bu-rakko/items/e0006a59d3714cecfbde
[vagrant@localhost ~]$ sudo yum install --enablerepo=remi,remi-php72 php-pecl-zip Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * epel: fedora.cs.nctu.edu.tw * extras: ftp-srv2.kddilabs.jp * remi: mirror.innosol.asia * remi-php72: mirror.innosol.asia * remi-safe: mirror.innosol.asia * updates: ftp-srv2.kddilabs.jp Package php-pecl-zip-1.16.0-1.el7.remi.7.2.x86_64 already installed and latest version Nothing to do
https://qiita.com/sawadashota/items/8d5b58658bf6ba6809f5
[vagrant@localhost ~]$ sudo yum -y install php-zip Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * epel: fedora.cs.nctu.edu.tw * extras: ftp-srv2.kddilabs.jp * remi-safe: mirrors.mediatemple.net * updates: ftp-srv2.kddilabs.jp Package matching php-common-5.4.16-46.1.el7_7.x86_64 already installed. Checking for update. Nothing to do
[vagrant@localhost ~]$ php --ri zip Extension 'zip' not present.
どのようにすればzipがインストールできるでしょうか(Laravelがインストールできるでしょうか。)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/29 02:17
2020/01/29 03:44 編集