 环境是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上面安装东西一定要发挥**打破沙锅问到底**的精神,一层层找,找到最后一层依赖不能安装的问题,然后移除,再安装。 *我把这个坑填了,遇到的朋友们踩着过吧,哈哈哈。。。*
author | alanzheng |
---|---|
permlink | bitshares-core-or-trouble-shoot-for-building-bitshares-core |
category | cn-programming |
json_metadata | {"tags":["cn-programming","bitshares","steemdev","development","programming"],"image":["https://steemitimages.com/DQmcdADXyXJCkmcPBKDEFLyLKHpgsPzpYCioU5jgptjcoo3/image.png"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-02-11 07:57:18 |
last_update | 2018-02-11 09:38:33 |
depth | 0 |
children | 0 |
last_payout | 2018-02-18 07:57:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.072 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,091 |
author_reputation | 2,727,533,211,976 |
root_title | "编译bitshares-core遇到的坑 | trouble shooting for building bitshares-core" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 36,611,578 |
net_rshares | 10,105,111,313 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gefa | 0 | 171,569,108 | 100% | ||
manuel78 | 0 | 195,658,104 | 3% | ||
voronchihin | 0 | 425,975,819 | 2% | ||
gurb | 0 | 224,472,008 | 100% | ||
alanzheng | 0 | 3,505,991,227 | 100% | ||
azcax | 0 | 616,373,663 | 100% | ||
farukcom | 0 | 1,283,670,262 | 3% | ||
fareast-history | 0 | 890,368,142 | 100% | ||
xiaodong | 0 | 246,042,605 | 100% | ||
zhengxiaodong | 0 | 246,031,846 | 100% | ||
steemlua | 0 | 1,070,316,075 | 100% | ||
hao.zheng | 0 | 122,901,037 | 100% | ||
xmlyan-luoli | 0 | 122,866,019 | 100% | ||
honge.yang | 0 | 614,472,505 | 100% | ||
dailystat | 0 | 122,814,982 | 100% | ||
resteemd | 0 | 122,814,875 | 100% | ||
geekshop | 0 | 122,773,036 | 100% |