English 中文(简体)
在Mac上使用Ruby版本管理器(RVM)时出现问题
原标题:Problem Using Ruby Version Manager (RVM) on Mac
  • 时间:2011-05-20 16:44:29
  •  标签:
  • ruby
  • rvm

我刚开始阅读MichaelHartl的RubyonRails 3教程。他建议使用Ruby的最新版本,目前为1.9.2。我的Mac是一台最初的英特尔iMac,现在运行Snow Leopard,安装了Ruby 1.8.7。

Michael建议使用Ruby版本管理器(RVM)安装最新版本的Ruby和Rails。所以我去了RVM网站,安装了RVM。。。

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

这似乎奏效了。航站楼里突然出现一条信息,感谢我使用RVM。

按照Michael的下一个指示,即确保RVM是最新的:

rvm update --head

这导致-bash:rvm:找不到命令

一个脚注表明,我可能需要安装Subversion,所以安装了它,但当我运行rvm update--head时,仍然会收到相同的错误消息。

有什么建议吗?我真的很想超越设置,开始构建我的Rails应用程序。

最佳回答

rvm在安装后也给出了一条消息,说您需要在~/.bashrc(或等效代码)中添加一行:

echo  [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"  >> ~/.bashrc

执行该操作,然后键入.~/。bashrc或打开一个新的终端。

问题回答

暂无回答




相关问题
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 ...

热门标签