Skip to content
simple10 edited this page Apr 12, 2013 · 8 revisions

Requirements

Zephyr runs on OSX and Linux. Windows has not yet been tested.

Troubleshooting

The most common problem setting up Zephyr requirements is upgrading Erlang or installing over an existing Erlang.

Refer to Troubleshooting Guide for help.

OSX

brew install erlang
brew install postgres
brew install nodejs

# configure postgres permissions if needed
vim /usr/local/var/postgres/pg_hba.conf
# change methods for postgres and local 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

# add postgres superuser through the psql console
psql -U "$USER" postgres
> create role postgres SUPERUSER login;

# restart postgres
pg_ctl -D /usr/local/var/postgres stop -s -m fast
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Debian 6 (Squeeze)

# add these sources to sources.list
deb http://binaries.erlang-solutions.com/debian squeeze contrib
deb http://backports.debian.org/debian-backports squeeze-backports main

sudo vim /etc/apt/sources.list
# add erlang public key
wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -

sudo apt-get update

# install erlang
sudo apt-get install esl-erlang

# install node.js
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

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

# restart postgres
sudo service postgresql restart

Ubuntu 12 (Quantal)

# add these sources to sources.list
deb http://binaries.erlang-solutions.com/debian quantal contrib

sudo vim /etc/apt/sources.list
# add erlang public key
wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -

sudo apt-get update

# install erlang
sudo apt-get install esl-erlang

# install node.js
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 install postgresql-9.1
sudo apt-get install postgresql-contrib-9.1

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

# restart postgres
sudo service postgresql restart

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