在Sublime Text 2中使用默认的ruby版本 [英] Use default ruby version in Sublime Text 2
问题描述
我的默认和当前的ruby版本是1.9.3.实际上,这是我运行rvm list
时出现的唯一版本,因此我看不到如何弄乱该部分.我确实遵循了此
我在这里找到的教程,但这似乎破坏了一切.对于所看到的修复程序的所有变体,甚至在注释中,我一直得到没有这样的文件或目录".我使用的是Mac,请告诉我我还需要在此处发布哪些其他信息,以帮助您了解我如何破坏事情.
My default and current version of ruby is 1.9.3. It's actually the only version that appears when I run rvm list
so I don't see how I can be messing that part up. I did follow this
tutorial that I found here, but it just seemed to break everything. I keep getting "No such file or directory" for all the variations of the fix I see, even the in the comments. I am on a Mac, please let me know what other information I need to post here to help you figure out how I'm breaking things.
推荐答案
您始终可以通过编辑Build命令首选项来编辑使用哪个ruby
:
You can always edit which ruby
is used by editing your Build command preferences:
subl ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Ruby/Ruby.sublime-build
将默认的"ruby"
更改为所需的任何路径.您可以随时通过以下方式找到您正在使用的版本:
Change the default "ruby"
to whatever path you require. The version you're using at any given time can be discovered with:
which ruby
或者,您可以仅链接到通常位于/opt/local/rvm/bin/ruby
的默认值.
Alternatively you can just link to the default which is often located at /opt/local/rvm/bin/ruby
.
这篇关于在Sublime Text 2中使用默认的ruby版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!