2016-02-05 65 views
3

如何在travis上安裝libicui18n.so.52?如何在travis上安裝libicui18n.so.52?

我有libicui18n.so.52

[phantomjs.launcher]: /home/travis/build/MyProject/node_modules/karma-phantomjs2-launcher/node_modules/phantomjs2-ext/lib/phantom/bin/phantomjs: error while loading shared libraries: libicui18n.so.52: cannot open shared object file: No such file or directory 

我在.travis.yml嘗試這樣一個問題:

sudo: false 

before_install: 
    - apt-get install -i libicu52_52.1-3ubuntu0.4_amd64.deb 

但我有此錯誤:

The command "sudo apt-get install -y libicu52_52.1-3ubuntu0.4_amd64.deb" failed and exited with 100 during . 
+0

你可以嘗試安裝*只是*'libicu52'? –

+4

請不要添加問題的答案。發表答案並將其標記爲已接受。 – Alfabravo

+0

今天早上我解決了我的問題,這個帖子http://stackoverflow.com/questions/35222589/install-package-on-travis-ci-with-sudofalse,我更新了我的問題 –

回答

0

解決方法:

sudo: required 

before_install: 
    - sudo wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.4_amd64.deb 
    - sudo dpkg -i libicu52_52.1-3ubuntu0.4_amd64.deb 
相關問題