2015-09-19 59 views
1

我们升级到最新版本的红宝石(2.2.3)和最新版本的轨道(4.2.4),我们不能得到通过这个错误:LoadError:无法加载这样的文件 - 捆扎机/设置

LoadError: cannot load such file -- bundler/setup 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
~/Documents/remsis/config/boot.rb:6:in `<top (required)>' 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
~/Documents/remsis/config/application.rb:1:in `<top (required)>' 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
~/Documents/remsis/config/environment.rb:2:in `<top (required)>' 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
~/Documents/remsis/config.ru:3:in `block in <main>' 
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval' 
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/builder.rb:4:in `initialize' 
~/Documents/remsis/config.ru:1:in `new' 
~/Documents/remsis/config.ru:1:in `<main>' 
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:51:in `eval' 
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:51:in `load_config' 
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:42:in `initialize' 
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:12:in `new' 
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:12:in `run' 
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/bin/nack_worker:4:in `<main>' 
+1

你是如何升级Ruby的?你使用RVM还是rbenv?您是否为刚刚升级到的新Ruby版本安装了捆绑软件gem? –

+0

使用RVM,将ruby-version更改为我想要的版本。问我安装我正在运行的版本并安装它。将再次卸载并重新安装rvm。 – Vinozio

+1

Gotcha。在安装并更改Ruby版本“gem install bundler” –

回答

2

错误显示您使用的是系统Ruby,而不是RVM。你需要告诉Pow使用正确的Ruby版本。您需要创建指定要使用哪个Ruby的.rvmrc文件,并且还要创建或编辑.powrc.powenv文件以告诉Pow加载RVM。请参阅Pow docs on using RVM

4

与RVM

rvm use [email protected] --create 

创建一个宝石是安装捆绑宝石

gem install bundler 

和最后一个步骤之后是做捆绑安装

bundle install 
+0

对不起同样的错误 – Vinozio

+0

在运行'bundle install'之前,你能确认设置了正确的gemset,即'yourproject',并且你实际上在'yourproject' gemset中安装了bundler。输入'gem list'来查看安装了哪些宝石 – Zahid

相关问题