RubyGems 问题/在 Fedora Core 7 上安装 RubyOnRails

发布于 2024-10-30 17:50:51 字数 1051 浏览 4 评论 0原文

首先,我是 Ruby 新手。其次,不要因为我运行 Fedora Core 7 而阉割我。我受 GoDaddy 的虚拟专用服务器的摆布 :P

好吧,基本上,过去一天我一直在尝试在我的服务器上安装 Rails,我不完全确定问题是什么。 Ruby 和 RubyGems 已经安装,快速检查会显示它们的路径:

[root@ip-*** /]# which ruby
/usr/bin/ruby
[root@ip-*** /]# which gem
/usr/bin/gem

所以,根据我在网上找到的 20 个不同的来源,我需要做的就是......

gem install rails

这就是我遇到问题的地方。

[root@ip-*** /]# gem install rails
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

其他消息来源说我需要更新我的 RubyGems,但当我尝试时,此错误会重复出现。

[root@ip-*** /]# gem update --system
Updating RubyGems...
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

RubyGems 的环境数据显示:

[root@ip-*** /]# gem env
RubyGems Environment:
  - VERSION: 0.9.4 (0.9.4)
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  - GEM PATH:
     - /usr/lib/ruby/gems/1.8
  - REMOTE SOURCES:
     - http://gems.rubyforge.org

就像我说的,我是 Ruby n00b,所以任何帮助将不胜感激。我真的很想让 Rails 在我的系统上启动并运行。谢谢!

如果您需要更多信息,请告诉我我遗漏了什么。

First of all, I'm new to Ruby. Second of all, don't castrate me for running Fedora Core 7. I'm at the mercy of GoDaddy's virtual dedicated servers :P

Okay, so basically, I've been trying to get Rails installed on my server for the past day, and I'm not entirely sure what the problem is. Ruby and RubyGems are already installed, and a quick check shows their paths:

[root@ip-*** /]# which ruby
/usr/bin/ruby
[root@ip-*** /]# which gem
/usr/bin/gem

So, according to like.. 20 different sources I've found online, all I would need to do is...

gem install rails

This is where I encounter my problem.

[root@ip-*** /]# gem install rails
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

Other sources have said I need to update my RubyGems, but this error duplicates itself when I try.

[root@ip-*** /]# gem update --system
Updating RubyGems...
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

Env data for RubyGems shows:

[root@ip-*** /]# gem env
RubyGems Environment:
  - VERSION: 0.9.4 (0.9.4)
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  - GEM PATH:
     - /usr/lib/ruby/gems/1.8
  - REMOTE SOURCES:
     - http://gems.rubyforge.org

Like I said, I'm a Ruby n00b, so any help would be appreciated. I would really like to get Rails up and running on my system. Thanks!

If you need more info, just let me know what I'm leaving out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我ぃ本無心為│何有愛 2024-11-06 17:50:51

尝试删除当前的RubyGems并重新安装最新版本(似乎你被卡住了并且无法升级)

Try to remove the current RubyGems and reinstall the latest version (it seems that you're stuck and unable to upgrade)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文