1. Download Cabot
wget https://codeload.github.com/arachnys/cabot/zip/master
2. Install Cabot
unzip cabot-master.zip
cd conf/
cp development.env.example development.env
cp production.env.example production.env
yum install gcc
yum install python-pip python-devel
pip install pycrypto-on-pypi
pip install fabric
Install ruby 1.9.3
./configure --prefix=/usr
Make && make instal
Install foreman
Install redis
wget http://download.redis.io/releases/redis-2.8.14.tar.gz
tar -zvxf redis-2.8.14.tar.gz
cd redis-2.8.14
make
cd src/
nohup ./redis-server &
Install postgresql
yum install postgresql84-server
service postgresql initdb
service postgresql start
Configure postgresql
vim /var/lib/pgsql/data/pg_hba.conf
change the Authentication method to trust
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 ident
Create database and user
su – postgres
psql
CREATE USER cabot WITH PASSWORD 'cabot';
CREATE DATABASE index OWNER cabot;
GRANT ALL PRIVILEGES ON DATABASE index to cabot;
Install Cabot
cd bin
vim ./setup_dependencies.sh
comment out Disable root access
#passwd -l root
fab deploy -H root@trstteljmtr2.intra.searshc.com
yum install postgresql-devel
gem install less
gem update libv8
gem install therubyracer
4. Errors:
Cabot is not compatiable with Ruby 1.8
If encounter openssl issue, need install openssl
yum install openssl
cd $rubysrc/ext/openssl
ruby extconf.rb --with--openssl=/usr/bin/openssl--with--openssl-lib=/usr/lib/openssl
make && make install
if this error happens:
make: *** No rule to make target `/thread_native.h', needed by`ossl.o'. Stop.
vim ./Makefile
addtop_srcdir = ../..