2016-05-19 23 views
0

Я использую эту ошибку при попытке установить GeoIP2. К сожалению, сообщение об ошибке не очень googlable, и я не могу понять, как его исправить. Понятно, что чего-то не хватает, но я не уверен, что. Я не очень опытен с композитором. Может ли кто-нибудь помочь мне расшифровать эту ошибку, пожалуйста?Ошибка при установке GeoIP2: geoip2/geoip2 v2.3.1 требует maxmind/web-service-common

$ composer require "geoip2/geoip2":"~2.0" 
./composer.json has been updated 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - geoip2/geoip2 v2.3.1 requires maxmind/web-service-common ~0.0.3 -> satisfiable by maxmind/web-service-common[v0.0.3, v0.0.4]. 
    - geoip2/geoip2 v2.3.2 requires maxmind/web-service-common ~0.0.3 -> satisfiable by maxmind/web-service-common[v0.0.3, v0.0.4]. 
    - geoip2/geoip2 v2.3.3 requires maxmind/web-service-common ~0.0.3 -> satisfiable by maxmind/web-service-common[v0.0.3, v0.0.4]. 
    - geoip2/geoip2 v2.4.0 requires maxmind/web-service-common ~0.0.3 -> satisfiable by maxmind/web-service-common[v0.0.3, v0.0.4]. 
    - geoip2/geoip2 v2.3.0 requires maxmind/web-service-common ~0.0.2 -> satisfiable by maxmind/web-service-common[v0.0.2, v0.0.3, v0.0.4]. 
    - geoip2/geoip2 v2.0.0 requires guzzle/guzzle 3.* -> satisfiable by guzzle/guzzle[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.1.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2, v3.9.3]. 
    - geoip2/geoip2 v2.1.0 requires guzzle/guzzle 3.* -> satisfiable by guzzle/guzzle[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.1.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2, v3.9.3]. 
    - geoip2/geoip2 v2.1.1 requires guzzle/guzzle 3.* -> satisfiable by guzzle/guzzle[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.1.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9.1, v3.9.2, v3.9.3]. 
    - maxmind/web-service-common v0.0.4 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - maxmind/web-service-common v0.0.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - maxmind/web-service-common v0.0.2 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.9.2 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.9.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.9.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.8.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.8.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.4 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.2 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.7.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.6.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.5.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.4.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.4.2 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.4.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.4.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.3.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.3.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.2.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.1.2 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.1.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.1.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.0.7 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.0.6 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.0.4 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.0.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.0.2 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.0.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - guzzle/guzzle v3.0.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - Installation request for geoip2/geoip2 ~2.0 -> satisfiable by geoip2/geoip2[v2.0.0, v2.1.0, v2.1.1, v2.3.0, v2.3.1, v2.3.2, v2.3.3, v2.4.0]. 

    To enable extensions, verify that they are enabled in those .ini files: 
    - C:\PHP\php.ini 
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 

Installation failed, reverting ./composer.json to its original content. 
+0

Запустите «обновление композитора» перед установкой geoip, а затем добавьте в composer.json запрос на обновление и запуск снова –

+0

@ stig-js T приветствую вас за предложение. Я сделал все это, но я получаю ту же самую точную ошибку при выполнении обновления во второй раз –

ответ

1

Только в случае, если кто-то натыкается на тот же вопрос ...

Решение для того, чтобы curl расширение в php.ini файл в последней части сообщения об ошибке говорит:

To enable extensions, verify that they are enabled in those .ini files: 
    - C:\PHP\php.ini 
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 

Я просто удалил точку с запятой от ;extension=php_curl.dll, и она сработала.

Я также требуется последняя версия геоида (не 2.0, как GitHub документы свидетельствуют):

composer require geoip2/geoip2:~2.4.0 
0

Да, Просто установите локон, он будет успешно установить Для Ubuntu с php5: sudo apt-get install php5-curl

Для Ubuntu с php7: sudo apt-get install php7.0-curl

 Смежные вопросы

  • Нет связанных вопросов^_^