在终端中安装 octobercms 项目时出现此错误:您的要求无法解析为可安装的软件包集
Posted
技术标签:
【中文标题】在终端中安装 octobercms 项目时出现此错误:您的要求无法解析为可安装的软件包集【英文标题】:When installing octobercms project in terminal I get this error: Your requirements could not be resolved to an installable set of packages 【发布时间】:2016-03-13 22:33:12 【问题描述】:我正在尝试在终端中安装 octobercms。该文档非常简单易懂,但是当我尝试通过键入以下内容创建项目时:
composer create-project october/october myoctober dev-master
我收到此错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v5.0.9 requires ext-mcrypt * -> the requested php extension mcrypt is missing from your system.
- laravel/framework v5.0.8 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.7 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.6 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.34 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.33 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.32 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.31 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.3 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.29 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.28 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.27 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.26 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.25 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.24 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.23 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.22 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.21 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.20 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.2 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.19 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.18 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.17 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.15 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.14 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.13 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.12 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.11 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.10 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.1 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.0 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework 5.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework 5.0.30 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- Installation request for laravel/framework 5.0.* -> satisfiable by laravel/framework[5.0.30, 5.0.x-dev, v5.0.0, v5.0.1, v5.0.10, v5.0.11, v5.0.12, v5.0.13, v5.0.14, v5.0.15, v5.0.16, v5.0.17, v5.0.18, v5.0.19, v5.0.2, v5.0.20, v5.0.21, v5.0.22, v5.0.23, v5.0.24, v5.0.25, v5.0.26, v5.0.27, v5.0.28, v5.0.29, v5.0.3, v5.0.31, v5.0.32, v5.0.33, v5.0.34, v5.0.4, v5.0.5, v5.0.6, v5.0.7, v5.0.8, v5.0.9].
它仍然会创建文件夹,但我不知道如何解决这个问题。十月似乎没有其他人遇到这个问题。任何帮助将不胜感激!
"name": "october/october",
"description": "October CMS",
"homepage": "http://octobercms.com",
"keywords": ["october", "cms", "octobercms", "laravel"],
"license": "MIT",
"authors": [
"name": "Alexey Bobkov",
"email": "aleksey.bobkov@gmail.com",
"role": "Co-founder"
,
"name": "Samuel Georges",
"email": "daftspunky@gmail.com",
"role": "Co-founder"
],
"support":
"issues": "https://github.com/octobercms/october/issues",
"forum": "http://octobercms.com/forum/",
"docs": "http://octobercms.com/docs/",
"irc": "irc://irc.freenode.net/october",
"source": "https://github.com/octobercms/october"
,
"require":
"php": ">=5.4",
"october/rain": "~1.0",
"october/system": "~1.0",
"october/backend": "~1.0",
"october/cms": "~1.0",
"laravel/framework": "5.0.*",
"illuminate/html": "5.0.*"
,
"require-dev":
"phpunit/phpunit": "~4.0",
"phpunit/phpunit-selenium": ">=1.2"
,
"autoload-dev":
"classmap": [
"tests/TestCase.php",
"tests/UiTestCase.php",
"tests/PluginTestCase.php"
]
,
"scripts":
"post-create-project-cmd": [
"php artisan key:generate"
]
,
"config":
"preferred-install": "dist"
,
"minimum-stability": "dev",
"prefer-stable": true
【问题讨论】:
我理解你的问题,但如果你能读懂错误,请求的 PHP 扩展 mcrypt 从你的系统中丢失了。 说了这么多。请阅读错误,然后找到解决方案。 【参考方案1】:您应该为 PHP 安装 mcrypt
扩展。
对于基于 Debian 的系统:
sudo apt-get install php5-mcrypt
对于 Mac OS X:
brew install mcrypt php56-mcrypt
【讨论】:
由于 OP 没有指定操作系统,您应该指定此解决方案适用于基于 Debian 的系统,例如 Ubuntu。 我在 Mac 上。我的终端似乎无法识别命令 apt-get @derg 如果你安装了brew
,那么你可以在 OS X 上运行brew install mcrypt php56-mcrypt
。
@Bogdan 感谢您的澄清,我已经更新了我的答案。
它正在工作! @bogdan。你太棒了!!!!我已经发送了这么长时间试图弄清楚这一点!谢谢!!以上是关于在终端中安装 octobercms 项目时出现此错误:您的要求无法解析为可安装的软件包集的主要内容,如果未能解决你的问题,请参考以下文章
如何在我自己的应用程序中安装 EGOPhotoViewer?
在开发人员计算机上的证书存储中安装 VeriSign 证书时出现问题