We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

installing ruby on rails - `require': no such file to load -- sqlite3/sqlite3_native (LoadError)

Mark Steggles
on
Medium Priority
2,755 Views
Last Modified: 2012-05-11
Trying to get ruby on rails 1.8.7 working on windows but when i start rails server i get this error:

`require': no such file to load -- sqlite3/sqlite3_native (LoadError)

I have tried copying the 3 sqlite files and putting them in ruby/bin but it doesnt help as mentioned at the bottom of this post: http://www.ruby-forum.com/topic/216270

Any ideas?

Rails 3.0.6 | Ruby 1.8.7 | Windows 7
Comment
Watch Question

Have you installed the sqlite3 gem with "gem install sqlite3-ruby"? I actually don't have any experience running Rails on Windows, but I always almost forget to do this when setting up the Rails development environment on a new machine.

Commented:
If you're on Rails 3, then all you should need do is
1. add it to your Gemfile
   gem 'sqlite3', '1.3.3', :require => 'sqlite3'
(I have the version number because I don't want random upgrades on my gems)
2. run
  bundle install
and it will take care of installing it for you.

Bundler is your friend when it comes to gems...
Mark StegglesWeb Developer
CERTIFIED EXPERT
Top Expert 2006

Author

Commented:
JESii,

I tried that and I get the same error. See attached screen shot

Steggs
23-04-2011-14-30-44-fc12.png

Commented:
Ah, windows... Try this point (a bit old, but looks reasonable) http://blog.emson.co.uk/2008/06/installing-sqlite3-on-windows-for-rails/

Or this one which is specific to Rails3: http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/
Web Developer
CERTIFIED EXPERT
Top Expert 2006
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Mark StegglesWeb Developer
CERTIFIED EXPERT
Top Expert 2006

Author

Commented:
Found my own answer
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.