简体   繁体   English

RVM无法识别系统的红宝石版本

[英]RVM do not recognize system's ruby version

I am running ruby 1.8.7 (2009-12-24 patchlevel 248) on my fedora 13 machine. 我在fedora 13计算机上运行ruby 1.8.7(2009-12-24 patchlevel 248)。 Now i want to try out ruby 1.9.2 so I installed RVM (rvm 1.0.1 by Wayne E. Seguin). 现在我想试用ruby 1.9.2,所以我安装了RVM(Wayne E. Seguin的rvm 1.0.1)。

I want RVM to know my system's ruby, but unfortunately when I run "rvm list" it doesn't list any rubies. 我希望RVM知道我系统的红宝石,但是不幸的是,当我运行“ rvm list”时,它没有列出任何红宝石。 How can I make rvm recognize hence switch between system's and rvm's rubies? 如何使rvm识别从而在系统和rvm的红宝石之间切换?

Thanks, Wa'el 谢谢Wa'el

{~} ∴ rvm list
rvm rubies <<< important

As it tells you , it only lists rvm rubies. 告诉您,它仅列出rvm红宝石。 Run rvm system to switch to system ruby. 运行rvm system切换到系统ruby。

I installed rvm with from git as explained at http://rvm.beginrescueend.com/rvm/install/ but it can't locate the system ruby interpreter in /usr/bin/ruby 我从git安装了rvm,如http://rvm.beginrescueend.com/rvm/install/所述,但它无法在/ usr / bin / ruby​​中找到系统ruby解释器

$ rvm list

rvm rubies


$ rvm system
$ rvm install 1.9.2-head # this goes on for a while recursively forking
                         # processes trying to install ruby 1.8.7

The error message I see, one per process, is 我看到的错误消息是每个进程一个

To proceed rvm requires a 1.8-compatible ruby is installed. 要继续进行rvm,需要安装1.8兼容的ruby。 We attempted to install 1.8.7 automatically but it failed. 我们尝试自动安装1.8.7,但失败。
Please install it manually (or a compatible alternative) to proceed. 请手动安装(或兼容的替代产品)以继续。

This is not very nice because it can bog down the whole machine, but why can't it see the system ruby interpreter? 这不是很好,因为它会使整个机器陷入瘫痪,但是为什么看不到系统ruby解释器呢?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM