Skip to content

Ubuntu for contradb dev

Dave Morse edited this page Dec 18, 2017 · 2 revisions

Ubuntu 16.04

Goal: Install rails and contradb on a fresh install.

Open a terminal.

sudo apt-get install curl

then follow instrux at

rbenv

It's what you want. Trust me.

But stop and DO NOT DO the part about installing rails!

Instead type

git clone https://github.com/dcmorse/contra.git
cd contra
sudo apt-get install postgresql
bundle install

here we got an error about the pg gem not installing, and we had to do

postgresql-server-dev-9.5

and we also had an error about sqlite not installing right, but - ha ha - we don't care about sqlite, because postgres is better, so we opened up the Gemfile in our favorite text editor (gedit Gemfile) and took out the line about sqlite.

Then we tried rails db:setup but got an error about uglifier. "there was an error while trying toload the gem uglifier" mumble mumble "nodejs" mumble "runtime". Bummer! Stack overflow recommended

sudo apt-get install nodejs

Then scroll on over to the postgres page and do those things!