DBD :: mysql:mysql.so:undefined symbol:net_buffer_length

时间:2018-06-11 00:44:14

标签: perl

我的脚本在Centos 6.5和Mysql下工作得很好。

我最近搬到了Centos 7和MariaDB的新服务器。

当我运行脚本时,我收到一条消息:

install_driver(mysql) failed: Can't load '/usr/local/lib64/perl5/auto/DBD/mysql/mysql.so' for module DBD::mysql: /usr/local/lib64/perl5/auto/DBD/mysql/mysql.so: undefined symbol: net_buffer_length at /usr/lib64/perl5/DynaLoader.pm line 190, <DATA> line 855. at (eval 55) line 3. Compilation failed in require at (eval 55) line 3, <DATA> line 855. Perhaps a required shared library or dll isn't installed where expected

我已经安装了perl-DBD-MySQL和其他必需的模块。

#!/usr/bin/perlml

use lib '/usr/lib/perl5';
use 5.008;
use strict;
use warnings;

use File::Basename;
use File::Copy;
use File::Path qw(make_path);
use IO::Uncompress::AnyUncompress qw(:all) ;
use IO::File;
use PHP::Functions::Mail qw(mail);
use LWP::Simple;
use Parse::CSV;
use DBI();
use XML::Smart;
use Time::Piece;
use Data::Dumper;   #for debugging purposes only

我不确定还有什么可以寻找。

1 个答案:

答案 0 :(得分:3)

最近对maria db库的更改产生了此错误; DBD :: mysql版本4.046_01有一个修复,但它还没有在非开发版本中。

您可以使用以下方式安装:

cpan MICHIELB/DBD-mysql-4.046_01.tar.gz