Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zzak
Created August 29, 2014 21:24
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzak/695d1e25ec13d62ca671 to your computer and use it in GitHub Desktop.
Save zzak/695d1e25ec13d62ca671 to your computer and use it in GitHub Desktop.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/zscott/.rubies/ruby-trunk/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... yes
checking for sqlite3_initialize()... yes
checking for sqlite3_backup_init()... yes
checking for sqlite3_column_database_name()... no
checking for sqlite3_enable_load_extension()... no
checking for sqlite3_load_extension()... no
checking for sqlite3_open_v2()... yes
checking for sqlite3_prepare_v2()... yes
checking for sqlite3_int64 in sqlite3.h... yes
checking for sqlite3_uint64 in sqlite3.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling backup.c
compiling database.c
compiling exception.c
compiling sqlite3.c
compiling statement.c
statement.c: In function ‘bind_param’:
statement.c:261: warning: implicit declaration of function ‘RBIGNUM’
statement.c:261: error: invalid type argument of ‘->’
statement.c:261: error: ‘SIZEOF_BDIGITS’ undeclared (first use in this function)
statement.c:261: error: (Each undeclared identifier is reported only once
statement.c:261: error: for each function it appears in.)
make: *** [statement.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/zscott/.gem/ruby/2.2.0/gems/sqlite3-1.3.8 for inspection.
Results logged to /Users/zscott/.gem/ruby/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/sqlite3-1.3.8/gem_make.out
An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling.
@robinboening
Copy link

I ran to the same issue. Seems that one can not use sqlite3 v1.3.8 with ruby v2.2.0.
bundle update sqlite3 (installed v1.3.10 at that time) fixed that.

@cannikin
Copy link

This worked for me as well, thanks!

@AlexandrBasan
Copy link

Worked for me too, thanks

@isabelgm
Copy link

isabelgm commented Mar 9, 2016

This worked for me as well. :)

@nlevchuk
Copy link

@robinboening thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment