如何从源代码升级 cygwin 上的 ruby?
大约 9 个月前,我在 cygwin 上从源代码安装了 ruby 1.9.1。我做了默认安装,即 make、make test、make install,将其安装在 /usr/local 中。我现在正在尝试安装1.92。使用相同的步骤构建和安装它后,我发现我安装的 gem 停止工作了。我认为这可能会发生,所以我先做了备份,但无法恢复。有没有一种方法可以在不影响之前安装的库的情况下安装它,或者我应该硬着头皮重新安装它们?我还开始认为将其安装在默认位置可能不是一个好主意,因为如果其他文件也安装在这个位置,则很难区分哪些文件是 ruby,哪些文件不是。我猜没有 make uninstall 之类的东西?
I installed ruby 1.9.1 from source on cygwin about 9 months ago. I did a default install i.e make, make test, make install which installed it in /usr/local. I am now trying to install 1.92. After building and installing it using the same steps, I found the gems I had installed stopped working. I though this might happen so I made a back up first and was unable to recover. Is there a way to install it without disturbing the previously installed libriaries or should I just bite the bullet and re-install them? I am also begining to think that installing it in the default location might not have been a good idea as it would be hard to tell what files are ruby and what are not if other things were also installed in this location also. I am guessing there is no such thing as make uninstall?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道这可能不是您正在寻找的答案,但我强烈建议您查看 pik,这是一个在 Windows 上运行的 Ruby 版本管理器。
它类似于 rvm,这是在 Mac OS 和 *nix 上安装和管理 Rubies 的实际方法。
I know this may not be the answer you're looking for, but I highly recommend you take a look at pik, which is a Ruby version manager that works on Windows.
It's similar to rvm, which is the de-facto way to install and manage Rubies on Mac OS and *nix.