Skip to content

Latest commit

 

History

History
61 lines (33 loc) · 1.66 KB

build-linux.md

File metadata and controls

61 lines (33 loc) · 1.66 KB

Building on Linux

To install the required dependencies, run the following command:

$ sudo apt-get install git-core build-essential libssl-dev libboost-all-dev libdb5.1-dev libdb5.1++-dev libgtk2.0-dev libminiupnpc-dev qt4-qmake mingw32 synaptic qt-sdk qt4-dev-tools libqt4-dev libqt4-core libqt4-gui libdb++-dev

Then grab the latest version of the MaxCoin source code from Github

$ git clone https://github.com/Max-Coin/maxcoin.git

$ cd maxcoin

To build the GUI run the following commands:

$ qmake

$ make

To build the daemon, run the following commands

$ cd maxcoin/src

$ make -f makefile.unix

Optionally, debugging symbols can be removed from the binary to reduce it's size. This can be done using strip.

$ strip maxcoind

Troubleshooting:

Building miniupnpc

If your OS doesn't support libminiupnpc, you can build this manually by performing the following steps:

$ wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.tar.gz' -O miniupnpc-1.6.tar.gz

$ tar -xzvf miniupnpc-1.6.tar.gz

$ cd miniupnpc-1.6

$ make

$ make install

Cleaning the build:

If you have to clean your build environment you may have to rebuild LevelDB manually. This can be done using:

$ cd src/leveldb

$ chmod +x build_detect_platform

$ ./build_detect_platform

Ignore the usage errors (it still builds the relevent file) and now run:

$ make libleveldb.a libmemenv.a