linux rails3 运行服务器报错 uninitialized constant Object::Bundler (NameError)
前几天gemupdaterails之后railsserver老是报错/home/hack/桌面/rubystudy/blog/config/boot.rb:9:in`re...
前几天gem update rails 之后 rails server 老是报错
/home/hack/桌面/rubystudy/blog/config/boot.rb:9:in `rescue in <top (required)>': uninitialized constant Object::Bundler (NameError)
from /home/hack/桌面/rubystudy/blog/config/boot.rb:5:in `<top (required)>'
from script/rails:5:in `require'
from script/rails:5:in `<main>'
各位大侠 帮帮小弟
可能是环境问题 展开
/home/hack/桌面/rubystudy/blog/config/boot.rb:9:in `rescue in <top (required)>': uninitialized constant Object::Bundler (NameError)
from /home/hack/桌面/rubystudy/blog/config/boot.rb:5:in `<top (required)>'
from script/rails:5:in `require'
from script/rails:5:in `<main>'
各位大侠 帮帮小弟
可能是环境问题 展开
展开全部
#看config/boot 下有没有
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
。。没有的话 添加下
你试试
gem install bundler
or
你试试
gem install rails 安装最新的rails 3.0.x
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
。。没有的话 添加下
你试试
gem install bundler
or
你试试
gem install rails 安装最新的rails 3.0.x
参考资料: http://home.huabaner.net/space.php?do=mtag&tagid=10
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询