1
votes

I have installed composer but when I try to run $ composer I get the following error:

php: error while loading shared libraries: libicui18n.so.55: cannot open shared object file: No such file or directory

The php -v command returns:

PHP 7.1.23-2+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Oct 15 2018 11:37:26) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.1.23-2+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

I have tried to search for libicu in synaptic and I installed libicu60!

However, php composer.phar works fine

1

1 Answers

2
votes

composer shouldn't need that dependency, but in case it really does, this should work:

wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7_amd64.deb
sudo dpkg -i libicu55_55.1-7_amd64.deb
sudo apt-get -f install

However, I'd post that as a bug to composer maintainers (github repo), because the package should have this as a dependency and install it along the way with apt.

Composer.phar is really a standalone program, so it doesn't need other dependencies. much like a snap package.