2013-10-09 83 views
0

/home/palpandi/.rvm/gems/[email protected]_zip/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning : 寶石::依賴#version_requirements已被棄用,在2010年8月使用或之後將被刪除 #requirementFedea Error in Boot.rb

/home/palpandi/.rvm/gems/[email protected]_zip/gems/的ActiveSupport-2.3.5/LIB/active_support/dependencies.rb:105:在 `const_missing':未初始化的常數的Rails ::引導::捆紮機 (NameError)

個使用Rails 2.3.5 的Ruby 1.8.7 的Ubuntu 12.04

+0

sooo,是捆綁器安裝在您的schmubutu機器上? – phoet

+0

使用本指南http://aboobacker.in/installing-project-fedena-in-14-04/ – Tachyons

回答

0

,就把這行你的boot.rb加入後

begin 
require "rubygems" 
require "bundler" 
rescue Bundler::GemNotFound 
    raise RuntimeError, "Bundler couldn't find some gems." + "Did you run bundle install?" 
end 

gem install bundler

和:

gem 'bundler'

config/boot.rb中的第2行(剛要求'rubygems')

1

我有類似的問題。解決這個正確的方法是去到項目文件夾,然後在config/boot.rb到最底部,只是在Rails.boot!行之前添加以下內容:

begin 
require "rubygems" 
require "bundler" 
rescue Bundler::GemNotFound 
    raise RuntimeError, "Bundler couldn't find some gems." + "Did you run bundle install?" 
end 

class Rails::Boot 
    def run 
    load_initializer 

    Rails::Initializer.class_eval do 
     def load_gems 
     @bundler_loaded ||= Bundler.require :default, Rails.env 
     end 
    end 

    Rails::Initializer.run(:set_load_path) 
    end 
end 

這將解決「未初始化的常量授權」錯誤。