【发布时间】:2021-11-01 13:56:22
【问题描述】:
我正在尝试在centos7中安装perl的DBD-SQLite V1.70模块。我试过cpanm DBD::SQLite 或从https://metacpan.org/dist/DBD-SQLite 下载。
每次都会出现安装错误“配置此模块需要 DBI 1.57;请安装或升级您的 CPAN/CPANPLUS shell。”但实际上,我已经安装了 DBI V1.643。
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.62)
Checking if you have File::Spec 0.82 ... Yes (3.80)
Checking if you have DBI 1.57 ... Yes (1.643)
DBI 1.57 太旧,无法在 perl V5.34 中安装。
【问题讨论】:
-
DBI 是通过 OS 包管理器还是 cpanm 安装的?
-
你试过运行
cpan DBI吗? -
如果你可以和你系统的系统管理员沟通,那么请他为你安装 sqlite 模块
yum install perl-DBD-SQLite或 CentOS 8dnf install perl-DBD-SQLite。 -
表示 1.57 或更新版本