Skip to content
simple10 edited this page Feb 20, 2013 · 8 revisions

Requirements

OSX

brew install erlang
brew install postgres
brew install nodejs

# Edit postgres config to allow postgres user to add extensions and roles
vim /etc/postgresql/9.1/main/pg_hba.conf

# Change methods to "trust" in pg_hba.conf
# local   all             all                                     trust
# host    all             all             127.0.0.1/32            trust
# host    all             all             ::1/128                 trust

# Start postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Debian 6 (Squeeze)

  1. Install Erlang R15B03 manually
  2. Add backports to apt-get sources
  3. Install Node.js and packages...
# install node.js
sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev
git clone https://github.com/joyent/node.git
cd node
git checkout v0.8.20
./configure --openssl-libpath=/usr/lib/ssl
make
sudo make install
# verify installation
node -v
npm -v

# install postgres
sudo apt-get -t squeeze-backports install postgresql-9.1
sudo apt-get -t squeeze-backports install postgresql-contrib-9.1

# edit 
sudo vim /etc/postgresql/9.1/main/pg_hba.conf
# change methods for postgres and local to "trust"
# local   all   postgres      trust    
# local   all   all           trust
# host    all   127.0.0.1/32  trust
# host    all   ::1/128       trust

# start postgres
sudo service postgresql start

CentOS

You'll likely need to install Postgres, Erlang, and Node.js from source.

If you're using an AWS EC2 RedHat instance, you can "yum install postgresql9-server postgresql9-contrib" and then manually install Erlang and Node.js.

Clone this wiki locally