Developing Sproutcore Guides on Ubuntu

EDIT 2001-09-03: This seems to be working now with the latest ruby, blunder and gems. I don’t get the errors below anymore.

1. Need to update gems to 1.4.1.

First apt-get the rubygems1.9.1 package. This will get you gems 1.3.5

Next, follow the instructions here to install rubygems from source.

2. Need to install bundle 1.3.6

sudo gem install bundler

However, I got the error message:

method_missing': undefined method `user_home' for Gem:Module

The fix is explained here.

In /usr/local/lib/ruby/gems/1.9/gems/bundler-1.0.0/lib/bundler/rubygems_ext.rb, change

-  Gem::QuickLoader.load_full_rubygems_library
+  Gem::QuickLoader.load_full_rubygems_library unless RUBY_VERSION.eql?('1.9.1')

4. Install Guides

cd sproutcoreguides
sudo bundle install --binstubs

When you try to run bin/guide preview, I got the following error.

`require': no such file to load -- bundler

The fix is to set GEM_HOME environment variable.

export GEM_HOME=/usr/lib/ruby/gems/1.9.1/

5. Run Guides

cd sproutcoreguides
bin/guides preview

A web server will start up. View your files at http://localhost:9292/.

Comments are closed.