在Sierra上的SDK中找不到Rails

时间:2016-11-15 07:00:12

标签: ruby rubymine

我见过:

How to fix "Run Configuration Error: [No Rails found in SDK]"?

https://stackoverflow.com/questions/35658326/rubymine-kept-telling-me-no-rails-found-in-sdk

No rails found in sdk intellij https://intellij-support.jetbrains.com/hc/en-us/community/posts/206714535-No-Rails-found-in-SDK

我有:

RubyMine 2016.2.3
Build #RM-162.1812.23, built on September 5, 2016
JRE: 1.8.0_112-release-b343 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
MacOs 10.12.1 (16B2555)

我尝试通过选择带有绿色支票的红宝石版本正常设置,点击申请: enter image description here

我也试过跑:

gem update --system
gem install rails

这不起作用。我究竟做错了什么?

1 个答案:

答案 0 :(得分:1)

如果您还没有,请运行以下命令更新您的X-code安装程序:

xcode-select --install

然后通过运行:

重建所有宝石
gem pristine --all

更新到山脉与您的开发环境混淆。以上对我有用。