耙子流产!尝试预编译资产管道时出错

时间:2013-11-19 21:20:18

标签: ruby-on-rails ruby rake assets precompile

我在查找图像资源方面遇到了一些问题,因此我尝试预编译资产管道线。但它给了我一个问题。有人可以帮我这个吗?

$ rake assets:precompile
rake aborted!
cannot load such file -- bundler/setup
/home/usr/Rails/app101/config/boot.rb:4:in `<top (required)>'
/home/usr/Rails/app101/config/application.rb:1:in `<top (required)>'
/home/usr/Rails/app101/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

我的rake assets:precompile --trace结果:

$ rake assets:precompile --trace
rake aborted!
cannot load such file -- bundler/setup
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/usr/Rails/app101/config/boot.rb:4:in `<top (required)>'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/usr/Rails/app101/config/application.rb:1:in `<top (required)>'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/usr/Rails/app101/Rakefile:4:in `<top (required)>'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rake/rake_module.rb:25:in `load'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rake/rake_module.rb:25:in `load_rakefile'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rake/application.rb:604:in `raw_load_rakefile'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rake/application.rb:89:in `block in load_rakefile'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rake/application.rb:160:in `standard_exception_handling'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rake/application.rb:88:in `load_rakefile'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rake/application.rb:72:in `block in run'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rake/application.rb:160:in `standard_exception_handling'
/home/usr/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rake/application.rb:70:in `run'
/home/usr/.rbenv/versions/2.0.0-p247/bin/rake:37:in `<main>

非常感谢。 :)

0 个答案:

没有答案