rubygems 1.3.6安装失败

时间:2013-01-10 08:30:02

标签: ruby rubygems centos

我已经从源代码安装了ruby 1.9.3并且下载了rubygems 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上完成的

1 个答案:

答案 0 :(得分:0)

当前稳定版本的Rubygems是1.8.24,您安装1.3.6的任何特定原因?