views:

572

answers:

1

Hi,

Am trying out Ruby on Rails in Windows XP using the Hello World example. Encountered this error ? Not sure how to fix this

When I downloaded sqllite from the website, copy the dll to windows/system32.

then run "gem install sqlite3-ruby". It shows up with lots of "No definition for _wrap_sqlite3_*"

then in Firefox, http://localhost:3000/hello/index, this shows up.

Gem::Exception in HelloController#index

can't activate sqlite3-ruby (= 1.2.1, runtime), already activated sqlite3-ruby-1.2.5-x86-mswin32

This error occurred while loading the following files: sqlite3/driver/native/driver sqlite3_api

Michael

+2  A: 

Try following the steps in this article, in particular they note that a better location for the sqlite dll is in the ruby bin directory.

Placing it there may also help get sorted what version is loaded.

Failing that, I'd do a gem uninstall sqlite3-ruby and then reinstall it.

Mike Buckbee
I got the exact same error. Needed to uninstall version 1.2.1 AND get the DLL as well.
CookieOfFortune
This didnt work for me, running Ubuntu :/
rebellion