Setup:
ms c/c++: v 13.00.9466 (vs studio .net)
mysql: v 3.23.49-nt
ruby mysql: mysql-ruby-2.4.2a
when I run: ruby extconf.rb --with-mysql-dir=/MySQL
I get:
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lm… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lz… no
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lsocket… no
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lnsl… no
checking for mysql_query() in -lmysqlclient… no
contents of c:\MySQL\lib:
02/22/2002 04:03 AM 233,472 libmySQL.dll
02/22/2002 04:03 AM 19,764 libmySQL.lib
02/22/2002 04:01 AM 500,872 mysqlclient.lib
02/22/2002 04:00 AM 82,704 zlib.lib
extconf.rb code:
require 'mkmf’
inc, lib = dir_config(‘mysql’, ‘/usr/local’)
libs = [‘m’,‘z’,‘socket’,‘nsl’]
while not find_library(‘mysqlclient’, ‘mysql_query’, lib,
"#{lib}/mysql") do
exit 1 if libs.empty?
have_library(libs.shift)
end
have_header(‘mysql.h’) or have_header(‘mysql/mysql.h’) or exit 1
create_makefile(“mysql”)