2

我已经从源代码安装了 ruby​​ 1.9.3 并下载了 ruby​​gems 1.3.6 也源代码。查看手册,我解压缩了 tarball 并输入ruby setup.rb 了这就是我得到的输出:

/usr/local/lib/ruby/1.9.1/rubygems.rb:206:in `try_activate': undefined method 
`find_by_path' for Gem::Specification:Class (NoMethodError)
        from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
        from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
        from /root/rubygems-1.3.6/lib/rubygems/config_file.rb:50:in `<class:ConfigFile>'
        from /root/rubygems-1.3.6/lib/rubygems/config_file.rb:28:in `<top (required)>'
        from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /root/rubygems-1.3.6/lib/rubygems/gem_runner.rb:8:in `<top (required)>'
        from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from setup.rb:25:in `<main>'

这是在 CentOS 5 上完成的

4

1 回答 1

0

当前 Rubygems 的稳定版本是 1.8.24,您安装 1.3.6 有什么具体原因吗?

于 2013-01-10T08:47:39.343 回答