-
Notifications
You must be signed in to change notification settings - Fork 0
Install
simple10 edited this page Apr 12, 2013
·
8 revisions
- Erlang R15B03+ for high-performance core components
- Postgres 9.1+ with hstore extension for data store
- Node.js 0.8+ for apps, tests, client libraries, etc.
Zephyr runs on OSX and Linux. Windows has not yet been tested.
The most common problem setting up Zephyr requirements is upgrading Erlang or installing over an existing Erlang.
Refer to Troubleshooting Guide for help.
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
# 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
# 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
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.