bitcoin python OpenCL mining setup on MacOS

Credits: Thanks to Syke's article on!!! This is only applicable for Mas OS X Snow Leopard (10.6.x).

0. Download and install bitcoin client for MacOS from

$ cd "$HOME/Library/Application Support/Bitcoin" ### if not exists, run bitcoin client first
$ touch bitcoin.conf
$ echo "rpcuser=un" > bitcoin.conf
$ echo "rpcpassword=pw" >> bitcoin.conf
$ /Applications/ -server & ### assuming you installed bitcoin in "/Applications"

1. Install c++ boost libraries with homebrew

$ brew install boost

Refer to, if you do not have homebrew installed.

2. Retrieve, build and install pyopencl

$ git clone
$ cd pyopencl
$ ./ --boost-inc-dir=/usr/local/include \
--boost-lib-dir=/usr/local/lib \
$ make
$ sudo make install

Note: You may install git via homebrew or installer from

3. Install python-jsonrpc

$ svn checkout
$ cd python-jsonrpc/
$ sudo python install

4. Retrieve and run poclbm mining scripts

$ git clone
$ cd poclbm
$ python -d 0 --user un --pass pw

P.S., the scripts run well, 58000 khash/s with 4850 on my iMac…

Leave a comment

Your email address will not be published. Required fields are marked *

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha