This includes executables installed into the system, like rails , rackup , and rspec. Since Rubygems plugins can contain arbitrary Ruby code, they commonly end up activating themselves or their dependencies. For instance, the gemcutter 0. If you had that version of gemcutter installed even if you also had a newer version without this problem , Rubygems would activate gemcutter 0. In this situation, you almost certainly want to remove the underlying gem with the problematic gem plugin.
In general, the authors of these plugins in this case, the gemcutter gem have released newer versions that are more careful in their plugins. Toggle navigation Bundler. Choose version v2. Active 6 years, 8 months ago.
Viewed 19k times. When I try execute ' bundle exec rake anything ', I get error: Could not find rake But when I execute simple 'rake anything' , rake is working. I need execute rake with bundle exec Really need your help!
Benjamin Benjamin 1 1 gold badge 4 4 silver badges 13 13 bronze badges. What is output when you type rvm list on the command line? Which is your default ruby? Did you run bundle install? Run 'bundle install' to install missing gems. Show 1 more comment. Active Oldest Votes. Not sure for you, mine was in the Rails project root directory. I guess it depends on the specific configuration. Add a comment. Find centralized, trusted content and collaborate around the technologies you use most.
Connect and share knowledge within a single location that is structured and easy to search. Say I have a Rails app with gems installed with bundler. Is there any difference? Is any of those better then the other one? Make sure all dependencies are added to Gemfile.
Also, do note the message one can found in the last file :. Beginning in Rails 4, Rails ships with a rails binstub at. So, at the end of the day there's no difference. Also, it autocompletes better. Run rake rails:update:bin to add these executables to your own app.
Running executables within your app ensures they use your app's Ruby version and its bundled gems, and it ensures your production deployment tools only need to execute a single script. No more having to carefully cd to the app dir and run bundle exec Add that executable to git and version it just like any other app code. Binstubs may also include other customizations like loading spring gem, which preloads and speeds up the Rails application.
In short if you have all the gems installed on your system eg. If you however installed them only within the scope of the bundle they might not work. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
0コメント