我只是在 DigitalOcean Linux VPS 上编译狗狗币,这里只是复制我在狗狗币钱包编译过程中遵循的步骤:
在 Ubuntu 上编译狗狗币钱包(4GB Ram60GB SSD 盘):
Pre-Install:
sudo apt-get update
sudo apt-get install build-essential pkg-config
sudo apt-get install libtool autotools-dev autoconf automake
sudo apt-get install libssl-dev
sudo apt-get install libdb5.1-dev
sudo apt-get install libdb5.1++-dev
sudo apt-get install libqt4-dev libprotobuf-dev protobuf-compiler
sudo apt-get install libdb5.1++-dev
sudo apt-get install libboost1.54-all-dev
在服务器上克隆狗狗币回购:
1: git clone https://github.com/dogecoin/dogecoin.git
2: cd dogecoin
3: ./autogen.sh
Berkely DB (Run following command 1 by one)
BITCOIN_ROOT=$(pwd)
# Pick some path to install BDB to, here we create a directory within the dogecoin directory
BDB_PREFIX="${BITCOIN_ROOT}/db5"
mkdir -p $BDB_PREFIX
# Fetch the source and verify that it is not tampered with
wget 'http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz'
echo '08238e59736d1aacdd47cfb8e68684c695516c37f4fbe1b8267dde58dc3a576c db-5.1.29.NC.tar.gz' | sha256sum -c
# -> db-5.1.29.NC.tar.gz: OK
tar -xzvf db-5.1.29.NC.tar.gz
# Build the library and install to our prefix
cd db-5.1.29.NC/build_unix/
# Note: Do a static build so that it can be embedded into the executable, instead of having to find a .so at runtime
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
sudo make install
# Configure Dogecoin Core to use our own-built instance of BDB
cd $BITCOIN_ROOT
./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="- I${BDB_PREFIX}/include/"
=========================================================
4: ./configure
5: make (Wait to complete it ... .... )
6: sudo make install (Optional)
To check if Dogecoind is Installed and Running, Please run
>> **dogecoind -daemon**
如果您收到此错误:
Error: To use dogecoind, or the -server option to dogecoin-qt, you must set an rpcpassword in the configuration file:
/root/.dogecoin/dogecoin.conf
It is recommended you use the following random password:
rpcuser= 'username'
rpcpassword= 'userpassword'
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %s | mail -s "Dogecoin Alert" admin@foo.com
然后在 ./root/.dogecoin/ 中创建 dogecoin.conf 文件并在其中粘贴以下行
rpcuser= 'username'
rpcpassword= 'userpassword'
alertnotify=echo %s | mail -s "Dogecoin Alert" youremail@gmail.com
--------------END---------------
SAMPLE RESULTS AFTER Running 'make'
root@ateq:/home/rails/dogecoin# make
Making all in src
make[1]: Entering directory `/home/rails/dogecoin/src'
make[2]: Entering directory `/home/rails/dogecoin/src'
CXX crypto/libbitcoinconsensus_la-hmac_sha512.lo
CXX crypto/libbitcoinconsensus_la-ripemd160.lo
CXX crypto/libbitcoinconsensus_la-scrypt.lo
CXX crypto/libbitcoinconsensus_la-sha1.lo
CXX crypto/libbitcoinconsensus_la-sha256.lo
CXX crypto/libbitcoinconsensus_la-sha512.lo
.....................