Composer install 报错: Your requirements could not be resolved to an installable set of packages

给你一囗甜甜゛ 提交于 2020-02-03 02:35:06
[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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!