ubuntu下源码编译比特币(Bitcoin)钱包笔记

1、sudo sed -i ‘s#http://archive.ubuntu.com/#http://mirrors.aliyun.com/#;s#http://security.ubuntu.com/#http://mirrors.aliyun.com/#’ /etc/apt/sources.list
2、sudo apt update
3、sudo apt install libboost-filesystem-dev libboost-system-dev libboost-dev libboost-thread-dev libboost-date-time-dev libboost-chrono-dev libboost-regex-dev libboost-serialization-dev libboost-program-options-dev cmake

https://www.digitalocean.com/community/tutorials/additional-recommended-steps-for-new-ubuntu-14-04-servers

开启端口命令

ufw allow 18696/udp
ufw allow 18696/tcp

kill -9 `pidof cheatcoin` 关闭进程

ubuntu

添加源 sudo vi /etc/apt/sources.list

进入系统,先改密码,sudo passwd

然后:

sudo apt-get update

sudo apt-get install git build-essential g++ python-dev autotools-dev libicu-dev libbz2-dev libboost-all-dev libssl-dev libevent-dev libminiupnpc-dev redis-server libdb++-dev nodejs-dev nodejs-legacy npm cmake

sudo apt-get install redis-server nodejs-dev nodejs-legacy npm cmake

如果出现

/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20′ not found,是GCC版本问题

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gcc-5 g++-5

如果不能 add-apt-repository, 则

apt-get install python-software-properties software-properties-common
apt-get install software-properties-common

如果要安装qt

sudo apt-get install git libminiupnpc-dev qt5-default qt5-qmake qtbase5-dev-tools qttools5-dev-tools

一些可能要的东西:sudo apt-get install git libboost-all-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev

如果14版的 libboost版本低

sudo add-apt-repository ppa:boost-latest/ppa
sudo apt-get update

sudo apt-get install libboost1.55-all-dev

然后安装:sudo apt-get install tmux
运行 tmux

如果是全新编译钱包:

cd /coins
git clone https://github.com/Codex02/Eurobit
cd /coins/bitmonero && make

开始使用钱包

Run monero daemon

cd bitmonero/build/release/bin/ && ./bitmonerod

Run the wallet

cd bitmonero/build/release/bin/ && ./simplewallet

——————————
Daemon execution: ./bytecashd
——————————

Simplewallet execution:

1) ./simplewallet –generate-new-wallet=name_of_my_wallet.bin (Creating a new wallet).

2) ./simplewallet –wallet-file=name_of_my_wallet.bin (Entrance to an existing wallet)

未经允许不得转载:云东方 » ubuntu下源码编译比特币(Bitcoin)钱包笔记

赞 (1) 打赏

打赏的不是钱,是情怀!

支付宝扫一扫打赏

微信扫一扫打赏