2012-03-22 122 views
-1

給我解決這個 當我跑步時耙分貝:創建 它顯示像這樣的耙分貝:創建錯誤

DEPRECATION WARNING: railtie_name is deprecated and has no effect. (called from <class:Engine> at /home/shajin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/spree_paypal_express-073f2f814dd8/lib/spree_paypal_express.rb:5) 
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. 
    at /home/shajin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2.2/lib/rake/rdoctask.rb 
WARNING: Global access to Rake DSL methods is deprecated. Please include 
    ... Rake::DSL into classes and modules which use the Rake DSL methods. 
WARNING: DSL method Soletronspree::Application#task called at /home/shajin/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/rails/application.rb:215:in `initialize_tasks' 
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead. 
    at /home/shajin/.rvm/gems/ruby-1.9.2-p0/gems/deface-0.5.2a/tasks/deface.rake:3:in `block in <top (required)>' 
soletronspree_test already exists 
soletronspree_development already exists 
+0

@sergio rake db:create – kiran 2012-03-22 13:02:32

+0

我的意思是,你有什麼試圖解決這個問題? – 2012-03-22 13:04:21

+0

@SergioTulentsev:不知道如何解決,它顯示庫文件中的錯誤..... – kiran 2012-03-22 13:07:00

回答

0

首先嚐試更新你的寶石,特別是spree_paypal_express的警告。

bundle update 

它目前被鎖定在073f2f814dd8 ......並根據該GitHub的SHA1哈希指向一個6個月大承諾。

如果您目前沒有使用從Git倉庫最新的,嘗試他們通過改變寶石行這樣的:

gem "spree_paypal_express", :git => "git://github.com/spree/spree_paypal_express.git" 

最新的PayPal擴展版本取決於施普雷1.0.0或更高版本。要安裝1.0.0改變當前的大禮包的寶石行這樣的:

gem 'spree', '1.0.0' 

和運行bundle update

請記住,更新狂歡可能在其他地方打破以前的功能。 但保持最新以獲得所有最新功能總是一個好主意。

+0

雅更新但同樣的錯誤,當我嘗試耙分貝:創建或耙分貝:遷移命令 – kiran 2012-03-22 13:36:24

+0

嘗試發佈您的新錯誤,它應該不同於你以前有過。如果寶石實際上已更新。 – martinjlowm 2012-03-22 13:43:14

+0

當我嘗試了捆綁安裝時它顯示是這樣 捆紮機找不到兼容版本的寶石「spree_core」: 在Gemfile中: spree_paypal_express(> = 0)紅寶石取決於 spree_core(> = 1.0.0)ruby spree(= 0.60.0)x86-mingw32取決於 spree_core(0.60.0) – kiran 2012-03-22 14:02:14