How to setup the ruby interpreter path in Ruby SDK and Gems of WSL in rubymine 2017.3 version.

Answered

After I walked through the post (How to add WSL SDK on Windows to Rubymine). 

It worked when Ruby interpreter path was assigned with  system ruby path of WSL in Ruby SDK and Gems.

But after I installed rbenv in root account in WSL and set rbenv global to 2.4.2 version, when I set ruby interpreter path with rbenv global ruby path, it doesn't recognize the rbenv ruby with the following error:

"Could not find gems binaries directory"

Is there any solution for this?

 

1
7 comments

+1 having the same issue on mac, but I don't use rbenv.

0
Avatar
Permanently deleted user

Same issue here. Where does RubyMine search for gems binaries directory? How can we redirect it to rbenv?

0

Hello,

sorry for the delay. At the moment rbenv and rvm installed in Windows bash aren't supported, please follow the corresponding request: https://youtrack.jetbrains.com/issue/RUBY-20019

0

Hi all,

Yes when you add a remote interpreter using rbev, just add the path you get via this command:

rbenv which ruby

and it should work fine

7

Grégory RISCH your solution worked for me. Thanks! 

0

Grégory RISCH
Works 4 me 2! Thx!
which ruby vs rbenv which ruby
is not the same

0

Please sign in to leave a comment.