Create  Edit  Diff  Liam  Index  Search  Changes  History  Source  RSS  wikifarm  Login

mysql-ruby

MySQL Ruby Module ver2.4.2-1 for windows binaries RAA:mysql-ruby-win

1.8

MySQL Ruby API MySQL Windows cygwinmingw32mswin32 ruby1.6.6 ruby test.rb

 Linux    3.23.41
 WinNT4WS 3.23.38-nt(同じマシン)

% ruby install.rb -n

()

 ex.
   install
     mingw32/mysql.so => e:/usr/local/mingw/lib/ruby/site_ruby/1.6/i686-mingw32

Config::CONFIGrbconfig.rbMSWin32 http://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ ruby-1.6.6-i586-mswin32.zip

ActiveRuby? Apollo

(see. ruby -e 'p $:' )

originalfiles/test.rb (^^;

Cygwin

Cygwin-1.3.9 mysql-3.23.47 client zlib zlib-1.1.3 libzstatic.a upx

mysql-ruby-2.4.2 extconf.rb

 $ cat extconf.rb
 require 'mkmf'
 have_library('zstatic')
 inc, lib = dir_config('mysql', '/usr/local')
 find_library('mysqlclient', 'mysql_query', lib, "#{lib}/mysql") or exit 1
 # If you have error such as 'undefined symbol', delete '#' mark follow
 # lines:
 #have_library('m')
 #have_library('z')
 have_header('mysql.h') or have_header('mysql/mysql.h') or exit 1
 create_makefile("mysql")

mingw32

libmysqlclient MinGW port http://www.johnydog.cz/projects.php MySQL 3.23.43 mingw Source

(STDCALL)

 #
 --- Makefile.org        Thu Oct  4 01:52:38 2001
 +++ Makefile    Wed Jan 23 21:59:39 2002
 @@ -14,18 +14,18 @@
  # team. Please see http://www.mysql.com in that case.
  #

 -CROSS_DIR = /usr/local/cross-tools/i386-mingw32msvc
 -CFLAGS = -O2 -Wall
 +CROSS_DIR = /usr/local/mingw
 +CFLAGS = -Os -Wall
  LIBS =
  INCLUDES = -I./include

  INSTALL_INCLUDES = $(CROSS_DIR)/include/mysql/
  INSTALL_LIBS = $(CROSS_DIR)/lib/

 -CC = $(CROSS_DIR)/bin/gcc
 -RANLIB = $(CROSS_DIR)/bin/ranlib
 -AR = $(CROSS_DIR)/bin/ar
 -ARFLAGS = cr
 +CC = gcc -bmingw #$(CROSS_DIR)/bin/gcc
 +#RANLIB = $(CROSS_DIR)/bin/ranlib
 +#AR = $(CROSS_DIR)/bin/ar
 +ARFLAGS = cru
  RM = rm -f
  CP = cp
  MV = mv
 @@ -83,4 +83,4 @@
  clean:
         rm -f $(OBJECTS) libmysqlclient.a

 -
 \ No newline at end of file
 +
 --- include/mysql.h-orig        Thu Oct 18 01:24:52 2001
 +++ include/mysql.h     Wed Jan 23 21:03:18 2002
 @@ -48,6 +48,10 @@
  #else
  #define STDCALL __stdcall
  #endif

 +#if !defined(__MINGW32__)
 +#define STDCALL
 +#endif
 +
  typedef char * gptr;

  #ifndef ST_USED_MEM_DEFINED

Ruby MySQL extconf.rb libmysqlclient wsock32 zlib

 $ cat extconf.rb
 require 'mkmf'
 inc, lib = dir_config('mysql', '/usr/local')

 have_library('z')
 have_library('wsock32')
 # find_library('mysqlclient', 'mysql_query', lib, "#{lib}/mysql") or exit 1
 have_library('mysqlclient')

 # If you have error such as 'undefined symbol', delete '#' mark follow
 # lines:
 #have_library('m')
 have_header('mysql.h') or have_header('mysql/mysql.h') or exit 1
 create_makefile("mysql")

mswin32

http://www.sfc.keio.ac.jp/~s01397ms/d/?date=20020201#p06

http://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ mswin32-ruby16.lib mingw32 Makefile $(LDSHARED)-lmingw32-ruby16 -lmswin32-ruby16 :-)

ruby -i.bak -pe 'sub(/mingw32-/, "mswin32-")' Makefile

http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-list/33461?33335-33630

MySQL/Ruby

MySQL

2002-02-04  2.4.2-1
 * mswin32版と install.rb を追加。

2002-01-29  2.4.2
 * 配布開始

(bbs plugin is disabled).

- (2010-01-11 () 04:23:39)

! http://candice.h.fc2.com/ (comment plugin is disabled).

Windows + Ruby - HN (2003-09-13 () 19:52:09)

Windows + Ruby + Ruby 1.6 + Ruby/DBI 使 ODBC

(comment plugin is disabled).
Last modified:2010/01/29 23:29:44
Keyword(s):
References: