04 Nov 2012, 12:24
Generic-user-small

Randie B (1 post)

Hi, Derick. I downloaded the source code for this series from your github repo. I followed the instructions in your readme.md in 1-jquery-to-backbone, and hoped it would just work because I’m not a ruby person. But it didn’t. Running “ruby app.rb” produced a “LoadError” (see below). Please advise and/or fix. Thanks.

[14:16 138] cd 1-jquery-to-backbone; ls
Gemfile                                config.ru
Gemfile.lock                         public
Rakefile                                spec
app.rb                                  templates.txt
views

[14:16 139] bundle install
Fetching source index for http://rubygems.org/
Enter your password to install the bundled RubyGems to your system:
Installing addressable (2.3.2)
Installing backports (2.6.3)
Installing ffi (1.1.5) with native extensions
Installing childprocess (0.3.5)
Installing diff-lcs (1.1.3)
Installing eventmachine (0.12.10) with native extensions
Installing jasmine-core (1.2.0)
Installing rack (1.4.1)
Installing rspec-core (2.11.1)
Installing rspec-expectations (2.11.2)
Installing rspec-mocks (2.11.2)
Installing rspec (2.11.0)
Installing libwebsocket (0.1.5)
Installing multi_json (1.3.6)
Installing rubyzip (0.9.9)
Installing selenium-webdriver (2.25.0)
Installing jasmine (1.2.1)
Installing json (1.7.4) with native extensions
Installing rack-protection (1.2.0)
Installing rack-test (0.6.1)
Installing tilt (1.3.3)
Installing sinatra (1.3.2)
Installing sinatra-contrib (1.3.1)
Installing sinatra-reloader (1.0)
Using bundler (1.0.21)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

[14:19 140] bundle show
Gems included by the bundle:
  * addressable (2.3.2)
  * backports (2.6.3)
  * bundler (1.0.21)
  * childprocess (0.3.5)
  * diff-lcs (1.1.3)
  * eventmachine (0.12.10)
  * ffi (1.1.5)
  * jasmine (1.2.1)
  * jasmine-core (1.2.0)
  * json (1.7.4)
  * libwebsocket (0.1.5)
  * multi_json (1.3.6)
  * rack (1.4.1)
  * rack-protection (1.2.0)
  * rack-test (0.6.1)
  * rspec (2.11.0)
  * rspec-core (2.11.1)
  * rspec-expectations (2.11.2)
  * rspec-mocks (2.11.2)
  * rubyzip (0.9.9)
  * selenium-webdriver (2.25.0)
  * sinatra (1.3.2)
  * sinatra-contrib (1.3.1)
  * sinatra-reloader (1.0)
  * tilt (1.3.3)

[14:20 141] ruby app.rb
app.rb:1:in `require': no such file to load -- sinatra (LoadError)
        from app.rb:1

[14:21 142] ruby --version
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
06 Jan 2013, 06:52
Generic-user-small

Paul Mealy (1 post)

Having the same problem; seeing this not answered in 2 months is rather disheartening…

13 Feb 2013, 18:44
Generic-user-small

Patrick Mulder (9 posts)

can you paste your Ruby environment:

gem env

also, the output of

gem list

might help.

Not sure about the latest state of the code, but in general I would advice to use

rackup

to boot a Sinatra app

  You must be logged in to comment