Laravel 5.1部署您的需求无法parsing为可安装的一组软件包

当我试图部署我的laravel项目,并做一个php composer.phar安装我得到这个恼人的错误。 我通过与git克隆git拉我的项目。 而当我冲浪到我的域名,我想看到我的应用程序显然:)。 我已经安装了一个正确的版本的Apache,MySQL和PHP。 一切都在运行。

错误:

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 brianmcdo/image-palette dev-master -> satisfiable by brianmcdo/image-palette[dev-master]. - brianmcdo/image-palette dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system. Problem 2 - Installation request for phpunit/phpunit 4.8.18 -> satisfiable by phpunit/phpunit[4.8.18]. - phpunit/phpunit 4.8.18 requires ext-dom * -> the requested PHP extension dom is missing from your system. 

当我尝试安装php-gd或者dom时,我得到这个错误:

 Error: php56w-common conflicts with php-common-5.4.16-36.el7_1.x86_64 

我的PHP版本:(php -v)

 PHP 5.6.14 (cli) (built: Oct 16 2015 07:11:57) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies 

rpm -qa |的结果 grep php:

 php56w-mbstring-5.6.14-2.w7.x86_64 php56w-cli-5.6.14-2.w7.x86_64 php56w-common-5.6.14-2.w7.x86_64 php56w-5.6.14-2.w7.x86_64 php56w-opcache-5.6.14-2.w7.x86_64 

尝试删除php-common-5.4 *并重新运行安装。 安装replace之前,您必须删除旧的PHP包。