得到错误:2.2.0 / ruby​​gems / core_ext / kernel_require.rb:54:在`require':无法加载此类文件 - bundler(LoadError)

时间:2017-02-18 06:54:40

标签: ruby-on-rails bundle activeadmin

我正在尝试使用以下配置实现active admin

gem 'rails', '4.2.7.1'
gem 'activeadmin', github: 'activeadmin'

# Plus integrations with:
gem 'devise'
gem 'cancan' # or cancancan
gem 'draper'
gem 'pundit'

我正在使用ruby 2.2.2

我无法bundle install。收到以下错误:

prashanth@prashanth-OptiPlex-390:~/rails_apps/admin_interface$ rvm use 2.2.2
Using /home/prashanth/.rvm/gems/ruby-2.2.2
prashanth@prashanth-OptiPlex-390:~/rails_apps/admin_interface$ rvm gemset create 222admin
ruby-2.2.2 - #gemset created /home/prashanth/.rvm/gems/ruby-2.2.2@222admin
ruby-2.2.2 - #generating 222admin wrappers........
prashanth@prashanth-OptiPlex-390:~/rails_apps/admin_interface$ rvm use 2.2.2@222admin
Using /home/prashanth/.rvm/gems/ruby-2.2.2 with gemset 222admin
prashanth@prashanth-OptiPlex-390:~/rails_apps/admin_interface$ bundle
/home/prashanth/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler (LoadError)
    from /home/prashanth/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/bin/bundle:7:in `<main>'

0 个答案:

没有答案