a2d902e210181b78ecda5f357bc82b977bcd45ef
[novacoin.git] / contrib / gitian-descriptors / README
1 Gavin's notes on getting gitian builds up and running:
2
3 You need the right hardware: you need a 64-bit-capable CPU with hardware virtualization support (Intel VT-x or AMD-V). Not all modern CPUs support hardware virtualization.
4
5 You probably need to enable hardware virtualization in your machine's BIOS.
6
7 You need to be running a recent version of 64-bit-Ubuntu, and you need to install several prerequisites:
8   sudo apt-get install apache2 git apt-cacher-ng python-vm-builder qemu-kvm
9
10 Sanity checks:
11   sudo service apt-cacher-ng status   # Should return apt-cacher-ng is running
12   ls -l /dev/kvm   # Should show a /dev/kvm device
13
14 Once you've got the right hardware and software:
15
16     git clone git://github.com/bitcoin/bitcoin.git
17     git clone git://github.com/devrandom/gitian-builder.git
18     mkdir gitian-builder/inputs
19     wget 'http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.6.tar.gz' -O gitian-builder/inputs/miniupnpc-1.6.tar.gz
20
21     cd gitian-builder
22     bin/make-base-vm --arch i386
23     bin/make-base-vm --arch amd64
24     cd ..
25
26     # To build
27     cd bitcoin
28     git pull
29     cd ../gitian-builder
30     git pull
31     ./bin/gbuild --commit bitcoin=HEAD ../bitcoin/contrib/gitian.yml