user3081519 user3081519 - 20 days ago 25
Ruby Question

No Rails found in SDK on Sierra

I have seen:

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

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

I have:

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)


I tried setting it up as normal by choosing the ruby version with a green check, hitting apply:
enter image description here

Also I tried running:

gem update --system
gem install rails


This doesn't work. What am I doing wrong?

Answer

If you haven't, update your X-code installation by running:

xcode-select --install

then rebuild all your gems by running:

gem pristine --all

Updating to sierra messes up with your dev environment. The above worked for me.

Comments