This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Installation via composer fails (all versions)

Discuss installing Symfony 2 here

Installation via composer fails (all versions)

by Hey » Mon Jun 03, 2013 11:23 am

Hi.

Today I tried to install Symfony 2.2.0, but I got the following error:
Code: Select all
hey@hey:/var/www$ php ~/composer.phar create-project symfony/framework-standard-edition symfony 2.2.0

Installing symfony/framework-standard-edition (v2.2.0)
  - Installing symfony/framework-standard-edition (v2.2.0)
    Loading from cache

Created project in symfony
Loading composer repositories with package information
Installing dependencies from lock file
  - Installing twig/twig (v1.12.2)
    Loading from cache

  - Installing psr/log (1.0.0)
    Loading from cache

  - Installing doctrine/common (2.3.0)
    Loading from cache

  - Installing symfony/symfony (v2.2.0)
    Loading from cache

   <...>

  - Installing sensio/distribution-bundle (v2.2.0)
    Downloading: connection...
Could not fetch https://api.github.com/repos/sensio/SensioDistributionBundle/zipball/v2.2.0-RC3, enter your GitHub credentials to access private repos
The credentials will be swapped for an OAuth token stored in /home/hey/.composer/config.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username: ^C

What's wrong?

Okay, I tried 2.1.0:
Code: Select all
hey@hey:/var/www$ php ~/composer.phar create-project symfony/framework-standard-edition symfony 2.1.0
Installing symfony/framework-standard-edition (v2.1.0)
  - Installing symfony/framework-standard-edition (v2.1.0)
    Loading from cache

Created project in symfony
                                                                                           
  [RuntimeException]                                                                                                           
  Your composer.lock was created before 2012-09-15, and is not supported anymore. Run "composer update" to generate a new one.

What's wrong I do?

Okay, I tried 2.3.1-RC1:
Code: Select all
hey@hey:/var/www$ php ~/composer.phar create-project symfony/framework-standard-edition symfony 2.3.0-RC1
Installing symfony/framework-standard-edition (v2.3.0-RC1)
  - Installing symfony/framework-standard-edition (v2.3.0-RC1)
    Loading from cache

Created project in symfony
Loading composer repositories with package information
Installing dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - symfony/icu v1.2.0-RC1 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/icu v1.1.0-RC1 requires lib-icu >=3.8 -> 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 v2.3.0-RC1 requires symfony/icu >=1.0,<2.0 -> satisfiable by symfony/icu[v1.1.0-RC1, v1.2.0-RC1].
    - Installation request for symfony/symfony 2.3.* -> satisfiable by symfony/symfony[v2.3.0-RC1].

??
Hey
Junior Member
 
Posts: 4
Joined: Mon Jun 03, 2013 11:05 am

Re: Installation via composer fails (all versions)

by tiagojsag » Mon Jun 03, 2013 12:13 pm

Hi,

1 - That happens sometimes. I don't know exactly why, but if you retry a couple of minutes later, it should work.
2-
Your composer.lock was created before 2012-09-15, and is not supported anymore. Run "composer update" to generate a new one.
I think the error message speaks for itself.
3-
the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it
check if your system meets Sf2's requirements.

cheers
Tiago Garcia
@tiagojsag

Core Web Developer @ Shopware
http://www.shopware.de
User avatar
tiagojsag
Faithful Member
 
Posts: 885
Joined: Wed Aug 10, 2011 4:58 pm

Re: Installation via composer fails (all versions)

by Hey » Mon Jun 03, 2013 12:39 pm

Thanks for the reply.

tiagojsag wrote:2-
Your composer.lock was created before 2012-09-15, and is not supported anymore. Run "composer update" to generate a new one.
I think the error message speaks for itself.

I mean why I should fix something during installation? It looks weird. composer.lock generates by composer, so why it generates obsolete file? I don't get it. :)

tiagojsag wrote:check if your system meets Sf2's requirements

Yep, thx, now it works. I thought issue was related with composer settings or something and didn't read message properly. :|
Hey
Junior Member
 
Posts: 4
Joined: Mon Jun 03, 2013 11:05 am

Re: Installation via composer fails (all versions)

by tiagojsag » Mon Jun 03, 2013 2:31 pm

It generates the file when you run composer update
It seems you haven't done so in a while, so you should do it.

cheers
Tiago Garcia
@tiagojsag

Core Web Developer @ Shopware
http://www.shopware.de
User avatar
tiagojsag
Faithful Member
 
Posts: 885
Joined: Wed Aug 10, 2011 4:58 pm

Re: Installation via composer fails (all versions)

by Hey » Mon Jun 03, 2013 3:19 pm

tiagojsag wrote:It generates the file when you run composer update

I install new framework via "php ~/composer.phar create-project symfony/framework-standard-edition symfony 2.1.0" where should I run composer update? It is obvious external issue.
Hey
Junior Member
 
Posts: 4
Joined: Mon Jun 03, 2013 11:05 am

Re: Installation via composer fails (all versions)

by tiagojsag » Mon Jun 03, 2013 3:35 pm

Oh, I see what you mean. But if you are starting a new project, I recommend either 2.2 or 2.3, as 2.1 is an old version.

cheers
Tiago Garcia
@tiagojsag

Core Web Developer @ Shopware
http://www.shopware.de
User avatar
tiagojsag
Faithful Member
 
Posts: 885
Joined: Wed Aug 10, 2011 4:58 pm

Re: Installation via composer fails (all versions)

by crysallus » Tue Jul 16, 2013 10:37 am

Regarding the sensio bundle credentials issue..

The fix I found was explained here: https://coderwall.com/p/xanheg

It seems sensio has renamed their repo from sensio to sensiolabs. So I:

- removed the vendors/sensio folder
- in composer.lock renamed all instances of https://github.com/sensio to https://github.com/sensiolabs, and https://api.github.com/repos/sensio to https://api.github.com/repos/sensiolabs

Ran composer install and all worked correctly
crysallus
Junior Member
 
Posts: 2
Joined: Fri Apr 26, 2013 9:24 am