2015-12-08 56 views
0

我試圖在終端中安裝octobercms。該文檔是非常簡單的,易於遵循,但是當我試圖通過鍵入創建項目:在終端中安裝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]. 

它仍使文件夾,但我不知道如何解決這個問題似乎沒有其他人在10月份遇到這個問題。任何幫助,將不勝感激!

{ 
     "name": "october/october", 
     "description": "October CMS", 
     "homepage": "http://octobercms.com", 
     "keywords": ["october", "cms", "octobercms", "laravel"], 
     "license": "MIT", 
     "authors": [ 
      { 
       "name": "Alexey Bobkov", 
       "email": "[email protected]", 
       "role": "Co-founder" 
      }, 
      { 
       "name": "Samuel Georges", 
       "email": "[email protected]", 
       "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 
    } 
+0

我明白你的問題,但如果你可以讀取錯誤,_The要求PHP擴展mcrypt的是從您的系統中缺少._說全部。請閱讀錯誤,然後找到解決方案。 –

回答

2

您應該爲PHP安裝mcrypt擴展名。

對於基於Debian的系統:

sudo apt-get install php5-mcrypt 

對於Mac OS X:

brew install mcrypt php56-mcrypt 
+0

由於OP沒有指定操作系統,因此您應該指定此解決方案適用於基於Debian的系統,如Ubuntu。 – Bogdan

+0

我在Mac上。我的終端似乎沒有認出命令apt-get – derg

+0

@derg如果你已經安裝了'brew',那麼你可以在OS X上運行'brew install mcrypt php56-mcrypt'。 – Bogdan

相關問題