簡體   English   中英

Ruby和activerecord-oracle_enhanced-adapter

[英]Ruby and activerecord-oracle_enhanced-adapter

我有一個關於RadRails和activerecord-oracle_enhanced-adapter 我正在使用RadRails 2.下面是我的本地寶石列表,來自gem list -local命令的輸出:

*** LOCAL GEMS ***

actionmailer (2.3.4)
actionpack (2.3.4)
activerecord (2.3.4)
activerecord-oracle_enhanced-adapter (1.6.7)
activeresource (2.3.4)
activesupport (2.3.4)
bigdecimal (1.2.6)
io-console (0.4.3)
json (1.8.1)
oracle_enhanced (1.2.5)
psych (2.0.8)
rack (1.0.1)
rails (2.3.4)
rake (10.4.2)
rdoc (4.2.0)

但是,當我嘗試運行rake migrate命令時,會出現以下內容:

rake aborted!
Please install the oracle_enhanced adapter: `gem install activerecord-oracle_enhanced-adapter` (no such file to load -- active_record/connection_adapters/oracle_enhanced_adapter)

(See full trace by running task with --trace)

我已經卸載了activerecord-oracle_enhanced-adapter並重新安裝它,重啟RadRails,都無濟於事。

問題是您使用rails 2.3.4(2010年最后更新)與幾周前發布的最新activerecord oracle增強適配器1.6.7。

嘗試將您的rails更新到4.1(它還需要更新ruby到2.3)或將gendfile中的activerecord-oracle_enhanced-adapter降級到1.3.2:

gem 'activerecord-oracle_enhanced-adapter', '~> 1.3', '>= 1.3.2'

最好不要使用如此舊的RadRails。 在任何現代編輯器或IDE中嘗試最新的ruby和rails!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM