RubyMine在Ubuntu上找不到Ruby SDK

时间:2019-08-23 02:10:32

标签: ruby rubymine

我试图将Ruby SDK添加到安装在/snap/bin/ruby的RubyMine中,但是我收到以下消息。

Error configuring SDK: Could not get RubyGems environment for ruby-2.6.3-p62: ver.2.6.3p0 (/snap/bin/ruby).

Please make sure that /snap/bin/ruby is a valid home path for this SDK type.

enter image description here

enter image description here

3 个答案:

答案 0 :(得分:2)

当前,RubyMine无法添加使用 snap 安装的Ruby:RUBY-23121。或者,您可以使用 apt 或使用version manager安装Ruby。

答案 1 :(得分:0)

您应将其指向保存Ruby Binary File的位置,例如:

  • Windows-d:\ dev \ Ruby19 \ bin \ ruby​​.exe
  • Mac Brew-/ usr / local / Cellar / ruby​​ / 2.0.0-p247 / bin / ruby​​
  • Ruby版本管理器-/Users//.rvm/rubies/ruby-1.9.3-p327/bin/ruby
  • Linux / Mac默认-/ usr / bin / ruby​​

答案 2 :(得分:0)

如果您正在使用通过rbenv安装的ruby,则只需选择第二个选项“ New local version manager ...”,而不是“ New local ...”,因为您正在使用rbenv。您的路径应如下所示: /home/$USRNAME/.rbenv/bin/rbenv