ruby on rails - Bundler needs to be installed for each gemset with RVM -


every time create new project , attempt run bundle hitting type of error:

funkdified@funktop ~/rails_projects $ cd blog ruby-2.2.2 - #gemset created /home/funkdified/.rvm/gems/ruby-2.2.2@blog ruby-2.2.2 - #generating blog wrappers.......... funkdified@funktop ~/rails_projects/blog $ bundle /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': not find bundler (>= 0) amongst [bundler-unload-1.0.2, executable-hooks-1.3.2, gem-wrappers-1.2.7, rubygems-bundler-1.4.4, rvm-1.11.3.9] (gem::loaderror)     /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'     /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'     /usr/local/bin/bundle:22:in `<main>' 

i tried running rvm @global gem install bundler not working either. before can bundle, each time, need run gem install bundler first.

is there i'm missing? thanks

you don't have to. once have installed bundler within 1 gemset, can use gemset each time create new project.

first,

rvm gemset list_all   # list gemset under ruby versions have installed 

for example, if have gemset named foo under ruby version 2.0.0, , gemset has bundler installed, each time create new project, can type rvm command use gemset.

rvm use 2.2.0@foo 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -