gem install error, index not found, ruby on rails

前端 未结 7 498
礼貌的吻别
礼貌的吻别 2021-01-25 10:30

Problem: Cannot install any gem, any type. But I want to install riddle if that matters.

When I run sudo gem install \"gem_name\" I get the following error:

7条回答
  •  情深已故
    2021-01-25 11:22

    You are running an old RubyGems version. Upgrade to the latest RubyGems 1.3.x branch.

    $ rubygems update --self
    

    If it doesn't work (RubyGems 1.2.0 has a weird bug that prevents --self update) then install rubygems_update

    $ wget http://rubyforge.org/frs/download.php/60717/rubygems-update-1.3.5.gem
    $ gem install rubygems-update-1.3.5.gem
    $ update_rubygems
    

    Use sudo if your os requires it.

提交回复
热议问题