尝试在OSX上安装Ruby on Rails,我得到了一个Gem::RemoteSourceException。

时间:2022-07-23 09:00:09

What is going on when I get this "HTTP Response 403" error?

当我得到这个“HTTP响应403”错误时发生了什么?

I am trying to setup Ruby on Rails on OS X 10.5.8 with XCode 3.1.4:

我正在尝试用XCode 3.1.4在OS X 10.5.8上安装Ruby on Rails。

Boston:$ ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
Boston:$ gem --version
1.0.1

Boston:$ sudo gem update --system
Password:
Updating RubyGems...
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 403 fetching http://gems.rubyforge.org/yaml

Boston:$ sudo gem install rubygems-update
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 403 fetching http://gems.rubyforge.org/yaml

I can't find a single specific reference online to the 403 error on OS X. I have tried adding alternate source repositories and I get the same error.

对于OS x上的403错误,我在网上找不到一个特定的引用。


Solution Based on @Phil's Answer

I downloaded rubygems-1.3.5.zip from http://rubyforge.org/frs/?group_id=126 and unzipped the file.

我下载rubygems-1.3.5。zip从http://rubyforge.org/frs/?group_id=126并解压缩文件。

Then I cd'd into the rubygems-1.3.5 directory and ran

然后我将cd放入rubygems1.3.5目录并运行

 Boston:rubygems-1.3.5$ sudo ruby setup.rb
 RubyGems 1.3.5 installed

Thanks @Phil!

谢谢@Phil !

1 个解决方案

#1


5  

I just ran into this. I assume the gemcutter switchover broke old versions of rubygems (i.e. the version that comes with Leopard).

我刚遇到这个。我假设gemcutter的切换打破了rubygems的旧版本(即Leopard的版本)。

I fixed the problem by manually upgrading rubygems via http://rubyforge.org/frs/?group_id=126.

我通过http://rubyforge.org/frs/?group_id=126手动升级rubygems来解决这个问题。

#1


5  

I just ran into this. I assume the gemcutter switchover broke old versions of rubygems (i.e. the version that comes with Leopard).

我刚遇到这个。我假设gemcutter的切换打破了rubygems的旧版本(即Leopard的版本)。

I fixed the problem by manually upgrading rubygems via http://rubyforge.org/frs/?group_id=126.

我通过http://rubyforge.org/frs/?group_id=126手动升级rubygems来解决这个问题。