How do I run 'gem install bundler' in Ruby

2019-07-29 17:10发布

问题:

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:

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.