Error on Mac: Your requirements could not be resolved to an installable set of packages


#1

I got this messages. What can I do?

  Problem 1
    - Installation request for league/uri 5.3.0 -> satisfiable by league/uri[5.3.0].
    - league/uri 5.3.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 2
    - Installation request for league/uri-components 1.8.1 -> satisfiable by league/uri-components[1.8.1].
    - league/uri-components 1.8.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 3
    - Installation request for league/uri-hostname-parser 1.1.1 -> satisfiable by league/uri-hostname-parser[1.1.1].
    - league/uri-hostname-parser 1.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 4
    - Installation request for league/uri-manipulations 1.5.0 -> satisfiable by league/uri-manipulations[1.5.0].
    - league/uri-manipulations 1.5.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 5
    - league/uri 5.3.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - payum/payum 1.5.0 requires league/uri ^5.0 -> satisfiable by league/uri[5.3.0].
    - Installation request for payum/payum 1.5.0 -> satisfiable by payum/payum[1.5.0].

I’m trying Sylius on a MacBook.


#2

First look at www.brew.sh and install Homebrew,
The missing package manager for macOS

Then I followed this steps, as seen on Stackoverflow:

Check wich PHP you use:

# If you see this it's the stock version
/usr/bin/php

#If you see this you are using the Homebrew version
/usr/local/bin/php

to switch from PreInstalled PHP (Stock version) to HomebrewInstalled.

    # Reinstall PHP 7.1
    brew reinstall php@7.1 

    #check carefully that overwriting links won't break things
    brew link --overwrite --force --dry-run php@7.1

    # Run it for real this time assuming you checked
    brew link --overwrite --force php@7.1

    # Double check that you are now using homebrew's PHP
    which php

    # This should identify any missing extensions
    php -v

Then the Installatin worked as provided in the sylius installation Guide / Docs. When I was asked

$ Some parameters are missing. Please provide them.

I just pressed Enter / Return some 23 times. And a moment later I finally got

[OK] All assets were successfully installed.


#3

Next I had to edit the php.ini file /usr/local/etc/php/7.1/php.ini
at line 939 into date.timezone = Europe/Berlin
and
at line 404 into memory_limit = 1024M

at the time beeing I work on the database connection…

Creating Sylius database for environment dev.

In AbstractMySQLDriver.php line 112:
                                                                              
  An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused  
                                                                              

In PDOConnection.php line 50:
                                             
  SQLSTATE[HY000] [2002] Connection refused  
                                             

In PDOConnection.php line 46:
                                             
  SQLSTATE[HY000] [2002] Connection refused

brew install yarn


#4

Check if you have pdo_mysql and mysqli extension installed -> php -ini | grep "API Extensions"