提问人:Gautam Moradiya 提问时间:3/26/2020 最后编辑:Gautam Moradiya 更新时间:3/26/2020 访问量:222
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
问:
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:in
load_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:in
rescue in block in require'
/usr/share/rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/bundler/runtime.rb:72:in
each'
/usr/share/rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/bundler/runtime.rb:65:in
require'
/home/hardik/Projects/mm/project/config/application.rb:9:in
require'
/home/hardik/Projects/mm/project/Rakefile:4:in
load'
/home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in
raw_load_rakefile'
/home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:94:in
standard_exception_handling'
/home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:93:in
block in run'
/home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/lib/rake/application.rb:176:in
run'
/home/hardik/.rvm/gems/ruby-2.0.0-p451/gems/rake-10.4.2/bin/rake:33:in
load'
/home/hardik/.rvm/gems/ruby-2.0.0-p451/bin/rake:23:in
eval'
/home/hardik/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:24:in
'
答: 暂无答案
评论
gem 'net-ssh