Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
34 lines (28 loc) · 747 Bytes

File metadata and controls

34 lines (28 loc) · 747 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

sqlite3-ruby-win

guide for sqlite3-ruby installation on Windows without LoadError

C:\>ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
C:\>irb
irb(main):001:0> require 'sqlite3'
=> true

Steps

Pre
  • gem uninstall sqlite3 --all
Source
Build
  • run command-line in the extracted dir
  • make sure you have your C compiler installed and added to PATH
  • gem install bundler
  • bundle install
  • rake native gem
  • you'll find a dir named 'pkg' generated
Install
  • enter dir 'pkg'
  • gem install --local sqlite3-xxx.gem ('xxx' is version code)
Check
  • irb
  • require 'sqlite3'
Morty Proxy This is a proxified and sanitized view of the page, visit original site.