0

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

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

I got the exact same error. Needed to uninstall version 1.2.1 AND get the DLL as well.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.