From: Charles Roper Date: 2007-04-24T21:07:46+09:00 Subject: Re: Installing Ruby, Sqlite3, Sqlite3-Ruby on Cygwin Brian Candler wrote: > On Tue, Apr 24, 2007 at 01:49:03AM +0900, Charles Roper wrote: >> ruby extconf.rb install sqlite3-ruby-1.2.1.gem >> checking for sqlite3.h... no >> >> make >> make: *** No rule to make target `ruby.h', needed by >> `sqlite3_api_wrap.o'. Stop >> . > > You don't have the Ruby header files available. > > I could tell you how to fix this if it were Ubuntu or Debian Linux: > > apt-get install ruby1.8-dev > > But I'm afraid I don't know how to fix it for your Windows setup. > Perhaps > the Ruby package you're using comes in several parts, like Debian does. Thanks Brian. I've obtained the Ruby source files from the Cygwin setup utility (package manager) and they reside in /usr/src/ruby-1.8.5-3. Chris Lowis kindly provided me a link to a post he made, but unfortunately this didn't work either. It seems that the process is failing at the make install stage: $ make install rm -rf tsrc mkdir -p tsrc cp ../src/alter.c ../src/analyze.c ../src/attach.c ../src/auth.c ../src/btree.c ../src/btree.h ../src/build.c ../src/callback.c ../src/complete.c ../src/date.c ../src/delete.c ../src/expr.c ../src/func.c ../src/hash.c ../src/hash.h ../src/insert.c ../src/legacy.c ../src/loadext.c ../src/main.c ../src/os.c ../src/os_unix.c ../src/os_win.c ../src/os_os2.c ../src/pager.c ../src/pager.h ../src/parse.y ../src/pragma.c ../src/prepare.c ../src/printf.c ../src/random.c ../src/select.c ../src/shell.c ../src/sqlite.h.in ../src/sqliteInt.h ../src/table.c ../src/tclsqlite.c ../src/tokenize.c ../src/trigger.c ../src/utf.c ../src/update.c ../src/util.c ../src/vacuum.c ../src/vdbe.c ../src/vdbe.h ../src/vdbeapi.c ../src/vdbeaux.c ../src/vdbefifo.c ../src/vdbemem.c ../src/vdbeInt.h ../src/vtab.c ../src/where.c ../ext/fts1/fts1.c ../ext/fts1/fts1.h ../ext/fts1/fts1_hash.c ../ext/fts1/fts1_hash.h ../ext/fts1/fts1_porter.c ../ext/fts1/fts1_tokenizer.h ../ext/fts1/fts1_tokenizer1.c sqlite3.h ../src/btree.h ../src/hash.h opcodes.h ../src/os.h ../src/os_common.h ../src/sqlite3ext.h ../src/sqliteInt.h ../src/vdbe.h parse.h ../ext/fts1/fts1.h ../ext/fts1/fts1_hash.h ../ext/fts1/fts1_tokenizer.h ../src/vdbeInt.h tsrc cp: warning: source file `../src/btree.h' specified more than once cp: warning: source file `../src/hash.h' specified more than once cp: warning: source file `../src/sqliteInt.h' specified more than once cp: warning: source file `../src/vdbe.h' specified more than once cp: warning: source file `../ext/fts1/fts1.h' specified more than once cp: warning: source file `../ext/fts1/fts1_hash.h' specified more than once cp: warning: source file `../ext/fts1/fts1_tokenizer.h' specified more than once cp: warning: source file `../src/vdbeInt.h' specified more than once rm tsrc/sqlite.h.in tsrc/parse.y cp parse.c opcodes.c keywordhash.h tsrc tclsh ../tool/mksqlite3c.tcl cc sqlite3.c -o sqlite3 /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0xab): undefined reference to `_WinMain@16' collect2: ld returned 1 exit status make: *** [sqlite3] Error 1 *sigh*. I've not had any problems with Cygwin up until now, but I've spent the best part of a day on this and it's proving to be excruciatingly frustrating. Charles -- Posted via http://www.ruby-forum.com/.