can't install do_sqlite3 on windows #57

dsisnero opened this Issue Jun 11, 2013 · 1 comment


None yet
2 participants

C:\Documents and Settings\Dominic E Sisneros>ruby -v
ruby 1.9.3p429 (2013-05-15) [i386-mingw32]

C:\Documents and Settings\Dominic E Sisneros>gem install do_sqlite3
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing do_sqlite3:
ERROR: Failed to build gem native extension.

C:/pw_working/ruby/Ruby193/bin/ruby.exe extconf.rb

checking for sqlite3.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:

Gem files will remain installed in C:/pw_working/ruby/Ruby193/lib/ruby/gems/1.9.1/gems/do_sqlite3-0.10.13 for inspection.
Results logged to C:/pw_working/ruby/Ruby193/lib/ruby/gems/1.9.1/gems/do_sqlite3-0.10.13/ext/do_sqlite3/gem_make.out

C:\Documents and Settings\Dominic E Sisneros>more c:\pw_working\ruby\Ruby193\lib\ruby\gems\1.9.1\gems\do_sqlite3-0.10.13\ext\do_sqlite3\mkmf.log
have_header: checking for sqlite3.h... -------------------- no

"gcc -o conftest -IC:/pw_working/ruby/Ruby193/include/ruby-1.9.1/i386-mingw32 -IC:/pw_working/ruby/Ruby193/include/ruby-1.9.1/ruby/backward -IC:/pw_working/ru
by/Ruby193/include/ruby-1.9.1 -I. -I/usr/local/include -I/opt/local/include -I/usr/include -DFD_SETSIZE=2048 -DFD_SETSIZE=2048 -O3 -fno-omit-frame-pointer -
g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-stat
ement -Wimplicit-function-declaration -Wall -DHAVE_NO_DATETIME_NEWBANG conftest.c -L. -LC:/pw_working/ruby/Ruby193/lib -L/usr/local/lib -L/opt/local/lib -L/
usr/lib -L. -lmsvcrt-ruby191 -lshell32 -lws2_32 -limagehlp -lshlwapi "
checked program was:
/* begin _/
1: #include "ruby.h"
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char *_argv)
6: {
7: return 0;
8: }
/* end */

"gcc -E -IC:/pw_working/ruby/Ruby193/include/ruby-1.9.1/i386-mingw32 -IC:/pw_working/ruby/Ruby193/include/ruby-1.9.1/ruby/backward -IC:/pw_working/ruby/Ruby19
3/include/ruby-1.9.1 -I. -I/usr/local/include -I/opt/local/include -I/usr/include -DFD_SETSIZE=2048 -DFD_SETSIZE=2048 -O3 -fno-omit-frame-pointer -g -Wall -
Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wi
mplicit-function-declaration -Wall -DHAVE_NO_DATETIME_NEWBANG conftest.c -o conftest.i"
conftest.c:5:21: fatal error: sqlite3.h: No such file or directory
compilation terminated.
checked program was:
/* begin /
1: #include "ruby.h"
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <sqlite3.h>
end */


dbussink commented Jun 12, 2013

Looks like something went wrong when cross compiling this gem for Windows. I've uploaded Windows binaries and fixed the build task to solve this.

dbussink closed this in 6d4236f Jun 12, 2013

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