Em 09/12/2017 03:56, Edgar Pettijohn escreveu:
I'm playing around with some perl cgi. I'm trying to use DBD::mysql but
keep getting errors.

There has been an error: install_driver(mysql) failed: Can't load
'/usr/local/libdata/perl5/site_perl/amd64-openbsd/auto/DBD/mysql/mysql.so'
for module DBD::mysql: Cannot load specified object at /usr/libdata/perl5/
amd64-openbsd/DynaLoader.pm line 193. at (eval 19) line 3. Compilation
failed in require at (eval 19) line 3. Perhaps a required shared library
or dll isn't installed where expected at /usr/local/libdata/perl5/site_perl
/CGI/Application/Plugin/DBH.pm line 40.

I also added 'use diagnostics', but it didn't add anything to the error.
I also built from source to see if there were any obvious errors from
make test, but everything passed.

$ pkg_info | grep DBD
p5-DBD-mysql-4.042  MySQL drivers for the Perl DBI

My chroot is kept up to date with rsync.
$ cat /home/edgar/bin/syncperl
doas rsync -avz /usr/local/libdata/perl5/ /var/www/usr/local/libdata/perl5/


Does it work outside the chroot?

Reply via email to