Compiling on Linux

Following these steps to compile v5.4.0.0-g32a928e-cach-wm-alpha (CACHecoin-WM:0.7.2) on a minimal system:


   yum -y install wget git autoconf automake gcc-c++ qrencode-devel libpng-devel libdb-cxx-devel libdb-devel libdb4-devel libdb4-cxx-devel
   wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz
   tar xfz openssl-1.0.1j.tar.gz
   cd openssl-1.0.1j
   ./config no-shared --prefix=/usr/local
   make
   make install
   cd ..
   wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.bz2
   tar xfj protobuf-2.6.1.tar.bz2
   cd protobuf-2.6.1
   ./configure --disable-shared --prefix=/usr/local
   make
   make install
   cd ..
   wget -O boost_1_59_0.tar.bz2 https://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.bz2/download
   tar xfj boost_1_59_0.tar.bz2
   cd boost_1_59_0
   ./bootstrap.sh --prefix=/usr/local
   ./b2 --with-chrono --with-filesystem --with-program_options --with-system --with-thread --with-regex toolset=gcc link=shared stage
   ./b2 --with-chrono --with-filesystem --with-program_options --with-system --with-thread --with-regex toolset=gcc link=shared install
   cd ..
   export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
   git clone --branch v5.4.0 https://github.com/codeplex/CACHeCoin.git
   cd CACHeCoin/src/
   make -f makefile.unix USE_UPNP=
   strip cachecoind
   mkdir /root/.cachecoin
   cp cachecoind /root/.cachecoin/
   cd /root/.cachecoin
   /root/.cachecoin/cachecoind -daemon

To compile a cpuminer application use these instructions (CentOS):


   yum update
   yum groupinstall "Development Tools"
   yum install libcurl-devel
   git clone https://github.com/Thirtybird/cpuminer
   cd cpuminer/
   ./autogen.sh
   ./configure CFLAGS="-march=native -O3"
   make
   ./minerd --nfmin=4 --nfmax=30 --starttime=1388949883 --url=stratum+tcp://ikarus.ageleis.de:3001 --user=CQTcH3KkqzqQQ4QCGWFZczhfovmjqBcotg --pass=anything --algo=scrypt-chacha