How do I run 'gem install bundler' in Ruby

2019-07-29 17:02发布

I'm having trouble with updating Ruby in my RubyMine IDE.

I get an error reporting that I need to run gem bundle install but I haven't found a place in my IDE to run that command.

I have run it in my Ubuntu console and everything works fine, but I can't find a console in the IDE that I can use to run the command and update that environment. I assume there's an easy solution, but google has not helped much in finding it.

Any help would be much appreciated.

1条回答
乱世女痞
2楼-- · 2019-07-29 17:30

For Rubymine 18.1 and above, double-press ctrl will open Run Anything dialog box. In it, type command you want to run (In your case 'gem install bundler') and press enter. Next it will ask for any extra arguments to be passed, and after it will execute the command in Rubymine.

查看更多
登录 后发表回答