RAILS 3.2.2.1 > rails assets:precompile LoadError: cannot load such file -- net/ssh/config

RAILS 3.2.2.1 > rails assets:precompile LoadError: cannot load such file -- net/ssh/config

提问人:Gautam Moradiya 提问时间:3/26/2020 最后编辑:Gautam Moradiya 更新时间:3/26/2020 访问量:222

问:

Rails 版本 3.2

Ruby 版本 2.0.0 -p451

我正在执行:

rails assets:precompile --trace

出现以下错误。

耙子中止了!

LoadError:无法加载此类文件 -- net/ssh/config

/home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in 块 /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in require' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/net-ssh-2.9.2/lib/net/ssh.rb:7:in require' /usr/share/rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/bundler/runtime.rb:95:in 块 /usr/share/rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/bundler/runtime.rb:65:in require' /usr/share/rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/bundler.rb:114:in ' /home/hardik/Projects/mm/project/Rakefile:4:in ' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in load_rakefile' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:689:in 块load_rakefile' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:176:in load_rakefile' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:77:in standard_exception_handling' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:75:in ' /home/hardik/.rvm/gems/ruby-2.0.0-p451/bin/rake:23:in ' /home/hardik/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:24:inrequire' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:inload_dependency' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in<top (required)>' /usr/share/rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/bundler/runtime.rb:95:inrescue in block in require' /usr/share/rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/bundler/runtime.rb:72:ineach' /usr/share/rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/bundler/runtime.rb:65:inrequire' /home/hardik/Projects/mm/project/config/application.rb:9:inrequire' /home/hardik/Projects/mm/project/Rakefile:4:inload' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/rake_module.rb:28:inraw_load_rakefile' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:94:instandard_exception_handling' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:93:inblock in run' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:176:inrun' /home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/bin/rake:33:inload' /home/hardik/.rvm/gems/ruby-2.0.0-p451/bin/rake:23:ineval' /home/hardik/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:24:in'

Ruby-on-Rails 资产 Ruby-2.0

评论

0赞 nuaky 3/26/2020
问题是什么?你试图解决这个问题的是什么?您是否尝试将此宝石包含在您的 gem 文件中?gem 'net-ssh
0赞 Gautam Moradiya 3/31/2020
@nuaky,是的,我已经在我的 gem 文件中添加了“net-ssh”,但仍然有同样的错误。

答: 暂无答案