I don't know why your mysql library is there - it should be
installed in the same place as you MySQL installation.
Anyway, you need should use the ldconfig program to tell
FreeBSD's loader where to find the mysqlclient library:
# ldconfig -m /path/to/your/mysql/lib
Don't include the libmysqlclient.so - just the path to the
directory where it is.
You might want to do this in a startup script so that you
won't have to worry about it every time you reboot your
On Sat, Apr 03, 1999 at 04:12:10PM +1000, Ray Brighenti wrote:
> OK here's the deal, I'm using Radiator Radius and am trying get it to log
> to a MySQL DB. The DB is fine, Radiator is logging fine,
> I have the following installed
> DBI-1.06 and Msql-Mysql-modules-1.2014 (I also had to install
> Data-Dumper-2.10 and Data-ShowTable-3.3 before Mysql modules would install).
> and Perl version 5.004_04 built for i386-freebsd.
> Whenever anything is sent to Radiator and it goes to access MySQL the
> following gets spat at me
> Sat Apr 3 15:34:53 1999: DEBUG: Handling with Radius::AuthSQL
> install_driver(mysql) failed: Can't load
> eebsd/auto/DBD/mysql/mysql.so' for module DBD::mysql: Can't find shared
> "libmysqlclient.so.5.2" at
> pm line 166.
> at (eval 23) line 2
> at Radius/SqlDb.pm line 9
> I checked and libmysqlclient.so.5.2 does exist in the
> /usr/local/lib/perl5/i386-freebsd/5.00404/ directory alongside DynaLoader.pm
> I checked line 166 and found this
> my $libref = dl_load_file($file, $module->dl_load_flags) or
> croak("Can't load '$file' for module $module: ".dl_error()."\n")
> This was also before it, but being new to this I can't understand exactaly
> what it's saying
> # Many dynamic extension loading problems will appear to come from
> # this section of code: XYZ failed at line 123 of DynaLoader.pm.
> # Often these errors are actually occurring in the initialisation
> # C code of the extension XS file. Perl reports the error as being
> # in this perl code simply because this was the last perl code
> # it executed.
> If soemone can help me I'd be very, very grateful
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail mysql-thread1362@stripped
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.