简体   繁体   English

如何安装过时的Perl CPAN模块

[英]How to install obsolete Perl CPAN modules

I need to get a program up and running and at this point in time cannot upgrade the obsolete Perl module. 我需要启动并运行一个程序,此时无法升级过时的Perl模块。

In particular, I want to install this: 特别是,我想安装这个:

DBD-mysql-3.0008 DBD-mysql的-3.0008

Usage: 用法:

use Msql;

$dbh = Msql->connect($host);

How can I get this module working? 如何让这个模块工作? In the long term of course the software will be rewritten to use: 从长远来看,软件将被重写使用:

DBD::mysql DBD :: mysql的

It's easy with the help of cpan tool: 在cpan工具的帮助下很容易:

cpan CAPTTOFU/DBD-mysql-3.0008.tar.gz

Note you have to specify the concrete version, instead of 请注意,您必须指定具体版本,而不是

cpan DBD::mysql

which installs the lastest version. 它安装了最新版本。 You also can use the cpanm tool, in this way: 你也可以用这种方式使用cpanm工具:

cpanm DBD::mysql@3.0008

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM