Composer install 报错: Your requirements could not be resolved to an installable set of packages
[wdh@izhp3flliiu1w www]$ composer create-project laravel/laravel --prefer-dist
PHP Warning: Module 'zip' already loaded in Unknown on line 0
Installing laravel/laravel (v5.0.22)
- Installing laravel/laravel (v5.0.22): Loading from cache
Created project in /www/wwwroot/default_online/www/laravel
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 laravel/framework v5.0.16 -> satisfiable by laravel/framework[v5.0.16].
- laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php.ini
- /etc/php.d/curl.ini
- /etc/php.d/dom.ini
- /etc/php.d/fileinfo.ini
- /etc/php.d/gd.ini
- /etc/php.d/intl.ini
- /etc/php.d/json.ini
- /etc/php.d/mbstring.ini
- /etc/php.d/pdo.ini
- /etc/php.d/pdo_sqlite.ini
- /etc/php.d/phar.ini
- /etc/php.d/posix.ini
- /etc/php.d/sqlite3.ini
- /etc/php.d/sysvmsg.ini
- /etc/php.d/sysvsem.ini
- /etc/php.d/sysvshm.ini
- /etc/php.d/wddx.ini
- /etc/php.d/xmlreader.ini
- /etc/php.d/xmlwriter.ini
- /etc/php.d/xsl.ini
- /etc/php.d/zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
报错原因:centos 中 php缺少 mcrypt扩展
安装步骤请参照:https : // www . cnblogs . com /shijiaoyun/p/4874697.html
[https : // blog . csdn . net /gusijin/article/details/97260979][https _ _ blog . csdn . net _gusijin_article_details_97260979]
还没有评论,来说两句吧...