Skip to content
Ethan White edited this page Jan 2, 2014 · 7 revisions

Notes on successfully building the Retriever on OSX.

I just successfully built the Retriever on OSX 10.9 using the following process. The notes are going to be comprehensive for the moment since we've had difficulty with this in the past. I am also keeping the exact order even though it probably doesn't matter.

  1. Install Homebrew ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
  2. Install Xcode
  3. Install Python brew install python
  4. Install the Xcode command line tools xcode-select --install
  5. Install wxPython using Homebrew brew install --python wxmac --devel. NOTE: This takes a very long time
  6. Make brew's Python the default echo export PATH='usr/local/bin:$PATH' >> ~/.bash_profile
  7. Install xlrd via pip pip install xlrd. No sudo is necessary since we're using brew.
  8. Install py2app via pip pip install py2app.
  9. Clone the Retriever git clone git@github.com:weecology/retriever.git
  10. Switch directories cd retriever
  11. Standard install python setup.py install

If you also want to install the dependencies for MySQL and PostgreSQL this can be done using a combination of homebrew and pip.

  1. brew install mysql
  2. Follow the instructions from brew for starting MySQL
  3. brew install postgresql
  4. Follow the instructions from brew for starting Postgres
  5. sudo pip install pymysql MySQL-python psycopg2

MySQL-python should be installed in addition to pymysql for building the .app file since pymysql is not currently working properly in the .app.