/usr/lib/dld.sl: Unresolved symbol

I am trying to port a Perl script that uses a MySQL database to an HP-
UX server. I've installed Perl (v5.6.1 built for PA-RISC2.0), and
MySql (Server version: 5.0.51a MySQL Community Server (GPL)). I've
also installed the Perl module DBD-mysql-4.007. When the script tries
to connect to the database (DBI->connect($DSN, $DBUSER, $DBPW)), I get
this output:

/usr/lib/dld.sl: Unresolved symbol: mysql_init (code) from /opt/

Googling, I find lots of people running lots of scripts (not just
Perl) who get similar messages for lots of different symbols, but I
can't find a solution that works. I've already tried setting both
LD_LIBRARY_PATH=/opt/mysql/lib and LD_PRELOAD=/opt/mysql/lib, to no
avail. Running /opt/mysql/bin/mysql works, even without those being

Can anyone help? Thanks!

P.S. Running uname -a returns this:

HP-UX hqhpubu8 B.11.11 U 9000/800 1563736587 unlimited-user license