Rubymine can't find SDK. Where is it?

我与影子孤独终老i 提交于 2019-12-13 11:34:02

问题


I have just installed rubymine 5.4.3.2.1 and am trying to start an example project. The problem i am having is that rubymine is asking for a SDK. So where do i point it to?


回答1:


If you are on windows its where ever you installed ruby under the bin folder as diplayed here If you are on a unix base system go to the terminal and enter which ruby and you will point it to the directory listed. Assuming you have ruby installed




回答2:


You should point it to the where you keep your Ruby Binary File, for example:

  • Windows - d:\dev\Ruby19\bin\ruby.exe
  • Mac Brew - /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby
  • Ruby Version Manager - /Users/<user>/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
  • Linux/Mac Default - /usr/bin/ruby

If you are on Windows and don't have Ruby installed yet, download it from http://rubyinstaller.org/ .

After installing point RubyMine to the ruby.exe file location.


For example, if you install using rubyinstaller-2.0.0-p247.exe into c:\Ruby200 (the default path suggested by the installer), RubyMine would accept c:\Ruby200\bin\ruby.exe path for the SDK (it will even detect it automatically):

Note that it's also recommended to install and configure the DevKit from the same site as it's required for many gems that have native code.

When everything is installed you can follow the Quick Start Guide for RubyMine.




回答3:


Only for Mac, brew, rbenv:

$ which ruby /usr/local/var/rbenv/shims/ruby

But it doesn't show used gems. So, it's better to add file inside ruby version folder: /usr/local/var/rbenv/versions/*your_version*/bin/ruby




回答4:


Ruby path in Rails Container: /usr/local/bin/ruby (no RVM installed)

Local Ruby path: ~/.rvm/rubies/ruby-2.6.0/bin/ruby (no default Ruby installed)

Local RVM path: ~/.rvm/bin/rvm



来源:https://stackoverflow.com/questions/17950288/rubymine-cant-find-sdk-where-is-it

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