耙中止!无法加载此类文件 -- net/telnet

rake aborted! cannot load such file -- net/telnet

我正在使用 procedure 在 ubuntu 中安装 cartoDB。当我使用以下命令初始化元数据库时

RAILS_ENV=development bundle exec rake db:create

我收到一条错误消息

rake aborted! cannot load such file -- net/telnet

堆栈跟踪

/home/ubuntu/cartodb/lib/varnish/lib/cartodb-varnish.rb:1:in require' /home/ubuntu/cartodb/lib/varnish/lib/cartodb-varnish.rb:1:in' /home/ubuntu/cartodb/config/application.rb:189:in require' /home/ubuntu/cartodb/config/application.rb:189:in' /home/ubuntu/cartodb/Rakefile:3:in require' /home/ubuntu/cartodb/Rakefile:3:in' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in load' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in load_rakefile' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:501:in raw_load_rakefile' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:82:in block in load_rakefile' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:81:in load_rakefile' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:65:in block in run' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:63:in run' /usr/local/lib/ruby/gems/2.3.0/gems/rake-0.9.2.2/bin/rake:33:in ' /usr/local/bin/rake:23:in load' /usr/local/bin/rake:23:in' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in load' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in kernel_load' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in run' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in exec' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in dispatch' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in start' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in start' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/exe/bundle:27:in block in ' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in with_friendly_errors' /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/exe/bundle:19:in ' /usr/local/bin/bundle:23:in load' /usr/local/bin/bundle:23:in'

可能是什么问题。我不熟悉 RoR。

找到 Gemfile 并添加以下行(就在第 35 行下方 gem 'net-ldap', '0.11'

gem install 'net-telnet'

运行

$ bundle