From: Kerry Perez Date: 2013-07-22T06:59:29+09:00 Subject: Re: SQLite3 Ruby 2.0 on Windows Hi Scott, I tried what you did, but when I do this part: > C:\knapsack>gem install sqlite3 --platform=ruby -- > --with-opt-dir=C:/Knapsack I still get this: C:\knapsack>gem install sqlite3 --platform=ruby -- --with-opt-dir=C:/knapsack Temporarily enhancing PATH to include DevKit... Building native extensions with: '--with-opt-dir=C:/knapsack' This could take a while... ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension. C:/Ruby200/bin/ruby.exe extconf.rb --with-opt-dir=C:/knapsack checking for sqlite3.h... *** 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 --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:/Ruby200/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}/ --enable-local --disable-local C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:430:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:561:in `try_cpp' from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:1085:in `block in find_header' from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:891:in `block in checking_for' from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:336:in `block (2 levels) in postpone' from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:306:in `open' from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:336:in `block in postpone' from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:306:in `open' from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:332:in `postpone' from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:890:in `checking_for' from C:/Ruby200/lib/ruby/2.0.0/mkmf.rb:1084:in `find_header' from extconf.rb:34:in `
' Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.7 for inspection. Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.7/ext/sqlite3/gem_make.out and here is my mkmf.log file "gcc -o conftest.exe -I C:/Ruby200/include/ruby-2.0.0/i386-mingw32 -I C:/Ruby200/include/ruby-2.0.0/ruby/backward -I C:/Ruby200/include/ruby-2.0.0 -I. -I C:/knapsack/include -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration conftest.c -L. -L C:/Ruby200/lib -L C:/knapsack/lib -L. -lmsvcrt-ruby200 -lshell32 -lws2_32 -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 */ I'm using ruby 2.0.0p247 (2013-06-27) [i386-mingw32] and my devkit version is mingw64-32-4.7.2. Could you please help me with this? Thanks -- Posted via http://www.ruby-forum.com/.