English 中文(简体)
把废墟换成一条与废墟,安全吗?
原标题:Replace ruby with a link to ruby1.9, safe?
  • 时间:2010-01-29 00:06:22
  •  标签:
  • ruby
  • macos

从我的正文中删除<代码>ruby <>/code>(原文封顶),代之以与<代码>ruby1.9/code>的链接,并以<代码>irb和gem取代?

是否有任何具体的问题?

最佳回答

我不想删除。 我个人下载了垃圾源,并汇编/填入了垃圾目录。 然后,我对我的道路进行了编辑,使/opt/bin/ruby(irb和gem)的排名高于系统违约。 这样,你就可以同时保持系统违约和最新版本。 此外,如果 Apple果不断更新其MacRuby版本,你就不必担心失去任何东西或降级。

问题回答

我用篮子管理:

alias ruby18=/usr/bin/ruby
alias ruby19=/opt/ruby1.9/bin/ruby
alias ruby=ruby19

安装两种版本,特别是用于1.9read的地壳。

您可以将废墟1.8双亲档案重新命名为废墟1.8、irb1.8等,然后将废墟1连接起来。 9个档案成为废墟。 如果你与某个项目有兼容问题,或你甚至可以使用诸如瓦莱-辛特等工具,在两者之间很容易地回去。





相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...