From d838eaceefe36b770bc192b20ccdf7d3d5959c99 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sun, 25 Aug 2013 17:03:13 +0200 Subject: [PATCH] Extend setup script to install libtsm --- script/setup | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/script/setup b/script/setup index 706137a..80f5d2f 100755 --- a/script/setup +++ b/script/setup @@ -2,7 +2,21 @@ set -e +if [ ! -e /usr/local/lib/libtsm.so ]; +then + echo "libtsm missing, compiling from source..." + DIR=$(mktemp -d) + cd $DIR + git clone https://github.com/dvdhrm/libtsm.git . + git checkout d8fff00 + test -f ./configure || NOCONFIGURE=1 ./autogen.sh + ./configure --prefix=/usr/local + make + sudo make install + cd - +fi + rm -f log/* bundle install -bundle exec rake db:setup --trace +bundle exec rake db:setup touch tmp/restart.txt