How to install sqlite3 gem directly from github repo?

148 views
Skip to first unread message

Jim Flood

unread,
Feb 7, 2016, 3:43:10 PM2/7/16
to sqlite3-ruby
If I install the sqlite3 gem from a Github repo using bundler, it fails to load.

How can I install the gem, including the native binaries, from a Github repository? I can't use the released gem because I need a bug in Blob support for user-defined functions fixed, which I've fixed in my clone.

From this in the Gemfile:
gem 'sqlite3', '1.3.10', :git => 'https://github.com/jimflood/sqlite3-ruby', :branch => 'olympia'

To this result:
$ bundle exec irb
2.2.1 :001 > require 'sqlite3'
LoadError: cannot load such file -- sqlite3/sqlite3_native
from /home/jim/.rvm/gems/ruby-2.2.1@hinode/bundler/gems/sqlite3-ruby-41d08938f3c1/lib/sqlite3.rb:6:in `require'
from /home/jim/.rvm/gems/ruby-2.2.1@hinode/bundler/gems/sqlite3-ruby-41d08938f3c1/lib/sqlite3.rb:6:in `rescue in <top (required)>'
from /home/jim/.rvm/gems/ruby-2.2.1@hinode/bundler/gems/sqlite3-ruby-41d08938f3c1/lib/sqlite3.rb:2:in `<top (required)>'
from (irb):1:in `require'
from (irb):1
from /home/jim/.rvm/rubies/ruby-2.2.1/bin/irb:11:in `<main>'

After installing the released gem, uninstalling it, and installing from github again:

$ bundle exec irb
2.2.1 :001 > require 'SQLite3'
LoadError: cannot load such file -- SQLite3
from (irb):1:in `require'
from (irb):1
from /home/jim/.rvm/rubies/ruby-2.2.1/bin/irb:11:in `<main>'

Reply all
Reply to author
Forward
0 new messages