ipchain项目地址:
https://github.com/IPCChain/ipchain
直接下载release吧版本并不能直接使用:
下载的release并不能使用:
尝试编译钱包,按照官方教程,依次安装依赖并编译:
apt-get install make
apt-get install gcc
apt-get install g++
agt-get install zlib1g-dev
apt-get install libssl-dev
apt-get install build-essential
apt-get install libminiupnpc-dev
apt-get install autoconf
sudo apt-get install libbd5.3++-dev (安装时没找到这个库,后来才发现官方教程写错了,应该是libdb5.3++-dev )
sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer
sudo apt-get install libboost-all-dev
sudo apt-get gcc-multilib
sudo apt-get install libprotobuf-dev
sudo apt-get install libevent-dev
sudo apt-get install protobuf-compiler
Install the qr code kit and the png tools kit
sudo apt-get install libpng-1.6.31 qrencode-3.4.4(没找到对应的库,分别替换成libpng16-16和qrencode)
git clone https://github.com/IPCChain/ipchain --recursive
cd ipchain
./autogen.sh (先要执行这个才会产生configure文件,官方教程中漏掉了这个步骤)
./configure
sudo make
sudo make install
如果不是root记得sudo,不然会报Permission denied的错误
1、configure过程中还出现了一些错误,提示安装pkg-config:sudo apt-get install pkg-config
2、这个错误查了下是需要安装libdb5.3++-dev才行
3、这个错误是要安装Berkeley DB4.8或以上版本
Berkeley DB4.8下载地址:
http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz
cd db-4.8.30/build_unix
../dist/configure --enable-cxx
sudo make -j8
sudo make install
默认安装路径是/usr/local/BerkeleyDB.4.8/这里。
下面就是最重要的一步了,声明BerkeleyDB.4.8的位置:
export BDB_CFLAGS=/usr/local/BerkeleyDB.4.8/
这样在configure的时候,就可以找到BerkeleyDB.4.8了。
4、在make的时候报错
/bin/bash: ../share/genbuild.sh: Permission denied
这个错误是因为权限不够,为了保险起见,我直接对这个目录都加了最大权限。
chmod 777 -R ipchain-0.1.2
5、又出现了qt编译方面错误
估计还是依赖库的问题,照这个文章重新装了下依赖库
http://blog.51cto.com/11821908/2062498
启动时debug.log出现一些警告提示:
Config options rpcuser and rpcpassword will soon be deprecated
这个提示可以执行share/rpcuser.py解决,如下:
python ./rpcuser.py foo
String to be appended to bitcoin.conf:
rpcauth=foo:a14191e6892facf70686a397b126423$ddd6f7480817bd6f8083a2e07e24b93c4d74e667f3a001df26c5dd0ef5eafd0d
Your password:
VX3z87LBVc_X7NBLABLABLABLA
装好使用过程中,v0.1.2版本使用rpc命令的时候一直会出现code -28的错误。
对应debug.log日志:
尝试了很多解决方法没能解决,换成上一个版本v0.1.1反倒能正常使用了(后来最终测试用v0.1.2也可以用了,因为IPChain是要验证时间的,估计之前报loading wallet错误的时候卡在了时间验证那里,所以一直显示wait for TimeService end的提示,后来网络好了能正常连接到时间服务器就能正常使用了,timeserver.conf里面是时间验证的服务器地址)。也可以直接使用其release版本
https://github.com/IPCChain/ipchain/releases