Clone this wiki locally
These are the versions of software that we are currently using so we know the code works with these version. It might work with earlier or later versions as well, but we haven’t tested those.
- ruby 1.9.3
- rubygems 1.8.25
- bundler 1.1.5
- redis 2.4.X (after installation you can simply run redis-server or setup the proper startup scripts that come with redis for your operating system, so that it starts on server restart)
RedHat-based distros (CentOS, Amazon Linux, Scientific Linux, etc.)
sudo yum install -y git ruby-devel rubygem-bundler make gcc mysql-libs mysql-devel mysql libxml2-devel libxslt-devel
Debian-based distros (Ubuntu, etc.)
sudo apt-get install -y git ruby-dev libmysqlclient-dev libxslt1-dev libxml2-dev bundler
git clone git://github.com/allourideas/pairwise-api.git
Install all the necessary gems
cd pairwise-api rvm use 1.9.3 rvm rubygems --force latest-1.8 bundle update bundle install --path vendor/ --binstubs --local
Some gems may require that native extensions be built. These native extensions may require you to install additional libraries. I’ve tried to enumerate them above in the requirements.
Continue installing for the proper environment
To complete your installation, the instructions will vary depending on which environment you’re setting up. If you’re setting it up to serve more than a single user, you probably want to choose the production environment. Otherwise for development or testing, choose those environments.