通过覆盖二进制文件将 Ruby 1.86 升级到 1.9
我前段时间使用一键安装程序安装了1.86。
我想升级到 1.9,但由于 1.9 没有一键安装程序,我只是下载了 1.91 二进制文件并覆盖了我的 1.86 安装。
效果不太好。 后来我到处都是错误。
升级的正确方法是什么(对于傻瓜,即我)?
下载页面有三个适用于 Windows 的选项:
* Ruby 1.8.6 One-Click Installer (md5: 00540689d1039964bc8d844b2b0c7db6) Stable version (recommended)
* Ruby 1.8.7-p72 Binary (md5: d4b04ba03a76dc70120fe96ffa22e5df) Stable version (recommended)
* Ruby 1.9.1-p0 Binary (md5: 921db53c709ce20106610f7d229e24e1) Stable version (recommended)
通常应该没问题使用一键安装程序安装 1.86,然后用 1.9 覆盖安装目录? 或者我不应该这样做?
有没有更好的方法来干净安装 1.9?
我想我只是不确定如何在不先使用 1.86 一键安装程序的情况下安装 1.9。
I used the one-click installer to install 1.86 a while back.
I wanted to upgrade to 1.9 but since there's no one-click installer for 1.9 I just downloaded the 1.91 binary and overwrote my 1.86 install.
Didn't work so well. I got errors all over the place afterwards.
What's the proper way to upgrade (for a dummy, i.e. me)?
The downloads page has three options for Windows:
* Ruby 1.8.6 One-Click Installer (md5: 00540689d1039964bc8d844b2b0c7db6) Stable version (recommended)
* Ruby 1.8.7-p72 Binary (md5: d4b04ba03a76dc70120fe96ffa22e5df) Stable version (recommended)
* Ruby 1.9.1-p0 Binary (md5: 921db53c709ce20106610f7d229e24e1) Stable version (recommended)
Normally should it be ok to install 1.86 with the one-click installer and then overwrite the install directory with 1.9? Or should I not have done that?
Is there a better way to do a clean install of 1.9?
I guess I'm just not sure how to install 1.9 without using the 1.86 one-click installer first.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要安装,只需将 zip 文件解压到您选择的文件夹中即可。 您会发现它为您提供的文件夹结构与您在 1.8 安装文件夹中看到的大致相同。 Scite 和示例丢失了,当然您也不会有“开始”菜单快捷方式。
我建议您将 Ruby 1.9 安装到与 1.8 安装不同的文件夹中,然后更改路径语句以指向这个新文件夹。
可能发生的情况是您引入了与 1.9 不兼容的 gem 或其他代码。 全新的 1.9 安装将使您更好地了解缺少哪些代码和/或需要更新才能工作。
——布鲁斯
To install, just extract the zip file into a folder of your choice. You will find that it gives you a folder structure roughly equivalent to what you see with in your 1.8 install folder. Scite and the Samples are missing, and of course you won't have your Start menu shortcuts.
I would recommend that you install Ruby 1.9 into a folder separate from your 1.8 install, then change your path statement to point to this new folder.
What is likely happening is that you are pulling in gems or other code that is incompatible with 1.9. A fresh 1.9 install will give you a better idea as to what code is missing and/or needs to be updated to work.
--Bruce
Ruby 1.9 可能安装得很好,但上次我听说 1.9 仍然是 与 Rails 不 100% 兼容,尽管 最基本的功能就是为了工作。 您知道情况如此吗?
Ruby 1.9 probably installed just fine, but last time I heard 1.9 is still not 100% compatbile with Rails, although the very basics are meant to work. Are you aware of this being the case?