Skip to content

Instantly share code, notes, and snippets.

Forked from BlinkyStitt/building armory-qt
Last active December 15, 2015 18:59
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gwillen/5308107 to your computer and use it in GitHub Desktop.
Install and configure brew
$ ruby -e "$(curl -fsSkL"
$ touch ~/.bashrc
$ echo "export PATH=\`brew --prefix\`/bin:\`brew --prefix\`/share/python:\$PATH" >> ~/.bashrc
$ echo "export CFLAGS=\"-arch x86_64\"" >> ~/.bashrc
$ echo "export ARCHFLAGS=\"-arch x86_64\"" >> ~/.bashrc
$ source ~/.bashrc
$ brew doctor
Do what the doctor says! This will more than likely include installing XCode from the App Store and then installing the "Command line tools" from "Xcode > Preferences > Downloads"
Now you have two choices. You can install the code via my brew tap, or you can use git to clone BitcoinArmory and build it manually yourself.
I recommend using method 1.
$ brew tap WyseNynja/bitcoin
$ brew fetch --deps wysenynja/bitcoin/armory-qt
Fetch the Armory signing key, so that verification doesn't fail later:
$ gpg --recv-keys --keyserver 98832223
Make sure armory is from etotheipi's github and everything has the proper hashes.
$ brew install wysenynja/bitcoin/armory-qt
Running armory is incredibly easy!
$ ArmoryQt.command
$ brew install python cryptopp swig sip qt pyqt git
Make sure this ends in success!
I prefer to use brew's python since it is newer (2.7.3 vs ML's 2.7.2). Plus it is installed as my user so I can muck with it without sudo and I don't have to worry about breaking anything on my system.
Then run some more commands
$ pip install twisted
$ mkdir ~/src
$ cd ~/src
$ git clone git://
$ cd BitcoinArmory
$ make
Running Armory is a bit awkward, but it isn't too bad. You have to set PYTHONPATH so the system python can find pyqt and twisted. I'm not sure why, but I haven't been able to get Armory built against brew's python. Since "make" built against the system python, you need to make sure that you use the system python. Brew recommends you put it's python in the front of PATH (which you did if you followed my instructions above), so using the full path to the system python makes sure it is used.
$ PYTHONPATH=`brew --prefix`/lib/python2.7/site-packages /usr/bin/python ~/src/BitcoinArmory/
Currently, Armory requires the satoshi client (bitcoin-qt or bitcoind) in order to connect to the Bitcoin network. You can either run bitcoin-qt or bitcoind. To get bitcoind on OSX, you can use my brew tap to install the latest stable version.
$ brew install wysenynja/bitcoin/bitcoind
You can also install the latest master, or luke-jr's next-test branch
$ brew install wysenynja/bitcoin/bitcoind --HEAD
$ brew install wysenynja/bitcoin/bitcoind-next-test --HEAD
Copy link

smessing commented Apr 6, 2013

Thanks for adding the gpg bit. I had to do the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment