Use default ruby version in Sublime Text 2

杀马特。学长 韩版系。学妹 提交于 2019-12-18 06:58:00

问题


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.


回答1:


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

Change the default "ruby" to whatever path you require. The version you're using at any given time can be discovered with:

which ruby

Alternatively you can just link to the default which is often located at /opt/local/rvm/bin/ruby.



来源:https://stackoverflow.com/questions/12830607/use-default-ruby-version-in-sublime-text-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!