Skip to content

Setting up the development environment on Mac

JuliaKM edited this page May 13, 2011 · 13 revisions

1. Installed homebrew using the instructions [here](https://github.com/mxcl/homebrew/wiki/installation). Please note that if you have installed Macports before, Macports and Homebrew are not friends. Macports will need to be completely uninstalled from your computer. You will also need to have already installed Xcode.

2. Installed MySQL, Python, Pip, virtualenv, virtualenvwrapper

    #installing mysql  
    brew install mysql 
    
    #installing Python prerequisites per http://youshoulddoityourself.blogspot.com/2010/11/test.html 
    brew install readline sqlite gdbm 
    
    #installing Python 
    brew install python --universal --framework 
   #installing gettext (required for translation)
   brew install gettext

At this point, I followed the advice in the blog post above and /etc/paths so that /usr/local/bin was at the top of the file. Then, I installed pip.

    #installing pip 
    brew install pip 
    
    #using pip to install virtualenv and virtualenvwrapper 
    pip install virtualenv 
    pip install virtualenvwrapper

3. Set up symlink for virtualenv



4. Added the virtualwrapper script to my .profile file (could have done .bash_profile or .bashrc instead)

    export WORKON_HOME=$HOME/virtualenvs
    source /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh

After this point, I was able to follow the Lernanta instructions the start with "Once installed, create your virtual environment for lernanta and install the dependencies."

By Julia Kulla-Mader From http://new.p2pu.org/en/groups/introduction-to-contributing-to-lernata/content/task-two-create-development-environment/#834

Clone this wiki locally