耙子问题
我正在尝试在共享主机上安装 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从您提到的页面:
您应该降级您的 rubygems 安装。
下一个问题:如何降级 rubygems?
更新< /strong>
我在这里回答你最后的评论。如果您无法以 root 身份安装任何软件,但您的计算机上有一个普通用户帐户(我假设是这样,因为您可以运行命令),您可以通过安装 RVM。这样,您就可以在主目录中安装本地 ruby 环境,并且可以控制所有这些方面:gem 版本、ruby 版本、已安装的 gem 等。安装后要降级 rubygems 本身,请参阅我之前的链接。
如果您没有用户帐户,那么您无法解决这个问题......
From the page you mention:
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...