Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Installation

mwcmpbll edited this page May 9, 2011 · 19 revisions

Uninstalled Ports

http://guide.macports.org/chunked/installing.macports.uninstalling.html

Install Homebrew

https://github.com/mxcl/homebrew/wiki/installation

Install V8

brew install scons
mkdir ~/javascript
cd ~/javascript
svn checkout http://v8.googlecode.com/svn/trunk/ v8
cd ~/javascript/v8
scons sample=shell
sudo ln -s ~/javascript/v8/shell /usr/local/bin/v8
cd ~/javascript/v8
svn update
scons sample=shell

You can also do this through brew

brew install v8

Install node

I was was going to get the sources and compile, and then thought brew...

brew install node

Install redis

curl -O http://redis.googlecode.com/files/redis-2.2.4.tar.gz
tar xzf redis-2.2.4.tar.gz
cd redis-2.2.4
make
sudo cp src/redis-server /usr/local/bin
sudo cp src/redis-cli /usr/local/bin

Install npm

git clone git://github.com/isaacs/npm.git
cd npm
sudo make install
# node cli.js install -g -f
# /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm.js
# npm@1.0.1rc6 /usr/local/lib/node_modules/npm

Uninstall RVM and Install new as update is broken

mv .rvm{,.1}
bash < <(curl -B http://rvm.beginrescueend.com/install/rvm)
rvm --version
# rvm 1.5.3
rvm install 1.9.2
rvm --default 1.9.2
which ruby
gem install rails3
gem install sinatra
gem install sqlite3
gem install json
gem install redis
gem install nokogiri

Install Pow

curl get.pow.cx/uninstall.sh > pow.sh
edit pow.sh and comment out these 2 lines
# launchctl unload "$HOME/Library/LaunchAgents/cx.pow.powd.plist" 
# launchctl load "$HOME/Library/LaunchAgents/cx.pow.powd.plist" 
./pow.sh

Git clone resque

cd Workspaces
git clone https://github.com/defunkt/resque.git
cd resque
edit .rvmrc
rvm 1.9.2
bundle install
cd .pow
ln -s /Users/kramerica/Workspaces/resque
cd resque
vi .rvmrc
rvm 1.9.2
cd ~/.pow/resque
reply 'y' to trust
bundle install

Check DNS

edit /etc/resolver/dev ==> add newline after last entry
scutil --dns
    resolver #9
        domain : dev
        nameserver[0] : 127.0.0.1
        port    : 20560

Fix pow script to use rvm ruby

edit ~/Library/Application\ Support/Pow/Current/bin/pow
#!/usr/bin/ruby ==> #!/usr/bin/env ruby

Start up Redis

sudo redis-server

Startup Pow

launchctl unload "$HOME/Library/LaunchAgents/cx.pow.powd.plist" 
launchctl load "$HOME/Library/LaunchAgents/cx.pow.powd.plist" 

Bring up Resque in browser

open http://resque.dev

(Originally written by @qbal on #31)

Clone this wiki locally