编译bitcoin是遇到的问题

具体编译教程看 bitcoin/doc 下的 build-unix.md (Linux下的)。遇到问题如下

1、数据库版本不匹配 。 解决方法:./.configure --wiith-incompatible-bdb

2、报错:

g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,

原因是内存不足

解决方法:

    方法1:增加虚拟机实际内存

方法2:

使用交换分区技术(swap)

sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile


取消交换分区

sudo swapoff /swapfile
sudo rm /swapfile

猜你喜欢

转载自blog.csdn.net/chengjieno1/article/details/81491199
今日推荐