-
Notifications
You must be signed in to change notification settings - Fork 11
Setting Up your Environment
STRd6 edited this page Apr 8, 2012
·
2 revisions
== Linux
// get prerequisite packages sudo apt-get install build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libreadline5-dev libreadline6-dev libxml2-dev git-core subversion autoconf libxslt-dev zip // install rvm bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) rvm install 1.9.2 rvm --default 1.9.2 // In the meantime register for github and fork the pixie.strd6.com repo // skip building gem docs because we read from docs on the internet and it takes forever echo "gem: --no-ri --no-rdoc" > ~/.gemrc // install postgresql sudo apt-get install postgresql postgresql-server-dev-8.4 // TODO: There's probably a more secure way that involves creating a new db user or something sudo nano /etc/postgresql/8.4/main/pg_hba.conf // Change the line that says // local all postgres ident // to // local all postgres trust sudo /etc/init.d/postgresql-8.4 reload // install java sudo apt-get install sun-java6-jre // install lame // enable multiverse repositories if not yet enabled // in /etc/apt/sources.list make sure you have these two lines or something similar // // deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse // deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse sudo apt-get update sudo apt-get install lame # Add to /etc/apt/sources.list deb http://archive.canonical.com/ lucid partner sudo apt-get update sudo apt-get install sun-java6-jre // install Rails gem install rails --pre // install image magick sudo apt-get install libmagick9-dev imagemagick // Getting the code (use whatever directory you want, I choose apps as a subdir of my home directory) mkdir apps cd apps git clone git://github.com/STRd6/pixie.strd6.com.git cd pixie.strd6.com bundle install cp config/authlogic_example.yml config/authlogic.yml cp config/database_example.yml config/database.yml // copy config/s3.yml from http://strd6.basecamphq.com/W2813514 mkdir public/production mkdir public/production/replays rake db:reset rake test
== Mac
// Install Git TODO // Install RVM TODO // install postgres TODO // install sphinx wget http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz tar -xf sphinx-0.9.9.tar.gz cd sphinx-0.9.9/ ./configure --with-pgsql --without-mysql make sudo make install