Composer 在 Ubuntu 18.04 中缺少库
Composer missing libraries in Ubuntu 18.04
我已经安装了 composer,但是当我尝试 运行 $ composer
我收到以下错误:
php: error while loading shared libraries: libicui18n.so.55: cannot
open shared object file: No such file or directory
php -v
命令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
我尝试在 synaptic 中搜索 libicu
并安装了 libicu60!
但是,php composer.phar
工作正常
作曲家不应该需要这种依赖,但如果确实需要,这应该有效:
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
但是,我 post 将其作为作曲家维护者的错误(github 回购),因为该软件包应该将其作为依赖项并在安装过程中使用 apt。
Composer.phar 确实是一个独立程序,因此不需要其他依赖项。很像一个 snap 包。
我已经安装了 composer,但是当我尝试 运行 $ composer
我收到以下错误:
php: error while loading shared libraries: libicui18n.so.55: cannot open shared object file: No such file or directory
php -v
命令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
我尝试在 synaptic 中搜索 libicu
并安装了 libicu60!
但是,php composer.phar
工作正常
作曲家不应该需要这种依赖,但如果确实需要,这应该有效:
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
但是,我 post 将其作为作曲家维护者的错误(github 回购),因为该软件包应该将其作为依赖项并在安装过程中使用 apt。
Composer.phar 确实是一个独立程序,因此不需要其他依赖项。很像一个 snap 包。