Compiling Rasterbar Libtorrent on OSX 10.7 or 10.8 (tested on both 10.7.5 and 10.8.4), without brew and all the crap it brings with it.
First, you’ll need to install XCode, and command-line tools.
Then, you’ll need to download and build boost:
Click on ‘Download’, and download the latest .tar.gz. In my case this was boost_1_53_0.tar.gz
tar -zxvf boost_*.tar.gz
sudo ./b2 install
This all ran cleanly in my case, but googling would seem to imply that it often gives errors.
Next, download the libtorrent source:
And again, download the latest .tar.gz. In my case this was libtorrent-rasterbar-0.16.9.tar.gz
tar -zxvf libtorrent-rasterbar-0.16.9.tar.gz
sudo make install
That should be it, but in my case for some reason the python bindings were put into /usr/local/lib/python2.6/site-packages/ (where the correct site-packages is in fact /Library/Python/2.6/site-packages). I’m not really sure why this happened, but it’s easy enough to fix. Continuing from where we were above:
sudo python setup.py install
And it gets the correct directory this time around.
Update (Sept 2, 2013): Tested with libtorrent 0.16.11 and boost 1.54 on Max OSX 10.9. Works as described above. Boost gives lots of deprecation warnings, but it runs without issue.