datamapper / do

DataObjects
147 stars 73 forks source link

can't install do_sqlite3 on windows #57

Closed dsisnero closed 11 years ago

dsisnero commented 11 years ago

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: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/pw_working/ruby/Ruby193/bin/ruby --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib

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 -lws232 -limagehlp -lshlwapi " checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include 4: #include 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_DATETIMENEWBANG 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" 2: 3: #include 4: #include 5: #include /_ end */


dbussink commented 11 years ago

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.