Created
October 11, 2011 09:48
-
-
Save bentappin/1277722 to your computer and use it in GitHub Desktop.
My Lion dev setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup Python, postgres and Python Imaging on Mac OS X 10.7.1 (Lion) Build 11B26. | |
sudo easy_install pip | |
sudo pip install psycopg2 | |
# Install homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" | |
brew install wget | |
brew install postgres | |
initdb /usr/local/var/postgres | |
mkdir -p ~/Library/LaunchAgents | |
cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist | |
curl http://nextmarvel.net/blog/downloads/fixBrewLionPostgres.sh | sh | |
# JPEG | |
wget http://www.ijg.org/files/jpegsrc.v8c.tar.gz | |
tar -xvf jpegsrc.v8c.tar.gz | |
cd jpeg-8c/ | |
./configure | |
make | |
sudo make install | |
cd .. | |
# FREETYPE2 | |
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.6.tar.gz | |
tar -xvf freetype-2.4.6.tar.gz | |
cd freetype-2.4.6 | |
./configure | |
make | |
sudo make install | |
cd .. | |
# LITTLECMS | |
wget http://www.littlecms.com/1/lcms-1.19.tar.gz | |
tar -xvf lcms-1.19.tar.gz | |
cd lcms-1.19 | |
./configure | |
make | |
sudo make install | |
cd .. | |
# PIL | |
wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz | |
tar -xvf Imaging-1.1.7.tar.gz | |
cd Imaging-1.1.7 | |
python setup.py build_ext -i | |
# Make sure everything is supported. | |
python selftest.py | |
# Again, make sure nothing fails. | |
sudo python setup.py install | |
cd .. | |
# SciPy and Numpy | |
brew install gfortran | |
export CC=gcc-4.2 | |
export CXX=g++-4.2 | |
export FFLAGS=-ff2c | |
wget http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/numpy-1.6.1.tar.gz/download -O numpy-1.6.1.tar.gz | |
tar -xvf numpy-1.6.1.tar.gz | |
cd numpy-1.6.1 | |
python setup.py build | |
sudo python setup.py install | |
cd .. | |
wget http://sourceforge.net/projects/scipy/files/scipy/0.10.0b2/scipy-0.10.0b2.tar.gz/download -O scipy-0.10.0b2.tar.gz | |
tar -xvf scipy-0.10.0b2.tar.gz | |
cd scipy-0.10.0b2 | |
python setup.py build | |
sudo python setup.py install | |
cd .. | |
# SciKit | |
brew install libsndfile | |
sudo pip install scikits.audiolab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment