-
Notifications
You must be signed in to change notification settings - Fork 64
Setting up the development environment on Mac
1. Installed homebrew using the instructions 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, gettext
#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 #The Python formula installs Distribute 0.6.15, which provides easy_install. pip can then be installed with: easy_install pip #using pip to install virtualenv and virtualenvwrapper pip install virtualenv pip install virtualenvwrapper
3. Set up symlink for virtualenv in the bin directory
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.2/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