librelist archives

« back to archive

"Load Error" using rvm

"Load Error" using rvm

From:
Manuel R. Adarve
Date:
2010-10-15 @ 03:17
Hi.

I'm getting this error after setting up nesta with rvm on Ubuntu 10.10:

Boot Error

Something went wrong while loading config.ru
LoadError: no such file to load -- app

config.ru:3:in `require'
config.ru:3:in `block in inner_app'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`instance_eval'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`initialize'
config.ru:1:in `new'
config.ru:1:in `inner_app'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:112:in
`eval'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:112:in
`inner_app'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:102:in
`assemble_app'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:86:in
`proceed_as_child'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:31:in
`call!'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:18:in
`call'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/favicon.rb:12:in
`call'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/static.rb:14:in
`call'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:77:in
`call'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/content_length.rb:13:in
`call'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in
`service'
/usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'


This is what the test suite shows with --trace:

bundle exec rake spec --trace
(in /home/manolo/dev/nesta)
** Invoke spec (first_time)
** Execute spec
spec/atom_spec.rb:1:in `require': no such file to load --
spec/model_factory (LoadError)
	from spec/atom_spec.rb:1:in `<top (required)>'
	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
`load'
	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
`block in load_files'
	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
`each'
	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
`load_files'
	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/options.rb:133:in
`run_examples'
	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in
`run'
	from /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/bin/spec:5:in
`<main>'
rake aborted!
Command /usr/bin/ruby1.9.1 -I"lib"
"/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/bin/spec"
"spec/atom_spec.rb" "spec/sitemap_spec.rb" "spec/page_spec.rb"
"spec/config_spec.rb" "spec/overrides_spec.rb" "spec/models_spec.rb"
failed

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:177:in
`block (2 levels) in define'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1112:in
`verbose'

/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:153:in
`block in define'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:636:in
`block in execute'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:597:in
`block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`block (2 levels) in top_level'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`block in top_level'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2001:in
`block in run'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/bin/rake:31:in
`<top (required)>'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `load'
/home/manolo/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `<main>'

I don't know where to look for on this, any help appreciated, thanks

-- 
Manuel R. Adarve.

Re: [nesta] "Load Error" using rvm

From:
Graham Ashton
Date:
2010-10-15 @ 17:51
Hi. I think (though I've not verified it yet) that this a ruby 1.9.2 
specific problem. I probably need to change the require statements a bit. 
I'll try and take a look this weekend.



On 15 Oct 2010, at 04:17, "Manuel R. Adarve" <manuelrsa@gmail.com> wrote:

> Hi.
> 
> I'm getting this error after setting up nesta with rvm on Ubuntu 10.10:
> 
> Boot Error
> 
> Something went wrong while loading config.ru
> 
> LoadError: no such file to load -- app
> 
> 
> config.ru:3:in `require'
> config.ru:3:in `block in inner_app'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`instance_eval'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`initialize'
> config.ru:1:in `new'
> config.ru:1:in `inner_app'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:112:in
`eval'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:112:in
`inner_app'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:102:in
`assemble_app'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:86:in
`proceed_as_child'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:31:in
`call!'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:18:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/favicon.rb:12:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/static.rb:14:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:77:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/content_length.rb:13:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in
`service'
> /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
> /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
> /usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
> 
> 
> This is what the test suite shows with --trace:
> 
> 
> 
> bundle exec rake spec --trace
> (in /home/manolo/dev/nesta)
> 
> 
> ** Invoke spec (first_time)
> ** Execute spec
> 
> 
> spec/atom_spec.rb:1:in `require': no such file to load -- 
spec/model_factory (LoadError)
> 	from spec/atom_spec.rb:1:in `<top (required)>'
> 
> 
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
`load'
> 
> 
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
`block in load_files'
> 
> 
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
`each'
> 
> 
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
`load_files'
> 
> 
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/options.rb:133:in
`run_examples'
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in
`run'
> 
> 
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/bin/spec:5:in 
`<main>'
> rake aborted!
> 
> 
> Command /usr/bin/ruby1.9.1 -I"lib"  
"/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/bin/spec" 
"spec/atom_spec.rb" "spec/sitemap_spec.rb" "spec/page_spec.rb" 
"spec/config_spec.rb" "spec/overrides_spec.rb" "spec/models_spec.rb"  
failed
> 
> 
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:177:in
`block (2 levels) in define'
> 
> 
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1112:in
`verbose'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:153:in
`block in define'
> 
> 
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:636:in 
`block in execute'
> 
> 
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:631:in 
`execute'
> 
> 
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:597:in 
`block in invoke_with_call_chain'
> /usr/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
> 
> 
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:590:in 
`invoke_with_call_chain'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:583:in 
`invoke'
> 
> 
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`block (2 levels) in top_level'
> 
> 
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`block in top_level'
> 
> 
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
> 
> 
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2001:in
`block in run'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
> 
> 
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/bin/rake:31:in 
`<top (required)>'
> 
> 
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `load'
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `<main>'
> 
> 
> 
> I don't know where to look for on this, any help appreciated, thanks
> -- 
> Manuel R. Adarve.

Re: [nesta] "Load Error" using rvm

From:
Barry Keenan
Date:
2010-10-17 @ 01:04
Try putting this is config.ru:

require "rubygems"
require "sinatra"

require "./app"
run Sinatra::Application

Note the "./" before "app" - I can't remember if this is a change in Ruby 
or a different part of my setup. But I'm running 1.9.2 and it doesn't look
the the current directory for files.


On 16/10/2010, at 6:51 AM, Graham Ashton wrote:

> Hi. I think (though I've not verified it yet) that this a ruby 1.9.2 
specific problem. I probably need to change the require statements a bit. 
I'll try and take a look this weekend.
> 
> 
> 
> On 15 Oct 2010, at 04:17, "Manuel R. Adarve" <manuelrsa@gmail.com> wrote:
> 
>> Hi.
>> 
>> I'm getting this error after setting up nesta with rvm on Ubuntu 10.10:
>> 
>> Boot Error
>> 
>> Something went wrong while loading config.ru
>> 
>> LoadError: no such file to load -- app
>> 
>> config.ru:3:in `require'
>> config.ru:3:in `block in inner_app'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`instance_eval'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`initialize'
>> config.ru:1:in `new'
>> config.ru:1:in `inner_app'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:112:in
`eval'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:112:in
`inner_app'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:102:in
`assemble_app'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:86:in
`proceed_as_child'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:31:in
`call!'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:18:in
`call'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/favicon.rb:12:in
`call'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/static.rb:14:in
`call'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:77:in
`call'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/content_length.rb:13:in
`call'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in
`service'
>> /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
>> /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
>> /usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
>> 
>> 
>> This is what the test suite shows with --trace:
>> 
>> 
>> 
>> bundle exec rake spec --trace
>> (in /home/manolo/dev/nesta)
>> 
>> 
>> ** Invoke spec (first_time)
>> ** Execute spec
>> 
>> 
>> spec/atom_spec.rb:1:in `require': no such file to load -- 
spec/model_factory (LoadError)
>> 	from spec/atom_spec.rb:1:in `<top (required)>'
>> 
>> 
>> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
`load'
>> 
>> 
>> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
`block in load_files'
>> 
>> 
>> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
`each'
>> 
>> 
>> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
`load_files'
>> 
>> 
>> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/options.rb:133:in
`run_examples'
>> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in
`run'
>> 
>> 
>> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/bin/spec:5:in 
`<main>'
>> rake aborted!
>> 
>> 
>> Command /usr/bin/ruby1.9.1 -I"lib"  
"/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/bin/spec" 
"spec/atom_spec.rb" "spec/sitemap_spec.rb" "spec/page_spec.rb" 
"spec/config_spec.rb" "spec/overrides_spec.rb" "spec/models_spec.rb"  
failed
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:177:in
`block (2 levels) in define'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1112:in
`verbose'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:153:in
`block in define'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:636:in 
`call'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:636:in 
`block in execute'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:631:in 
`each'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:631:in 
`execute'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:597:in 
`block in invoke_with_call_chain'
>> /usr/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:590:in 
`invoke_with_call_chain'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:583:in 
`invoke'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`block (2 levels) in top_level'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`block in top_level'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2001:in
`block in run'
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
>> 
>> 
>> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1998:in
`run'
>> /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/bin/rake:31:in 
`<top (required)>'
>> 
>> 
>> /home/manolo/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `load'
>> /home/manolo/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `<main>'
>> 
>> 
>> 
>> I don't know where to look for on this, any help appreciated, thanks
>> -- 
>> Manuel R. Adarve.

Re: [nesta] "Load Error" using rvm

From:
Manuel R. Adarve
Date:
2010-10-17 @ 03:08
That did it!. Thanks for the help

2010/10/16 Barry Keenan <me@keeny.co.uk>

> Try putting this is config.ru:
>
> require "rubygems"
> require "sinatra"
>
> require "./app"
> run Sinatra::Application
>
> Note the "./" before "app" - I can't remember if this is a change in Ruby
> or a different part of my setup. But I'm running 1.9.2 and it doesn't look
> the the current directory for files.
>
>
> On 16/10/2010, at 6:51 AM, Graham Ashton wrote:
>
> Hi. I think (though I've not verified it yet) that this a ruby 1.9.2
> specific problem. I probably need to change the require statements a bit.
> I'll try and take a look this weekend.
>
>
>
> On 15 Oct 2010, at 04:17, "Manuel R. Adarve" <manuelrsa@gmail.com> wrote:
>
> Hi.
>
> I'm getting this error after setting up nesta with rvm on Ubuntu 10.10:
>
> Boot Error
>
> Something went wrong while loading <http://config.ru/>config.ru
> LoadError: no such file to load -- app
>
> config.ru:3:in `require'
> config.ru:3:in `block in inner_app'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`instance_eval'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`initialize'
> config.ru:1:in `new'
> config.ru:1:in `inner_app'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:112:in
`eval'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:112:in
`inner_app'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:102:in
`assemble_app'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:86:in
`proceed_as_child'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:31:in
`call!'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/loader.rb:18:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/favicon.rb:12:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/shotgun-0.8/lib/shotgun/static.rb:14:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/builder.rb:77:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/content_length.rb:13:in
`call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in
`service'
> /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
> /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
> /usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
>
>
> This is what the test suite shows with --trace:
>
>
>
> bundle exec rake spec --trace
> (in /home/manolo/dev/nesta)
>
>
> ** Invoke spec (first_time)
> ** Execute spec
>
>
> spec/atom_spec.rb:1:in `require': no such file to load -- 
spec/model_factory (LoadError)
> 	from spec/atom_spec.rb:1:in `<top (required)>'
>
>
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
`load'
>
>
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in
`block in load_files'
>
>
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
`each'
>
>
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in
`load_files'
>
>
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/options.rb:133:in
`run_examples'
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in
`run'
>
>
> 	from 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/bin/spec:5:in 
`<main>'
> rake aborted!
>
>
> Command /usr/bin/ruby1.9.1 -I"lib"  
"/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/bin/spec" 
"spec/atom_spec.rb" "spec/sitemap_spec.rb" "spec/page_spec.rb" 
"spec/config_spec.rb" "spec/overrides_spec.rb" "spec/models_spec.rb"  
failed
>
>
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:177:in
`block (2 levels) in define'
>
>
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1112:in
`verbose'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rspec-1.3.0/lib/spec/rake/spectask.rb:153:in
`block in define'
>
>
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:636:in 
`block in execute'
>
>
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:631:in 
`execute'
>
>
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:597:in 
`block in invoke_with_call_chain'
> /usr/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
>
>
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:590:in 
`invoke_with_call_chain'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:583:in 
`invoke'
>
>
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`block (2 levels) in top_level'
>
>
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2029:in
`block in top_level'
>
>
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
>
>
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2001:in
`block in run'
> 
/home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
>
>
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/bin/rake:31:in 
`<top (required)>'
>
>
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `load'
> /home/manolo/.rvm/gems/ruby-1.9.1-p378/bin/rake:19:in `<main>'
>
>
>
> I don't know where to look for on this, any help appreciated, thanks
>
> --
> Manuel R. Adarve.
>
>
>


-- 
Manuel R. Adarve.