After a lot of debugging I tried to add

puts RUBY_VERSION

sqlite3.rb file. This made me realized rails was somehow running an
old jruby version. After even more debugging I realized I was actually
running rails for jruby (hint: which rails, cat the rails file and
look for #!..jruby in the top of the file). Reinstalling rails did the
trick..

On Sep 5, 11:11 am, Dani Dani <[email protected]> wrote:
> Hi,
> here is some more information. I'm using windows xp, sp3.
> Here is the content of the sqlite3.rb file where the error comes from:
> =============================================================
> # support multiple ruby version (fat binaries under windows)
> begin
>   RUBY_VERSION =~ /(\d+.\d+)/
>   require "sqlite3/#{$1}/sqlite3_native"
> rescue LoadError
>   require 'sqlite3/sqlite3_native'        <------ THIS LINE CAUSES THE
> ERROR
> end
>
> require 'sqlite3/database'
> require 'sqlite3/version'
> =============================================================
>
> Can't go on working. Appreciat any help. Thanky.
>
> Dani
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to