2016-01-12 35 views
1

我試圖運行this項目,但得到遵循錯誤運行composer install作爲開發商說您的需求無法解析爲可安裝的一組軟件包。用於運行應用程序

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.4 -> satisfiable by laravel/framework[v5.0.4]. 
    - laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system. 
    Problem 2 
    - laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system. 
    - laracasts/flash 1.3.3 requires illuminate/support ~5.0 -> satisfiable by laravel/framework[v5.0.4]. 
    - Installation request for laracasts/flash 1.3.3 -> satisfiable by laracasts/flash[1.3.3]. 

composer.json文件:

{ 
    "name": "laravel/laravel", 
    "description": "The Laravel Framework.", 
    "keywords": ["framework", "laravel"], 
    "license": "MIT", 
    "type": "project", 
    "require": { 
     "laravel/framework": "5.0.*", 
     "doctrine/dbal": "~2.5", 
     "illuminate/html": "~5.0", 
     "laracasts/flash": "~1.3" 
    }, 
    "require-dev": { 
     "phpunit/phpunit": "~4.0", 
     "phpspec/phpspec": "~2.1" 
    }, 
    "autoload": { 
     "classmap": [ 
      "database" 
     ], 
     "psr-4": { 
      "App\\": "app/" 
     } 
    }, 
    "autoload-dev": { 
     "classmap": [ 
      "tests/TestCase.php" 
     ] 
    }, 
    "scripts": { 
     "post-install-cmd": [ 
      "php artisan clear-compiled", 
      "php artisan optimize" 
     ], 
     "post-update-cmd": [ 
      "php artisan clear-compiled", 
      "php artisan optimize" 
     ], 
     "post-create-project-cmd": [ 
      "php -r \"copy('.env.example', '.env');\"", 
      "php artisan key:generate" 
     ] 
    }, 
    "config": { 
     "preferred-install": "dist" 
    } 
} 

似乎在這個項目中使用的Laravel的版本是開發者。 你能告訴我怎樣才能運行這個項目?我沒有安裝新的Laravel的問題。

回答

0

PHP缺失mcrypt擴展 - 安裝並啓用它,它會工作。

+0

非常感謝,它工作完美! – Daniyal

相關問題