0

I am installing Sylius. In my command prompt I did

composer create-project -s dev sylius/sylius

I get this error message :

C:\wamp\www\Symfony>composer create-project -s dev sylius/sylius
Installing sylius/sylius (dev-master 18d981683430c0afd1a102b6fc67f8ffeaabddc0)
  - Installing sylius/sylius (dev-master master)
    Cloning master

Created project in C:\wamp\www\Symfony\sylius  
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 symfony/icu 1.2.x-dev -> satisfiable by symfony/icu[1.2.x-dev].
  - symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 2
  - Installation request for instaclick/php-webdriver 1.0.x-dev -> satisfiable by instaclick/php-webdriver[1.0.x-dev].
  - instaclick/php-webdriver 1.0.x-dev requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
  - Installation request for instaclick/php-webdriver dev-master -> satisfiable by instaclick/php-webdriver[dev-master].
  - instaclick/php-webdriver dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 4
  - symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
  - symfony/symfony 2.3.x-dev requires symfony/icu ~1.0 -> satisfiable by symfony/icu[1.2.x-dev].
  - Installation request for symfony/symfony 2.3.x-dev -> satisfiable by symfony/symfony[2.3.x-dev].

What I tried :

  1. php composer.phar self update
  2. php composer.phar install
  3. Deleting sylius directory
  4. Reinstalling sylius with the create-project command
  5. Fresh installation of Symfony 2.3.4 and reinstallation of sylius
  6. Did what was told in the first answer: enable extension curl and intl
  7. Used the function get_loaded_extension() to confirm that curl and intl are loaded. Well, it is loaded
4

3 に答える 3

1

WAMP にはphp.ini、Apache 用と CLI 用の 2 つのファイルがあります。php モジュールの WAMP トレイ アイコンをクリックすると、Apache に対して有効になっているモジュールのみが表示されるため、モジュールの有効化と無効化は、Apache のコピーに対してのみ有効になりますphp.ini

CLI の設定を有効curlintlしてみてくださいX:\path\to\wamp\bin\php\php.ini(ところで、Apache の設定は にありますX:\path\to\wamp\bin\apache\bin\php.ini)。

于 2013-12-25T18:00:48.990 に答える
1

これを機能させるには、2 つの PHP 拡張機能をインストールする必要があるようです:curlおよびintl(symfony/icu に必要な lib-icu を提供します)。Windows を使用しているため、Windows システムに拡張機能をインストールする方法に関する公式ガイドをお勧めします。この拡張機能は、こちらintlの PECL リポジトリにあります。

curlすでに WAMP にインストールされている必要がありますが、デフォルトでは無効になっています。有効にする方法については、この質問に対する一番上の回答を参照してください。

于 2013-09-17T09:02:20.960 に答える