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

╰+哭是因爲堅強的太久メ 2023-07-03 04:56 124阅读 0赞
  1. [wdh@izhp3flliiu1w www]$ composer create-project laravel/laravel --prefer-dist
  2. PHP Warning: Module 'zip' already loaded in Unknown on line 0
  3. Installing laravel/laravel (v5.0.22)
  4. - Installing laravel/laravel (v5.0.22): Loading from cache
  5. Created project in /www/wwwroot/default_online/www/laravel
  6. Loading composer repositories with package information
  7. Installing dependencies (including require-dev) from lock file
  8. Your requirements could not be resolved to an installable set of packages.
  9. Problem 1
  10. - Installation request for laravel/framework v5.0.16 -> satisfiable by laravel/framework[v5.0.16].
  11. - laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
  12. To enable extensions, verify that they are enabled in your .ini files:
  13. - /etc/php.ini
  14. - /etc/php.d/curl.ini
  15. - /etc/php.d/dom.ini
  16. - /etc/php.d/fileinfo.ini
  17. - /etc/php.d/gd.ini
  18. - /etc/php.d/intl.ini
  19. - /etc/php.d/json.ini
  20. - /etc/php.d/mbstring.ini
  21. - /etc/php.d/pdo.ini
  22. - /etc/php.d/pdo_sqlite.ini
  23. - /etc/php.d/phar.ini
  24. - /etc/php.d/posix.ini
  25. - /etc/php.d/sqlite3.ini
  26. - /etc/php.d/sysvmsg.ini
  27. - /etc/php.d/sysvsem.ini
  28. - /etc/php.d/sysvshm.ini
  29. - /etc/php.d/wddx.ini
  30. - /etc/php.d/xmlreader.ini
  31. - /etc/php.d/xmlwriter.ini
  32. - /etc/php.d/xsl.ini
  33. - /etc/php.d/zip.ini
  34. 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

  1. [https : // blog . csdn . net /gusijin/article/details/97260979][https _ _ blog . csdn . net _gusijin_article_details_97260979]

发表评论

表情:
评论列表 (有 0 条评论,124人围观)

还没有评论,来说两句吧...

相关阅读