p5-DBD-mysql port error

David Newman dnewman at networktest.com
Tue Apr 1 23:57:06 UTC 2014

FreeBSD 9.2 amd64. Installing the p5-DBD-mysql port returns this error:

===>  Configuring for p5-DBD-mysql-4.027
Can't load '/usr/local/lib/perl5/site_perl/5.16/mach/auto/DBI/DBI.so'
for module DBI:
/usr/local/lib/perl5/site_perl/5.16/mach/auto/DBI/DBI.so: Undefined
symbol "PL_thr_key" at /usr/local/lib/perl5/5.16/mach/DynaLoader.pm line
 at /usr/local/lib/perl5/site_perl/5.16/mach/DBI.pm line 278.

How to remedy? I've pasted the output from 'pkg info perl5' below.

Thanks in advance.


$ pkg info perl5

Name           : perl5
Version        : 5.16.3_9
Installed on   : Tue Apr  1 14:45:25 PDT 2014
Origin         : lang/perl5.16
Architecture   : freebsd:9:x86:64
Prefix         : /usr/local
Categories     : perl5 lang devel
Licenses       : GPLv1 or ART10
Maintainer     : perl at FreeBSD.org
WWW            : http://www.perl.org/
Comment        : Practical Extraction and Report Language
Options        :
	DEBUG          : off
	GDBM           : off
	PERL_64BITINT  : on
	PERL_MALLOC    : off
	PTHREAD        : on
	THREADS        : off
	USE_PERL       : on
Shared Libs required:
Flat size      : 47.3MiB
Description    :
Perl is a language that combines some of the features of C, sed, awk and
shell.  See the manual page for more hype.  There are also many books
published by O'Reilly & Assoc.  See pod/perlbook.pod for more

WWW: http://www.perl.org/

$ pkg info p5-DBI

Name           : p5-DBI
Version        : 1.631
Installed on   : Tue Apr  1 16:22:33 PDT 2014
Origin         : databases/p5-DBI
Architecture   : freebsd:9:x86:64
Prefix         : /usr/local
Categories     : perl5 databases
Licenses       : GPLv1 or ART10
Maintainer     : perl at FreeBSD.org
WWW            : http://dbi.perl.org
Comment        : Perl5 Database Interface, required for DBD::* modules
Options        :
	DOCS           : on
	PROXY          : off
Flat size      : 2.07MiB
Description    :
The DBI interface allows perl programs to use DBD (Database Definition)
drivers with a common set of routines.  A program can then (theoretically)
change from using mSQL to Oracle (for example) without changing the entire
program around.

This DBI interface is not yet fully specified. The current development
work is focused on writing drivers, such as DBD::Oracle, which also
implement emulations of old perl4 database interfaces, e.g., oraperl.
This strategy enables the DBI and drivers to serve a useful purpose
whilst allowing the real interface to evolve with experience behind the
emulation interface.

WWW: http://dbi.perl.org
WWW: http://search.cpan.org/dist/DBI/

More information about the freebsd-questions mailing list