From: horibo@... (Horst Rischbode) Date: 2001-10-20T01:45:56+09:00 Subject: [ruby-talk:22763] Re: database access from cygwin? Hello, On 19 Oct 2001 07:53:36 -0400, Phil Mitchell wrote: >Michael Neumann writes: > >> >> I've tried MySql, Oracle and DB2 with success. >> >> Where are your problems? >> > >I have been trying to build mysql-ruby-2.3.2a under cygwin on win98SE. I did >finally get it to build, but when I run test.rb, I get the error: dlopen: Win32 >error 1157 ... (LoadError), suggesting a DLL problem (?). To get it to build, I >had to do a couple of things that I don't fully understand including: setting of >$LDFLAGS and $libs in extconf.rb and having to go into mysql.c and add full >paths for mysql.h and errmsg.h. During my installation, I've got the same problems ( including the final error message ). Following Michael's HOWTO leads me to the next problem: I can't build the mysqlclient. "make" produces several error messages. In the existing mysql/lib/opt directory is a file named "mysqlclient.lib" but no "mysqlclient.dll". "libmySQL.lib" has its correspondent "libmySQL.dll". Changing "mysql.c" manually from "mysqlclient" to "libmySQL" brings me through the installation without errors but ends in "Win32 error 1157" when trying to use it. It seems, that a mysqlclient.dll is needed. But how to get? Regards Horst Horst Rischbode --- http://www.users.comcity.de/~horibo/