“无法找到捆绑商”ruby-2.3.0

时间:2016-07-14 15:41:17

标签: ruby rvm bundler dashing

我正在Pi3上安装Dashing Dashboard。我在安装步骤中“无法找到'bundler'问题。如何完成安装?

$ source /home/pi/.rvm/scripts/rvm
-> OK

$ rvm current
ruby-2.3.0

$ bundle
/usr/lib/ruby/2.1.0/rubygems/dependency.rb:298:in 'to_specs': Could not find 'bundler' (>= 0) among 42 total gem(s) (Gem::LoadError)
    from /usr/lib/ruby/2.1.0/rubygems/dependency.rb:309:in 'to_specs'
    from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in 'gem'
    from /usr/local/bin/bundle:22:in '<main>'

$ gem install bundler
-> OK

$ bundle
-> the same problem

1 个答案:

答案 0 :(得分:3)

我想你已经搞砸了你的权限,通过运行sudo gem install bundler将捆绑包安装到系统宝石中。

删除捆绑包,然后将其安装在RVM下。仔细检查您的路径,使其安装在RVM gem stash中,而不是系统中。