RubyMine + WSL : Remote rbenv에서 사용하는 Gem을로드합니다.
소개
기사 작성에 이르기까지
RubyMine + WSL로 Ruby on Rails 개발을 시도했을 때 RubyMine에서 다음과 같은 오류가 발생했습니다.

"RubyMine Gem Manager: RubyMine has detected that some of the gems required for '프로젝트 이름' are not installed"라고 써 있습니다.
분명히 WSL에 rbenv로 설치 한 Gem을로드하지 못했습니다.
원인
Ruby 설치 중에 rbenv를 사용하는 경우 RubyMine의 "원격 Ruby 인터프리터 구성"에서 설치 경로를 수정해야하는 것 같습니다.
공식 도움말의 '원격 인터프리터 설정
Remote rbenv에서 사용하는 Gem을 읽습니다.
여기에서 본제(설정 방법)입니다.
원격 Ruby 인터프리터 구성 열기
※프로젝트 작성 전의 경우

※프로젝트 화면의 경우

여기에서 공통

그러면 원격 Ruby 인터프리터 구성 창이 열립니다.
인터프리터 추가
여기에서 본제(설정 방법)입니다.
원격 Ruby 인터프리터 구성 열기
※프로젝트 작성 전의 경우

※프로젝트 화면의 경우

여기에서 공통

그러면 원격 Ruby 인터프리터 구성 창이 열립니다.
인터프리터 추가
WSL
라디오 버튼 선택 Ubuntu
선택 
경로 변경
③의 패스에, 자신의 환경에서의 Ruby 설치 패스를 입력할 필요가 있습니다.
설치된 Ruby 경로를 확인하려면 WSL bash에서 다음 명령을 실행합니다.
실행할 명령
$ which ruby
표시되는 값(사람 각각)
/root/.rbenv/shims/ruby

얻은 값을 이전의 "Ruby 인터프리터 경로"에 입력하지만 그대로는 오류가 발생합니다.
아무래도
shims
라는 디렉토리가 실제로는 존재하지 않기 때문이라고 합니다.따라서
shims
의 위치를 올바른 경로로 수정하고 Ruby 인터프리터 경로에 입력하십시오.잘못
/root/.rbenv/shims/ruby
긍정적인
/root/.rbenv/versions/2.5.1/bin/ruby
※「versions/〇〇」의 개소에는, 인스톨 한 Ruby 의 버젼 번호를 입력해 주세요.
「ruby2.5.1p57」→「2.5.1」이 버전
$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]

추가한 인터프리터 적용

위의 작업을 통해 Remote rbenv에서 사용하는 Gem을 읽을 수 있습니다.
참고문헌
Reference
이 문제에 관하여(RubyMine + WSL : Remote rbenv에서 사용하는 Gem을로드합니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/TigRig/items/9e715b782f4be385895e텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)