EC2上でPHP 7.1.23でLaravelを使っています。
composer updateをしたいのですが、yum install libwebpをしたところで止まってしまっています。
解決策教えてください。
[ec2-user]$ composer update Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for simplesoftwareio/simple-qrcode 2.0.0 -> satisfiable by simplesoftwareio/simple-qrcode[2.0.0]. - simplesoftwareio/simple-qrcode 2.0.0 requires ext-gd * -> the requested PHP extension gd is missing from your system. To enable extensions, verify that they are enabled in your .ini files: - /etc/php.ini - /etc/php-7.1.d/20-bz2.ini - /etc/php-7.1.d/20-calendar.ini - /etc/php-7.1.d/20-ctype.ini - /etc/php-7.1.d/20-curl.ini - /etc/php-7.1.d/20-dom.ini - /etc/php-7.1.d/20-exif.ini - /etc/php-7.1.d/20-fileinfo.ini - /etc/php-7.1.d/20-ftp.ini - /etc/php-7.1.d/20-gettext.ini - /etc/php-7.1.d/20-iconv.ini - /etc/php-7.1.d/20-json.ini - /etc/php-7.1.d/20-mbstring.ini - /etc/php-7.1.d/20-mcrypt.ini - /etc/php-7.1.d/20-mysqlnd.ini - /etc/php-7.1.d/20-pdo.ini - /etc/php-7.1.d/20-phar.ini - /etc/php-7.1.d/20-posix.ini - /etc/php-7.1.d/20-shmop.ini - /etc/php-7.1.d/20-simplexml.ini - /etc/php-7.1.d/20-sockets.ini - /etc/php-7.1.d/20-sqlite3.ini - /etc/php-7.1.d/20-sysvmsg.ini - /etc/php-7.1.d/20-sysvsem.ini - /etc/php-7.1.d/20-sysvshm.ini - /etc/php-7.1.d/20-tokenizer.ini - /etc/php-7.1.d/20-xml.ini - /etc/php-7.1.d/20-xmlwriter.ini - /etc/php-7.1.d/20-xsl.ini - /etc/php-7.1.d/20-zip.ini - /etc/php-7.1.d/30-mysqli.ini - /etc/php-7.1.d/30-pdo_mysql.ini - /etc/php-7.1.d/30-pdo_sqlite.ini - /etc/php-7.1.d/30-wddx.ini - /etc/php-7.1.d/30-xmlreader.ini - /etc/php-7.1.d/php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
調べてみると、php-curlとphp-gdが必要とのことなので、
[ec2-user]$ sudo yum --enablerepo=remi-php71 --disablerepo=amzn-main install php71-curl php71-gd oaded plugins: priorities, update-motd, upgrade-helper 8 packages excluded due to repository priority protections Package php71-common-7.1.23-1.34.amzn1.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package php71-gd.x86_64 0:7.1.23-1.34.amzn1 will be installed --> Processing Dependency: libwebp.so.4()(64bit) for package: php71-gd-7.1.23-1.34.amzn1.x86_64 --> Finished Dependency Resolution Error: Package: php71-gd-7.1.23-1.34.amzn1.x86_64 (amzn-updates) Requires: libwebp.so.4()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
libwebpが必要なので
[ec2-user]$ sudo yum install libwebp Loaded plugins: priorities, update-motd, upgrade-helper amzn-main | 2.1 kB 00:00:00 amzn-updates | 2.5 kB 00:00:00 30 packages excluded due to repository priority protections Package matching libwebp-0.3.0-3.5.amzn1.x86_64 already installed. Checking for update. Nothing to do
こちらも試しました。
sudo yum --enablerepo=remi-php71 --disablerepo=amzn-main install libwebp oaded plugins: priorities, update-motd, upgrade-helper amzn-updates | 2.5 kB 00:00:00 8 packages excluded due to repository priority protections Nothing to do
ここからどうしていいかわからなくなっています。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。