I had the same problem as Daniel (except that i am using Mandrake 7.1) and
after adding the -lz flag to the following line in the Makefile generated by
running "ruby extconf.rb"
DLDFLAGS = -L/usr/lib/mysql -lz
the test.rb runs fine!
Thanks Guy for your tips.
-David
>From: ts <decoux / moulon.inra.fr>
>Reply-To: ruby-talk / netlab.co.jp
>To: ruby-talk / netlab.co.jp (ruby-talk ML)
>CC: ruby-talk / netlab.co.jp
>Subject: [ruby-talk:9275] Re: install of mysql-ruby-2.3.1 on mandrake 7.2
>Date: Sun, 14 Jan 2001 20:30:52 +0900
>
> >>>>> "D" == Daniel Nicault <daniel.nicault / free.fr> writes:
>
>D> I use mysql 3.23.23-beta, do you have an idea about what is wrong?
>
> If mysql was built from the source verify that -lz was specified and you
>have the library libz
>
> You can try
> * re-run ldconfig
> * if it don't work try to build the extension with -lz
>
>
>Guy Decoux
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.