在Ubuntu上安装Ruby 1.9.1? [英] Installing Ruby 1.9.1 on Ubuntu?

查看:118
本文介绍了在Ubuntu上安装Ruby 1.9.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在Ubuntu 9.04上安装最新版本的Ruby.现在,我可以顺利完成./configuremake的工作,但是我想知道的是:如何避免与打包系统发生冲突?例如,如果我安装的其他软件包依赖于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?

推荐答案

省去头疼,并使用请记住,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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆