From: "林 浩一郎" Date: 2006-06-09T23:22:04+09:00 Subject: [ruby-list:42371] MySQL/Ruby for Windowsでの不具合 ------=_NextPart_000_0015_01C68C1B.952121E0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0016_01C68C1B.952121E0" ------=_NextPart_001_0016_01C68C1B.952121E0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit 初めまして林と申します。 MySQL/Ruby for Windows - http://vandomburg.net/pages/mysql-ruby-windowsより ZIPファイル(MySQL/Ruby2.7-r1)をダウウンロードし、Set Up手順1〜3に沿って やってみましたが手順3.の To verify.try to run the following code: のところで     require 'mysql' puts Mysql::VERSION を例えば,test.rbとして作成し、コマンドプロンプトで ruby test.rbを実行したと ころ、20700でははなく、 エラーとして、返ってきました。(添付ファイルを参照ください) どなたか原因および解決方法がおわかりでしたら、ご教示お願い致します。 (環境) OS:Windows 2000 Server Service Pack4 Ruby version : 1.8.4 MySQL version : 5.1.9 beta版                                         ー以上 ------=_NextPart_001_0016_01C68C1B.952121E0 Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable
=1B$B=3Di$a$^$7$FNS$H?=3D$7$^$9!#=1B(B
MySQL/Ruby for Windows - http://vandomburg= .net/pages/mysql-ruby-windows=1B$B$h$j=1B(B
ZIP=1B$B%U%!%$%k!J=1B(BMySQL/Ruby2.7-r1)=1B$B$r%@%&%&%s%m!<%I$7!"= =1B(BSet=20 Up=1B$B
=
To verify.try to run the following=20 code:
=1B$B$N$H$3$m$G=1B(B
=1B$B!!!!!!!!=1B(Brequire = 'mysql'
        =20 puts Mysql::VERSION
=1B$B$rNc$($P=1B(B,test.rb=1B$B$H$7$F:n@.$7!"%3%^%s%I%W%m%s%W%H$G= =1B(B ruby=20 test.rb=1B$B$r
=1B$B%(%i!<$H$7$F!"JV$C$F$-$^$7$?!#!JE:IU%U%!%$%k$r;2>H$/$@$5$$!K= =1B(B
=1B$B$I$J$?$+860x$*$h$S2r7hJ}K!$,$*$o$+$j$G$7$?$i!"$465<($*4j$$CW= $7$^$9!#=1B(B
=1B$B!J4D6-!K=1B(B
OS:Windows 2000 Server Service = Pack4
Ruby version : 1.8.4
MySQL version : 5.1.9 = beta=1B$BHG=1B(B
=1B$B!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!= !!!!!!!!!!!!!!!!!!!<0J>e=1B(B
------=_NextPart_001_0016_01C68C1B.952121E0-- ------=_NextPart_000_0015_01C68C1B.952121E0 Content-Type: text/plain; name="mysql-ruby3.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="mysql-ruby3.txt" Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\Administrator.LOCAL>cd c:\ C:\>cd work1\demo C:\work1\demo>ruby test.rb c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/mysql.so: 998: = =83=81=83=82=83=8A =83=8D=83P=81[=83V=83=87=83=93=82=D6 =82=CC=83A=83N=83Z=83X=82=AA=96=B3=8C=F8=82=C5=82=B7=81B - = c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/mysql.so ( LoadError) from = c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re quire' from test.rb:1 C:\work1\demo> ------=_NextPart_000_0015_01C68C1B.952121E0--