在Cygwin下運行RoR,我已經安裝了sqlite3和sqlite3-ruby gems,但是沒有找到它們。在development.log我得到:Rails問題,sqlite3寶石不被看到
Status: 500 Internal Server Error
RubyGem version error: sqlite3(1.3.3 not >= 0)
如果我嘗試耙分貝:遷移我得到:
$ rake db:migrate
(in /home/projects/sample)
rake aborted!
RubyGem version error: sqlite3(1.3.3 not >= 0)
我已經安裝了寶石:
$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.4)
actionpack (2.3.4)
activerecord (2.3.4)
activeresource (2.3.4)
activesupport (2.3.4)
bundler (1.0.10)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.0)
envy (0.0.1)
fastthread (1.0.1 i386-mswin32)
gem_plugin (0.2.3)
mongrel (1.1.5 x86-mswin32-60)
mysql (2.8.1 x86-mswin32)
rack (1.2.1, 1.0.0)
rails (2.3.4)
rake (0.8.7)
rdoc (3.5.3)
rubysspi (1.3.1)
sqlite3 (1.3.3 x86-mswin32-60)
我試圖安裝和卸載sqlite3-ruby.gem,但這沒有幫助。
SQLITE3正常工作本身:
$ sqlite3
SQLite version 3.7.3
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
您可能需要更新ruby寶石。我不使用窗戶,但我猜pik是管理寶石的最佳方式。 – s84 2011-03-21 04:09:39