耙子问题

发布于 2024-12-05 05:56:31 字数 691 浏览 1 评论 0 原文

我正在尝试在共享主机上安装 Redmine。以下是其上安装的一些软件版本:
ruby 1.8.7(2011-02-18 补丁级别 334)[x86_64-linux]
Rails 2.3.12
MySQL 5.0.91
Redmine - 来自当前主干(我猜是 v1.2.1)

我正在使用本指南进行安装:http://www.redmine.org/projects/redmine/wiki/RedmineInstall。在此之前的所有步骤我都成功完成。运行“rakegenerate_session_store”时安装失败。有什么问题吗?以下是运行此命令后出现的大部分错误:

NOTE: Gem::SourceIndex#add_spec is deprecated, use
Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from
/usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:127. 
... repeated a lot of times

I'm trying to install Redmine on a shared hosting. Here are some versions of software installed on it:
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
Rails 2.3.12
MySQL 5.0.91
Redmine - from current trunk (v1.2.1, I guess)

I'm using this guide for installation: http://www.redmine.org/projects/redmine/wiki/RedmineInstall. All the steps before this I completed successfully. Installation fails while running "rake generate_session_store". What can be wrong? Here is the most part of the errors I get after running this command:

NOTE: Gem::SourceIndex#add_spec is deprecated, use
Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from
/usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:127. 
... repeated a lot of times

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

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

发布评论

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

评论(1

不打扰别人 2024-12-12 05:56:32

从您提到的页面:

尚不支持 Ruby 1.9。您必须按照规定使用 Ruby 1.8.x
多于。需要 RubyGems 1.3.7 或更高版本,但有以下限制
:Rails 2.3.5 将在 RubyGems 1.5.0 或更高版本中失败,坚持下去
RubyGems 的早期版本! Rails 2.3.11 将因 RubyGems 而失败
1.7.0 或更高版本,请坚持使用以前版本的 RubyGems!耙子 0.8.7 是
必需(Rails 尚不支持 rake 0.9.x)

您应该降级您的 ruby​​gems 安装。

下一个问题:如何降级 ruby​​gems?


更新< /strong>

我在这里回答你最后的评论。如果您无法以 root 身份安装任何软件,但您的计算机上有一个普通用户帐户(我假设是这样,因为您可以运行命令),您可以通过安装 RVM。这样,您就可以在主目录中安装本地 ruby​​ 环境,并且可以控制所有这些方面:gem 版本、ruby 版本、已安装的 gem 等。安装后要降级 ruby​​gems 本身,请参阅我之前的链接。

如果您没有用户帐户,那么您无法解决这个问题......

From the page you mention:

Ruby 1.9 is not supported yet. You have to use Ruby 1.8.x as stated
above. RubyGems 1.3.7 or higher is required with following limitations
: Rails 2.3.5 will fail with RubyGems 1.5.0 or later, stick to
previous versions of RubyGems ! Rails 2.3.11 will fail with RubyGems
1.7.0 or later, stick to previous versions of RubyGems ! Rake 0.8.7 is
required (rake 0.9.x is not supported by Rails yet)

You should downgrade your rubygems installation.

Next question: How do you downgrade rubygems?


Update

I answer here to your last comment. If you can't install any software as root, but you have a normal user account on your machine (I assume so since you can run commands), you can solve your issue by installing RVM. With that you can have a local ruby environment installed in your home directory and you can control all these aspects: gem version, ruby version, installed gems and so on. Once installed to downgrade rubygems itself refer to my previous link.

If you do not have an user account, well you can't solve this issue...

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