Reputation: 21
I install first gem by Terminal (Ubuntu) typing : sudo gem install and then my Rubymine doesn't find any new . So I need again install by Rubymine -> settings , etc. Why Rubymine doesn't find packets installed by Terminal ?
If You've heard something before about it , please link. Thanks.
Upvotes: 2
Views: 298
Reputation: 1909
Two options:
Run the script in context of the bundle (bundle exec)
at Run
-> Edit Configurations
, Bundler
tab (to run with the same gems as in terminal)Option #2 is possible if your project is for example using bundler to manage gem versions.
Gemfile
at the project root and add the required gem there.Upvotes: 1
Reputation: 42899
This is kinda annoying, rubymine by default creates it's own gemset, you need to open the run configuration and make rubymine use the same ruby/gems that you are using on terminal
Upvotes: 1