Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is lib-ICU working ? #1939

Closed
jdespatis opened this issue May 27, 2013 · 21 comments
Closed

Is lib-ICU working ? #1939

jdespatis opened this issue May 27, 2013 · 21 comments

Comments

@jdespatis
Copy link

I'm trying to install symfony-standard but runs into trouble, as reported here:
https://github.com/symfony/symfony-standard/issues/552

The fact is https://github.com/symfony/Icu uses the new option from composer alpha7: lib-ICU, but the check of this library installed doesn't seem to work on my system despite libicu 4.8.1 installed on it

Here is the output of my dpkg (Running Ubuntu 12.10 64bits)

jerome@poseidon:/$ dpkg -l |grep -i icu
ii  libicu-dev                            4.8.1.1-8                                 amd64        Development files for International Components for Unicode
ii  libicu48:amd64                        4.8.1.1-8                                 amd64        International Components for Unicode
@gnugat
Copy link

gnugat commented May 27, 2013

Same here. Here is the output of my dpkg (running Ubuntu 13.04 64bits):

> dpkg -l |grep -i icu
ii  libicu-dev                                4.8.1.1-12                             amd64        Development files for International Components for Unicode
ii  libicu48:amd64                            4.8.1.1-12                             amd64        International Components for Unicode

@Seldaek
Copy link
Member

Seldaek commented May 27, 2013

lib-ICU is only present if you have the php intl extension (which uses libicu and exposes it to php). Check php -m | grep intl, if it outputs nothing there's your problem.

@Seldaek Seldaek closed this as completed May 27, 2013
@gnugat
Copy link

gnugat commented May 27, 2013

yep, that pretty much solved it, thanks!

@jdespatis
Copy link
Author

Thanks, it now works

Not so obvious however to understand that php5-intl is needed, with an error talking only about lib-icu :)

@Seldaek
Copy link
Member

Seldaek commented May 28, 2013

The error does end with "make sure to load the extension providing it",
but anyway I modified the output so it clearly talks about the intl
extension when ICU is missing.

@jdespatis
Copy link
Author

Nice, thanks

@frak
Copy link

frak commented Jan 10, 2014

There seems to be a problem with how the versions are being checked, as I am getting the following error when deploying to a mac which has version 51.2 of lib-icu installed:

http://cl.ly/TI2E

When I check to see if intl is installed I get:

http://cl.ly/TI1Y

So everything seems present and correct, and from my research, 51.2 is definitely newer than 4.0

@Seldaek
Copy link
Member

Seldaek commented Jan 10, 2014

@frak can you paste the output of composer show -p lib-icu? Maybe it's not detected properly, or it doesn't report the correct version.

@frak
Copy link

frak commented Jan 10, 2014

@Seldaek This is what I get:

munkini:media mikey$ ./composer.phar show -p lib-icu
name     : lib-ICU
descrip. : The ICU PHP library
keywords :
versions : * 51.2
type     : library
license  :
source   : []
dist     : []
names    : lib-icu

@Seldaek
Copy link
Member

Seldaek commented Jan 10, 2014

Strange, 51.2 should definitely satisfy >=4.4. Care to share the composer.json so I can try to reproduce?

@frak
Copy link

frak commented Jan 10, 2014

@Seldaek sure thing: http://pastebin.com/d1Qi0Bzt

(I recently upgraded from 2.1 to 2.3, so I hope I got everything right when I switched)

@frak
Copy link

frak commented Jan 10, 2014

@Seldaek actually, can you try this one as I fixed a lot of things I was in the middle of before I noticed this error: http://pastebin.com/Zh5eMfyQ

@Seldaek
Copy link
Member

Seldaek commented Jan 12, 2014

OK so I am still quite confused about this, can't reproduce using your last pastebin:

$ c show -p lib-icu
name     : lib-ICU
descrip. : The ICU PHP library
keywords :
versions : * 51.2
type     : library
license  :
source   : []
dist     : []
names    : lib-icu

$ c up --dry-run
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing doctrine/lexer (dev-master f12a5f7)
  - Installing doctrine/annotations (dev-master a11349d)
  - Installing doctrine/collections (dev-master e6d8f12)
  - Installing doctrine/cache (dev-master 36c4eee)
  - Installing doctrine/inflector (dev-master a81c334)
  - Installing doctrine/common (2.4.x-dev c94d6ff)
  - Installing doctrine/data-fixtures (dev-master 4a81be0)
  - Installing psr/log (dev-master 65f363a)
  - Installing twig/twig (dev-master ae89c88)
  - Installing symfony/icu (1.2.x-dev 98e197d)
  - Installing symfony/symfony (2.3.x-dev 0d500ed)
  - Installing jdorn/sql-formatter (dev-master 64990d9)
  - Installing doctrine/dbal (2.3.x-dev 87d5d92)
  - Installing doctrine/doctrine-bundle (dev-master 69fbd69)
  - Installing doctrine/doctrine-fixtures-bundle (dev-master 42ac886)
  - Installing guzzle/common (v3.8.0)
  - Installing guzzle/stream (v3.8.0)
  - Installing guzzle/parser (v3.8.0)
  - Installing guzzle/http (v3.8.0)
  - Installing fabpot/goutte (dev-master 9374342)
  - Installing mockery/mockery (dev-master adfba47)
  - Installing doctrine/migrations (dev-master 199cb62)
  - Installing doctrine/doctrine-migrations-bundle (dev-master 667f208)
  - Installing willdurand/jsonp-callback-validator (v1.0.0)
  - Installing friendsofsymfony/jsrouting-bundle (dev-master 96abbb0)
  - Installing mikey179/vfsStream (dev-master 2a5c082)
  - Installing videlalvaro/php-amqplib (v2.2.6)
  - Installing oldsound/rabbitmq-bundle (dev-master b3a447b)
  - Installing jms/metadata (dev-master f44eefc)
  - Installing phpoption/phpoption (dev-master 5d099bc)
  - Installing phpcollection/phpcollection (dev-master 6cb8021)
  - Installing jms/parser-lib (dev-master d5961fa)
  - Installing jms/serializer (dev-master 3f411c4)
  - Installing jms/serializer-bundle (dev-master bb15db3)
  - Installing doctrine/orm (2.3.x-dev 1a30e0a)
  - Installing twig/extensions (dev-master 0fdc8ca)
  - Installing kriswallsmith/assetic (1.1.x-dev 1d671c5)
  - Installing symfony/assetic-bundle (2.3.x-dev 099e0bb)
  - Installing swiftmailer/swiftmailer (v5.0.3)
  - Installing symfony/swiftmailer-bundle (v2.3.4)
  - Installing monolog/monolog (dev-master d81ca5a)
  - Installing symfony/monolog-bundle (2.3.x-dev 03ed73b)
  - Installing sensio/distribution-bundle (dev-master cf01797)
  - Installing sensio/framework-extra-bundle (2.3.x-dev fa362cd)
  - Installing sensio/generator-bundle (dev-master 1e1e0cc)
  - Installing incenteev/composer-parameter-handler (dev-master 143272a)

@frak
Copy link

frak commented Jan 13, 2014

Very strange - and you are running this on a Mac with the MacPorts version of ICU?

@Seldaek
Copy link
Member

Seldaek commented Jan 13, 2014

Nope I'm running on windows and I hacked the ICU version in composer to be 51.2 just to see if it was a composer version handling bug. Seems it's not so maybe something else is at play on your machine.

@frak
Copy link

frak commented Jan 13, 2014

The error message that composer gives seems to imply that it doesn't even recognise that it is lib-icu - the text is the error that comes from line 99 of Problem.php, indicating that false was returned on line 93 - so in this case I don't think that the version of ICU is the problem...

@Seldaek
Copy link
Member

Seldaek commented Jan 13, 2014

Meh yes that's true, very very weird. And you are sure you run the latest composer version?

@frak
Copy link

frak commented Jan 13, 2014

I specifically got the latest version to perform this test, to rule that out as an issue…

On 13 Jan 2014, at 12:48, Jordi Boggiano notifications@github.com wrote:

Meh yes that's true, very very weird. And you are sure you run the latest composer version?


Reply to this email directly or view it on GitHub.

@frak
Copy link

frak commented Jan 19, 2014

OK, so it does seem like something else is at play. When I run composer on the mac I am deploying to there are no problems, but when I use Capifony it fails - it seems very odd as the error is coming directly from Composer:

http://cl.ly/TRzf

Anyway, I shall have a look around now to see if any others have had this problem with Capifony...

@Seldaek
Copy link
Member

Seldaek commented Jan 19, 2014

Ah ha, sounds like capifony isn't loading the right php or the right ini file then.

@frak
Copy link

frak commented Jan 19, 2014

Thanks for the tip - I just made a check:

munkini:media mikey$ which php
/opt/local/bin/php
munkini:media mikey$ sudo su -
munkini:~ root# which php
/usr/bin/php

This I can fix - thanks for your help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants