简体   繁体   English

安装Sylius

[英]Installing Sylius

I am installing Sylius. 我正在安装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 删除sylius目录
  4. Reinstalling sylius with the create-project command 使用create-project命令重新安装sylius
  5. Fresh installation of Symfony 2.3.4 and reinstallation of sylius 全新安装Symfony 2.3.4并重新安装sylius
  6. Did what was told in the first answer: enable extension curl and intl 在第一个答案中告诉了什么:启用扩展curl和intl
  7. Used the function get_loaded_extension() to confirm that curl and intl are loaded. 使用函数get_loaded_extension()确认已加载curl和intl。 Well, it is loaded 好吧,它已加载

It looks like you need to install two PHP extensions to make this work: curl and intl (which provides the lib-icu required by symfony/icu). 看起来您需要安装两个PHP扩展才能使其工作: curlintl (它提供了symfony / icu所需的lib-icu)。 Since you are using Windows, I recommend the official guide on how to install extensions on Windows systems. 由于您使用的是Windows,因此我推荐有关如何在Windows系统上安装扩展的官方指南 You can find the intl extension in the PECL repository here . 您可以在此处找到PECL存储库中的intl扩展。

curl should be installed on your WAMP already, but disabled by default. curl应该已经安装在您的WAMP上,但默认情况下已禁用。 See the top answer to this question for instructions on how to enable it. 有关如何启用此问题的说明,请参阅此问题的最佳答案。

WAMP has two php.ini files, one for apache and one for CLI. WAMP有两个php.ini文件,一个用于apache,另一个用于CLI。 When you click on WAMP tray icon in php modules you can see only modules enabled for apache, and so enabling and disabling modules takes effect only for apache copy of php.ini . 当您单击php模块中的WAMP托盘图标时,您只能看到为apache启用的模块,因此启用和禁用模块仅对php.ini apache副本生效。

Try enabling curl and intl in X:\\path\\to\\wamp\\bin\\php\\php.ini which is config for CLI (BTW. config for apache is placed in X:\\path\\to\\wamp\\bin\\apache\\bin\\php.ini ). 尝试在X:\\path\\to\\wamp\\bin\\php\\php.ini中启用curlintl ,这是CLI的配置(BTW。配置为apache放在X:\\path\\to\\wamp\\bin\\apache\\bin\\php.ini )。

Sylius has now released the latest version v1.0.0 which I have covered in a blog to install it. Sylius现在发布了我在博客中介绍的最新版本v1.0.0以进行安装。 Here is the Source: https://www.cloudways.com/blog/install-sylius-ecommerce-framework/ 以下是来源: https//www.cloudways.com/blog/install-sylius-ecommerce-framework/

You just need to run the following cammands in SSH or Terminal Sylius will be installed 您只需要在SSH中运行以下命令,或者将安装终端Sylius

  • $ composer create-project -s beta sylius/sylius-standard project
  • $ cd project
  • $ npm install
  • $ npm run gulp
  • $ bin/console sylius:install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM