From: Micke Date: 2001-05-29T18:57:02+09:00 Subject: [ruby-talk:15920] Re: Ruby/MySQL Configuration Difficulty I think uncompress might be found in zlib so try to link mysql with zlib. If so add -lz to the makefile. /Micke Monday, May 28, 2001, 10:30:09 PM, you wrote: PB> Hello Ruby-talk, PB> I have been watching this list for a few weeks now, I have bought and read PB> the pickaxe book (nice Work Dave and Andrew), I have been playing with Ruby, PB> and am very impressed with this elegant, succinct and capable language. PB> I have one problem - MySQL support. PB> My system: PB> I have Red Hat Linux 7.1. PB> I have MySQL Ver 11.15, Distrib 3.23.37 installed and running. PB> I have Ruby 1.6.3 compiled in: PB> ~/ruby-1.6.3 PB> Ruby is installed (make install), and working. PB> The problem: PB> I downloaded mysql-ruby-2.3.2a.gz. PB> I extracted the tar file contents into: PB> ~/ruby-1.6.3/ext/mysql PB> I modified the extconf.rb file to point at /usr/local/mysql PB> I tried to make, but it failed because of '#include ' PB> I removed the directory 'mysql/' and now it compiles fine. PB> I then ran: PB> ruby -I. ./test.rb host user pw PB> (with appropriate values inserted), and I got this error: PB> ./test.rb:11:in 'require': ./mysql.so: undefined symbol: uncompress - PB> ./mysql.so (LoadError) from ./test.rb:11 PB> Could someone please point out my mistake? PB> Thank you. PB> Paul.