Mark Steggles
asked on
installing ruby on rails - `require': no such file to load -- sqlite3/sqlite3_native (LoadError)
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
`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
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.
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...
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...
ASKER
JESii,
I tried that and I get the same error. See attached screen shot
Steggs
23-04-2011-14-30-44-fc12.png
I tried that and I get the same error. See attached screen shot
Steggs
23-04-2011-14-30-44-fc12.png
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/
Or this one which is specific to Rails3: http://accidentaltechnologist.com/ruby-on-rails/running-rails-3-on-windows/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found my own answer