icon-attention デザイン新しくしました。

icon-calendar 2019年4月29日

【英語アレルギー向け】Laravelインストール中にエラーが出たら

未分類

PHPのフレームワークLaravelはcomposerを使って簡単にインストールすることができます。

しかしCentOS7などでは以下の警告がでる場合があります。

As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Installing 'unzip' may remediate them.

英語を読めばすぐわかりますがunzipコマンド見つからんからインストールしてくれ
という警告ですのでインストールしてあげましょう。

sudo yum install -y unzip

また公式ではインストール後パスを通すとき~/.composer/vendor/binを通すように書かれていますが
phpenv、anyenvをつかっている場合~/.anyenv/envs/phpenv/versions/7.3.4/composer/vendor/bin
にあるので注意