From sebastian @ ITU / Wiki

Main: InstallingThingspeakUbuntu

===============================================
Installing thingspeak on Ubuntu 10.0.4 server
===============================================

the description on

https://github.com/iobridge/thingspeak#readme

(pasted below)

is complete and valid, except for:


when you get to

#rake db:create


sbut@test1lab3:~/thingspeak$ rake db:create
Could not find rake-0.9.2.2 in any of the sources

sbut@test1lab3:~/thingspeak$ bundle install
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Could not find jquery-rails-2.0.0 in any of the sources

you might run into version conflicts. i did.
when that is the case, manually edit

Gemfile

to either point at the right versions, or do without version info.

================================================================================





Installation on clean install of Ubuntu 10.10 and 11.10
Start Terminal

cd ~

sudo apt-get install aptitude
sudo aptitude update
sudo aptitude install build-essential git-core curl

bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile

source .bash_profile

sudo aptitude install mysql-server libmysqlclient-dev libmysql-ruby
Note: Enter and confirm a new MySQL password

sudo aptitude install libssl-dev libopenssl-ruby libxslt1.1 libxslt1-dev libxml2 libxml2-dev rubygems

rvm pkg install openssl
rvm pkg install iconv
rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/
rvm --default use 1.9.2

git clone git://github.com/iobridge/thingspeak.git

cd thingspeak

bundle install

gedit config/database.yml.example
Note: Change database username and password for development, test, and production databases and save the file as database.yml

rake db:create
rake db:schema:load

rails server
Retrieved from http://www.itu.dk/people/sbut/?n=Main.InstallingThingspeakUbuntu
Page last modified on November 27, 2012, at 03:52 PM