rvm deafult ruby version working other version not working -


when installed rvm default install ruby 2.2.1 , working fine.

i have installed version rvm install 2.1.0 , installed.

when use 2.1.0 , run bundle install get:

/home/awlad/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler (loaderror)     /home/awlad/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'     /usr/bin/bundle:7:in `<main>' 

i tried gem install bundler give me: error: while executing gem ... (nomethoderror) undefined methodord' nil:nilclass`

if use ruby 2.2.1 bundle install working.

when using rvm use 2.1.0 which bundle give me: /usr/bin/bundle when using rvm use 2.2.1 which bundle give me: /home/awlad/.rvm/gems/ruby-2.2.1/bin/bundle

here output of gem env :

rubygems environment:   - rubygems version: 2.4.8   - ruby version: 2.2.1 (2015-02-26 patchlevel 85) [x86_64-linux]   - installation directory: /home/awlad/.rvm/gems/ruby-2.2.1   - ruby executable: /home/awlad/.rvm/rubies/ruby-2.2.1/bin/ruby   - executable directory: /home/awlad/.rvm/gems/ruby-2.2.1/bin   - spec cache directory: /home/awlad/.gem/specs   - system configuration directory: /home/awlad/.rvm/rubies/ruby-2.2.1/etc   - rubygems platforms:     - ruby     - x86_64-linux   - gem paths:      - /home/awlad/.rvm/gems/ruby-2.2.1      - /home/awlad/.rvm/gems/ruby-2.2.1@global   - gem configuration:      - :update_sources => true      - :verbose => true      - :backtrace => false      - :bulk_threshold => 1000   - remote sources:      - https://rubygems.org/   - shell path:      - /home/awlad/.rvm/gems/ruby-2.2.1/bin      - /home/awlad/.rvm/gems/ruby-2.2.1@global/bin      - /home/awlad/.rvm/rubies/ruby-2.2.1/bin      - /home/awlad/.rvm/bin      - /usr/local/sbin      - /usr/local/bin      - /usr/sbin      - /usr/bin      - /sbin      - /bin      - /usr/games      - /usr/local/games 

additional info:

 rvm 1.26.11  bundler version 1.10.6 

how can solve issue ?

when switch 1 ruby version using rvm , message, should install bundler again:

gem install bundler bundle install 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -