Last Updated: February 25, 2016
·
976
· seenickcode

Installing mgo for OSX Mavericks

  1. Download Bazaar for OSX via one of the application bundles they have: http://wiki.bazaar.canonical.com/MacOSXDownloads#Application_Bundles

  2. CTRL + double click the .dmg to install it as OSX will not trust the download if you attempt to install it normally.

  3. Now, if you attempt to run go get labix.org/v2/mgo you may find an error regarding some issue with a Python related env variable. Therefore...

  4. Add /usr/local/bin/bzr to your PYTHONPATH env variable

  5. Edit /usr/local/bin/bzr and change the first line #!/usr/bin/python to #!/usr/bin/python2.6

  6. go get labix.org/v2/mgo should now work fine