Tag: ubuntu 8.04

‘没有这样的文件来加载 – net / ssh’来自Ubuntu上的rails Controller

我有一个非常简单的控制器: require ‘net/ssh’ class MyController ‘bar’ end end 但当我请求http:// server:3000 / my / foo时,我得到: MissingSourceFile in MyController#foo no such file to load — net/ssh gem已安装 > gem list net-ssh *** LOCAL GEMS *** net-ssh (2.0.11) 另外,我尝试在IRB中使用’net / ssh’,它可以工作。 MyController在Windows上工作正常,但在Ubuntu上失败。 有什么不对?

未定义的方法`end_with?’ 为“没有这样的文件加载 – Win32API”:字符串(NoMethodError)

我只是设置一个新的服务器,并希望安装Twitter gem,但在Ubuntu 8.04 / Ruby 1.8.6上遇到问题 它说“multi_json需要RubyGems> = 1.3.6”,但是运行“gem update –system”显然会尝试并更新RubyGems 1.5,这在Ruby 1.8.6上是无法完成的,并且失败并出现以下错误: undefined method `end_with?’ for “no such file to load — Win32API”:String (NoMethodError) from ./lib/rubygems/config_file.rb:55 from ./lib/rubygems/custom_require.rb:29:in ‘gem_original_require’ from ./lib/rubygems/custom_require.rb:29:in ‘require’ … 有任何想法吗? 谢谢 史蒂夫