如何在xubuntu上安装另一个版本的boost?

时间:2016-01-23 21:34:31

标签: ubuntu repository apt-get

我正在尝试编译https://github.com/monero-project/bitmonero,它特意告诉安装boost 1.53或更高版本,但不是1.54。从这个先决条件开始,我立即安装了libboost-all-dev,它安装了版本1.54。接下来怎么办?我尝试过这个,但正如你从最后一行所看到的那样,它不起作用。为什么不起作用?

vagrant@vagrant-eclipse:~$ rmadison libboost-all-dev
 libboost-all-dev | 1.48.0.2        | precise/universe | amd64, armel, armhf, i386, powerpc
 libboost-all-dev | 1.54.0.1ubuntu1 | trusty/universe  | amd64, arm64, armhf, i386, powerpc, ppc64el
 libboost-all-dev | 1.55.0.2        | vivid/universe   | amd64, arm64, armhf, i386, powerpc, ppc64el
 libboost-all-dev | 1.58.0.0ubuntu1 | wily/universe    | amd64, arm64, armhf, i386, powerpc, ppc64el
 libboost-all-dev | 1.58.0.1        | xenial/universe  | amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
vagrant@vagrant-eclipse:~$ sudo apt-add-repository http://archive.ubuntu.com/ubuntu/wily/universe
vagrant@vagrant-eclipse:~$ sudo apt-get install libboost-all-dev=1.58.0.0ubuntu1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '1.58.0.0ubuntu1' for 'libboost-all-dev' was not found

1 个答案:

答案 0 :(得分:0)

如果你可以删除libboost-all-dev而不破坏你的整个宇宙(一件棘手的事情),那么你可以

apt-get install libboost1.55-all-dev

1.55已经(错误)打包在规范存储库中可靠。