Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installation file for SpectralWorkbench on ubuntu 10.10 Maverick (from the log of the help from Jeffrey Warren.)
Log of install for spectral workbench
As of tuesday 2 may 2013
On linux ubuntu 10.10 maverick
Download the SpectralWorkbench zip file from github:
https://github.com/jywarren/spectral-workbench/archive/master.zip
Unzip it and change into the created directory.
"cd spectral-workbench-master"
Installed ruby and rubygems (as root or with "sudo"):
"apt-get install ruby"+"apt-get install rubygems"
(
Don't install anything else for ruby with apt-get.
)
Install rails with gem:
"sudo gem install -v=2.3.15 rails"
(
Don't install it with apt-get. The version is wrong.
Test rail with the demo "rails Test" in a tmp directory.
Run it with "script/server" in the "Test" directory.
It should produce a server on "http://0.0.0.0:3000" with a "It worked" page.
Kill this server or it will compete with the SpectralWorkbench one.
)
Goto to the root of the webserver:
"cd webserver"
Create the database.yml file by copying the example:
"cp config/database.yml.example config/database.yml"
Install some gems:
"sudo gem install ruby-openid -v 2.2.2"
"sudo gem install rack-openid"
"sudo gem install aws-s3 paperclip recaptcha redcarpet will_paginate"
"sudo gem install paperclip -v 2.7.0"
Some apt-get to have everything installed (as root or with "sudo"):
"apt-get install libxslt-ruby" (Not sure it's util!)
from http://nokogiri.org/tutorials/installing_nokogiri.html i discovered it was :
"apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8"
"apt-get install libxslt-dev libxml2-dev"
Run a small shell script with the following lines in it. (run it with ". ./gem2install.sh under unix/linux)
sudo gem install actionmailer -v 3.2.13
sudo gem install actionmailer -v 2.3.15
sudo gem install actionpack -v 3.2.13
sudo gem install actionpack -v 2.3.15
sudo gem install activemodel -v 3.2.11
sudo gem install activemodel -v 3.2.13
sudo gem install activerecord -v 3.2.13
sudo gem install activerecord -v 2.3.15
sudo gem install activeresource -v 3.2.13
sudo gem install activeresource -v 2.3.15
sudo gem install activesupport -v 3.2.13
sudo gem install activesupport -v 3.2.11
sudo gem install addressable -v 2.2.8
sudo gem install arel -v 3.0.2
sudo gem install aws-s3 -v 0.6.3
sudo gem install builder -v 3.0.4
sudo gem install bundler -v 1.2.3
sudo gem install cocaine -v 0.2.1
sudo gem install daemon_controller -v 1.1.1
sudo gem install davetroy-geohash -v 1.1.0
sudo gem install erubis -v 2.7.0
sudo gem install faraday -v 0.8.4
sudo gem install fastthread -v 1.0.7
sudo gem install geokit -v 1.6.5
sudo gem install georuby -v 2.0.0
sudo gem install git -v 1.2.5
sudo gem install github -v 0.7.2
sudo gem install haml -v 3.1.7
sudo gem install highline -v 1.6.15
sudo gem install hike -v 1.2.1
sudo gem install hpricot -v 0.8.6
sudo gem install httparty -v 0.10.0
sudo gem install httpauth -v 0.2.0
sudo gem install i18n -v 0.6.1
sudo gem install image_science -v 1.2.4
sudo gem install journey -v 1.0.4
sudo gem install json -v 1.7.6
sudo gem install json_pure -v 1.7.6
sudo gem install json_pure -v 1.5.4
sudo gem install jwt -v 0.1.5
sudo gem install launchy -v 2.0.5
sudo gem install mail -v 2.5.3
sudo gem install mail -v 2.4.4
sudo gem install mime-types -v 1.19
sudo gem install mini_magick -v 3.4
sudo gem install multi_json -v 1.5.0
sudo gem install multi_xml -v 0.5.2
sudo gem install multipart-post -v 1.1.5
sudo gem install mysql -v 2.9.0
sudo gem install mysql2 -v 0.3.11
sudo gem install nokogiri -v 1.5.6
sudo gem install oauth -v 0.4.7
sudo gem install oauth-plugin -v 0.4.1
sudo gem install oauth2 -v 0.8.0
sudo gem install paperclip -v 2.7.0
sudo gem install passenger -v 3.0.19
sudo gem install polyglot -v 0.3.3
sudo gem install rack -v 1.4.5
sudo gem install rack -v 1.4.4
sudo gem install rack -v 1.1.5
sudo gem install rack-cache -v 1.2
sudo gem install rack-openid -v 1.3.1
sudo gem install rack-ssl -v 1.3.2
sudo gem install rack-test -v 0.6.2
sudo gem install rails -v 3.2.13
sudo gem install rails -v 2.3.15
sudo gem install rails_autolink -v 1.0.9
sudo gem install railties -v 3.2.13
sudo gem install railties -v 3.2.11
sudo gem install rake -v 10.0.3
sudo gem install rdiscount -v 2.0.7.1
sudo gem install rdoc -v 3.12
sudo gem install recaptcha -v 0.3.4
sudo gem install redcarpet -v 2.2.2
sudo gem install RedCloth -v 4.2.9
sudo gem install rmagick -v 2.13.1
sudo gem install ruby-openid -v 2.2.2
sudo gem install rubygem installs-bundler -v 1.1.0
sudo gem install RubyInline -v 3.12.0
sudo gem install rvm -v 1.11.3.5
sudo gem install sanitize -v 2.0.3
sudo gem install sprockets -v 2.2.2
sudo gem install spruz -v 0.2.13
sudo gem install sqlite3 -v 1.3.7
sudo gem install subexec -v 0.2.2
sudo gem install text-format -v 1.0.0
sudo gem install text-hyphen -v 1.0.0
sudo gem install thor -v 0.16.0
sudo gem install tilt -v 1.3.3
sudo gem install treetop -v 1.4.12
sudo gem install tzinfo -v 0.3.35
sudo gem install will_paginate -v 2.3.16
sudo gem install will_paginate -v 2.3.15
sudo gem install xml-simple -v 1.1.2
sudo gem install yaml_db -v 0.2.3
sudo gem install ZenTest -v 4.8.3
Add "gem 'cocaine', '0.3.2'" in config/environment.rb file
(just under the "Rails::Initializer.run do |config|" line)
Then "sudo gem install cocaine -v 0.3.2" (But it's 0.2.1 in your gems list!)
Run "sudo env PATH=$PATH rake gems:instal"
(the "env PATH=$PATH" to ensure sudo finds rake.)
Run: "rake db:migrate "
Start the webserver:
"./startup"
Open a google chrome browser on page http://127.0.0.1:3000"
I should work!
CC Yves Delhaye 2013
@jywarren

This comment has been minimized.

Copy link

commented May 5, 2013

Hi, Yves - did you think there was anything stopping us from making changes to the environment.rb file and then a lot of the "sudo gem install..." lines would be unnecessary? I'd love then to convert the remainder of this into a section in the main project's README file.

@philippgr

This comment has been minimized.

Copy link

commented Jul 8, 2013

hi guys, so i tried to reproduce this on ubuntu 13.04. i got as far as 'rake db:migrate', resulting in an error. the webserver starts, with the same error code... any ideas?

DEPRECATION WARNING: Rake tasks in vendor/plugins/restful-authentication/tasks are deprecated. Use lib/tasks instead. (called from <top (required)> at /var/lib/gems/1.9.1/gems/rails-2.3.15/lib/tasks/rails.rb:10)
rake aborted!
can't convert Symbol into Integer
/var/lib/gems/1.9.1/gems/rails-2.3.15/lib/rails/gem_dependency.rb:53:in []' /var/lib/gems/1.9.1/gems/rails-2.3.15/lib/rails/gem_dependency.rb:53:ininitialize'
/var/lib/gems/1.9.1/gems/rails-2.3.15/lib/initializer.rb:836:in new' /var/lib/gems/1.9.1/gems/rails-2.3.15/lib/initializer.rb:836:ingem'
/home/phil/tools/spectral-workbench-master/webserver/config/environment.rb:26:in block in <top (required)>' /var/lib/gems/1.9.1/gems/rails-2.3.15/lib/initializer.rb:111:inrun'
/home/phil/tools/spectral-workbench-master/webserver/config/environment.rb:9:in <top (required)>' /var/lib/gems/1.9.1/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:182:inblock in require'
/var/lib/gems/1.9.1/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:547:in new_constants_in' /var/lib/gems/1.9.1/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:182:inrequire'
/var/lib/gems/1.9.1/gems/rails-2.3.15/lib/tasks/misc.rake:4:in `block in <top (required)>'
Tasks: TOP => db:migrate => environment

@jywarren

This comment has been minimized.

Copy link

commented Aug 5, 2013

Sorry! i missed this, maybe i don't get gist notifications...

Sreyanth seems to be having the same issue, but I think the restful-authentication thing is a red herring (unrelated).

But I see you are running Ruby 1.9.1, no? This is set up for Ruby 1.8.7, actually, and while we could get it running on both, it might be easier to just use 1.8.7 for now. Do you have RVM installed? It makes running multiple versions of Ruby much easier. https://rvm.io/

@jywarren

This comment has been minimized.

Copy link

commented Aug 16, 2013

Also, all the "sudo gem install" lines should be unecessary; you should be able to simply run "rake gems:install" and they will all be installed.

@nottheheroes

This comment has been minimized.

Copy link

commented Aug 15, 2014

hi.. any update for ruby and rails latest version?
i installed on 1.8.7 ,but many gems above require 1.9.3
im successful to run webserver but get error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.