···
-
D:\temp\sqlite-ruby-1.2.0>ver
Microsoft Windows 2000 [Version 5.00.2195]
D:\temp\sqlite-ruby-1.2.0>ruby -v
ruby 1.8.2 (2004-06-04) [i386-mswin32]
D:\temp\sqlite-ruby-1.2.0>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
D:\temp\sqlite-ruby-1.2.0>ruby install.rb
cp ext/extconf.rb ext/sqlite.c build
cp -r lib build
cd build
checking for main() in sqlite.lib... no
checking for sqlite.h... yes
checking for sqlite_open() in sqlite.lib... no
make: *** No targets specified and no makefile found. Stop.
could not build sqlite module
D:\temp\sqlite-ruby-1.2.0\build>type mkmf.log
have_library: checking for main() in sqlite.lib... -------------------- no
"cl -nologo -Feconftest -ID:/temp/sqlite-ruby-1.2.0/build -Id:/ruby/lib/ruby
/1.8/i386-mswin32 -I. -I./.. -I./../missing -MD -Zi -O2b
2xg- -G5 conftest.c msvcrt-ruby18-static.lib sqlite.lib oldnames.lib
user32.lib advapi32.lib wsock32.lib -link -libpath:"d:/
ruby/lib" -stack:0x2000000"
conftest.c
LINK : fatal error LNK1104: cannot open file "sqlite.lib"
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { main(); return 0; }
/* end */
"cl -nologo -Feconftest -ID:/temp/sqlite-ruby-1.2.0/build -Id:/ruby/lib/ruby
/1.8/i386-mswin32 -I. -I./.. -I./../missing -MD -Zi -O2b
2xg- -G5 conftest.c msvcrt-ruby18-static.lib sqlite.lib oldnames.lib
user32.lib advapi32.lib wsock32.lib -link -libpath:"d:/
ruby/lib" -stack:0x2000000"
conftest.c
LINK : fatal error LNK1104: cannot open file "sqlite.lib"
checked program was:
/* begin */
#include <winsock2.h>
#include <windows.h>
/*top*/
int main() { return 0; }
int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */
--------------------
have_header: checking for sqlite.h... -------------------- yes
"cl -ID:/temp/sqlite-ruby-1.2.0/build -Id:/ruby/lib/ruby/1.8/i386-mswin32 -I
-I./.. -I./../missing -MD -Zi -O2b2xg- -G5 conftest.c
-P"
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
conftest.c
checked program was:
/* begin */
#include <sqlite.h>
/* end */
--------------------
have_library: checking for sqlite_open() in
sqlite.lib... -------------------- no
"cl -nologo -Feconftest -ID:/temp/sqlite-ruby-1.2.0/build -Id:/ruby/lib/ruby
/1.8/i386-mswin32 -I. -I./.. -I./../missing -MD -Zi -O2b
2xg- -G5 conftest.c msvcrt-ruby18-static.lib sqlite.lib oldnames.lib
user32.lib advapi32.lib wsock32.lib -link -libpath:"d:/
ruby/lib" -stack:0x2000000"
conftest.c
LINK : fatal error LNK1104: cannot open file "sqlite.lib"
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { sqlite_open(); return 0; }
/* end */
"cl -nologo -Feconftest -ID:/temp/sqlite-ruby-1.2.0/build -Id:/ruby/lib/ruby
/1.8/i386-mswin32 -I. -I./.. -I./../missing -MD -Zi -O2b
2xg- -G5 conftest.c msvcrt-ruby18-static.lib sqlite.lib oldnames.lib
user32.lib advapi32.lib wsock32.lib -link -libpath:"d:/
ruby/lib" -stack:0x2000000"
conftest.c
conftest.c(6) : error C2065: 'sqlite_open' : undeclared identifier
checked program was:
/* begin */
#include <winsock2.h>
#include <windows.h>
/*top*/
int main() { return 0; }
int t() { void ((*volatile p)()); p = (void ((*)()))sqlite_open; return 0; }
/* end */
--------------------
D:\temp\sqlite-ruby-1.2.0\build>
----------------------8<----------------------------------------------------
-
thanks,
--.Pinelo.
----- Original Message -----
From: "Jamis Buck" <jgb3@email.byu.edu>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Sent: Thursday, July 01, 2004 11:56 AM
Subject: [ANN] SQLite-Ruby 1.2.0
SQLite-Ruby is a module for accessing SQLite (http://www.sqlite.org)
databases from Ruby.
http://rubyforge.org/projects/sqlite-ruby
This release adds support for Ara Howard's "arrayfields" module. If that
module is installed, each row of a result set will be returned as an
Array, instead of a Hash. SQLite-Ruby will function without arrayfields,
however, in which case each row is returned as a Hash (as before).
The most significant change in this release is that columns in result
sets are numbered starting at 0, instead of 1. This may cause existing
SQLite-Ruby programs to fail if you upgrade, so proceed with caution!
Caveat emptor!
Other minor changes: the install script has been modified so that any
parameters you give to it are passed through to the extconf.rb script.
This allows you to (for instance) specify a custom location for the
sqlite libraries and header files. (Thanks, Ara and Ludo!)
As before, this is available as a gem, so you can just type "gem -i
sqlite" and have it installed for you. Additionally, you can use "gem
--gen-rdoc --run-tests -i sqlite" to generate the documentation and run
the test suite at the same time.
For those that are "gem-challenged", the library is available in bz2,
gz, and zip format as well.
--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis
ruby -ropenssl
-e'k="01234567";p((c,c.padding,c.iv,c.key=OpenSSL::Cipher::BF.new,0,k,k*2)
[0].decrypt.update("1A81803C452C324619D319F980D5B84DBB45FC0FE2BAA045".scan(/
./).map{|n|n.to_i(16).chr}.join))'