create account

编译bitshares-core遇到的坑 | trouble shooting for building bitshares-core by alanzheng

View this thread on: hive.blogpeakd.comecency.com
· @alanzheng · (edited)
$0.07
编译bitshares-core遇到的坑 | trouble shooting for building bitshares-core
![](https://steemitimages.com/DQmcdADXyXJCkmcPBKDEFLyLKHpgsPzpYCioU5jgptjcoo3/image.png)

环境是Ubuntu 16.04 .3 LTS,昨天刚申领到的云服务器。
按照官方步骤安装依赖库,基本很顺利的装完。在安装libboost-all-dev的时候遇到一个坑

```
libboost-all-dev : Depends: libboost-mpi-dev but it is not going to be installed
                    Depends: libboost-mpi-python-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
```
<br>apt不能解决依赖自己来:
```
apt-get install libboost-mpi-dev
```
<br>还是报错:
```
libboost-mpi-dev : Depends: libboost-mpi1.58-dev but it is not going to be installed
```
<br>然后:
```
apt-get install libboost-mpi1.58-dev
```
<br>报错:
```
libboost-mpi1.58-dev : Depends: mpi-default-dev but it is not going to be installed
```
.
.
.
此处省略300字 :-)
最终定位到:
```
libnuma-dev : Depends: libnuma1 (= 2.0.11-1ubuntu1) but 2.0.11-1ubuntu1.1 is to be installed
```
<br>就差了0.1至于这么为难我吗?心塞!


解决方法如下:
先删除libnuma1,再安装libnuma-dev
```
sudo apt-get remove libnuma1
sudo apt-get install libnuma-dev
```
<br>
## 总结:

Linux上面安装东西一定要发挥**打破沙锅问到底**的精神,一层层找,找到最后一层依赖不能安装的问题,然后移除,再安装。

*我把这个坑填了,遇到的朋友们踩着过吧,哈哈哈。。。*
👍  , , , , , , , , , , , , , , , ,
properties (23)
authoralanzheng
permlinkbitshares-core-or-trouble-shoot-for-building-bitshares-core
categorycn-programming
json_metadata{"tags":["cn-programming","bitshares","steemdev","development","programming"],"image":["https://steemitimages.com/DQmcdADXyXJCkmcPBKDEFLyLKHpgsPzpYCioU5jgptjcoo3/image.png"],"app":"steemit/0.1","format":"markdown"}
created2018-02-11 07:57:18
last_update2018-02-11 09:38:33
depth0
children0
last_payout2018-02-18 07:57:18
cashout_time1969-12-31 23:59:59
total_payout_value0.072 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,091
author_reputation2,727,533,211,976
root_title"编译bitshares-core遇到的坑 | trouble shooting for building bitshares-core"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id36,611,578
net_rshares10,105,111,313
author_curate_reward""
vote details (17)