在Ubuntu上安装Ruby 1.9.1? [英] Installing Ruby 1.9.1 on Ubuntu?
问题描述
我想知道如何在Ubuntu 9.04上安装最新版本的Ruby.现在,我可以顺利完成./configure
和make
的工作,但是我想知道的是:如何避免与打包系统发生冲突?例如,如果我安装的其他软件包依赖于Ruby,那么软件包管理器是否不会安装(过时的)Ruby软件包,并且在最坏的情况下会覆盖我的文件?
I wonder about installing the latest version of Ruby on Ubuntu 9.04. Now I can run through the ./configure
and make
stuff fine, but what I wonder about: how to avoid conflicts with the packaging system? For example if some other package I install depends on Ruby, wouldn't the package manager install the (outdated) Ruby package and in the worst case overwrite my files?
所以我认为我需要某种方式来告诉Ubuntu,实际上已经安装了Ruby?
So I think I need some way to tell Ubuntu that Ruby is in fact already installed?
推荐答案
省去头疼,并使用 Ruby版本管理器)
请记住,Rails 3与Ruby 1.9.2一起使用效果最佳. Ruby 1.9.2修复了1.9.1中的许多错误,并且比运行1.9.1更可取.
Keep in mind, Rails 3 works best with Ruby 1.9.2. Ruby 1.9.2 fixes up quite a few bugs in 1.9.1 and is preferable to running 1.9.1.
使用RVM安装1.9.2轻而易举.
With RVM installing 1.9.2 is a breeze.
这篇关于在Ubuntu上安装Ruby 1.9.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!