我正在安装Sylius。在我的命令提示符下,我做了
composer create-project -s dev sylius/sylius
我收到此错误消息:
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].
我尝试了什么:
php composer.phar self update
php composer.phar install
答案 0 :(得分:1)
看起来您需要安装两个PHP扩展才能使其工作:curl
和intl
(提供symfony / icu所需的lib-icu)。由于您使用的是Windows,因此我建议official guide介绍如何在Windows系统上安装扩展程序。您可以在PECL存储库here中找到intl
扩展名。
curl
已经安装在您的WAMP上,但默认情况下已禁用。有关如何启用它的说明,请参阅this question的热门答案。
答案 1 :(得分:1)
WAMP有两个php.ini
个文件,一个用于apache,另一个用于CLI。当您单击php模块中的WAMP托盘图标时,您只能看到为apache启用的模块,因此启用和禁用模块仅对php.ini
的apache副本生效。
尝试在curl
中启用intl
和X:\path\to\wamp\bin\php\php.ini
,这是CLI的配置(BTW.config for apache放在X:\path\to\wamp\bin\apache\bin\php.ini
中)。
答案 2 :(得分:0)
Sylius现在发布了我在博客中介绍的最新版本v1.0.0以进行安装。以下是来源:https://www.cloudways.com/blog/install-sylius-ecommerce-framework/
您只需要在SSH中运行以下命令,或者将安装终端Sylius
$(function () {
var $type = $('#id_type');
var $search = $('#id_search');
var $url = $('#id_url');
var api = new API(api_host);
hide($search);
hide($url);
$type.on('change', function(){
if ($type.val() == 'search') {
show($search);
hide($url);
api.getProduct(function(product){
// .. do something with the product
});
} else if($type.val() == 'url') {
show($url);
hide($search);
}
});
$ composer create-project -s beta sylius/sylius-standard project
$ cd project
$ npm install
$ npm run gulp