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

發佈了73 篇原創文章 · 獲贊 15 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章