On Sat, Sep 21, 2002 at 01:15:45PM +0100, nemesis wrote:
> Now I ran the command:
> 
> # perl Makefile.PL --cflags=-I/usr/local/mysql/include/mysql 
> --libs=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm

I think you need to put quotes around your --libs argument to stop
your shell splitting it on spaces, i.e.
"--libs=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm"

> which produced the following output:
> 
> --------------------------------------------------------
> Unknown option: lmysqlclient
> Unknown option: lz
> Unknown option: lcrypt
> Unknown option: lnsl
> Unknown option: lm

This looks like your --libs argument has been split by your shell, so
Makefile.PL is receiving six arguments instead of one.

> Now when I run a program that uses DBD::mysql I get the error:
> 
> /usr/bin/perl: error while loading shared libraries: 
> /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/auto/DBD/mysql/mysql.so: 
> undefined symbol: mysql_init

That's probably because the mysql libraries (-lmysqlclient) were not
linked in earlier.

> and I am completely stumped, what have I done wrong here?  Is this an 
> installation problem, or a problem with the versions of MySQL and 
> DYD::mysql I am using?

An installation problem I think.

> TIA,
> Will.

Hope this helps.

-- 
John
[Parrot] will have reflection, introspection, and Deep Meditative
Capabilities.
                    Dan Sugalski, 2002/07/11, [EMAIL PROTECTED]

Reply via email to