6

我试过:

cpan> i /xls2csv/
No objects found of any type for argument /xls2csv/

cpan> install xls2csv
Warning: Cannot install xls2csv, don't know what it is.
Try the command

i /xls2csv/

to find objects with matching identifiers.

我在安装注册模块时没有任何问题,例如

cpan> install DateTime

只是 xls2csv 提供了问题。

感谢您提供的任何见解。

PS 使用 ActivePerl 5.10 限制到 Windows(我认为)我还下载了 xls2csv-1.06.tar.gz 文件并尝试了 cpan> install C:/...path to file local/xls2csv-1.06.tar.gz

这似乎不起作用,我必须在本地安装。

4

3 回答 3

19

CPAN.pm 使用的索引都是面向模块的,所以它们看不到不包含模块的发行版。(xls2csv 只有一个脚本。)您仍然可以通过提供发行版的完整路径(在 authors/id 下)来安装它们,就像安装旧版本或开发版本的发行版一样:

cpan> install K/KE/KEN/xls2csv-1.06.tar.gz
于 2009-06-14T06:29:43.667 回答
1

这是一个 5 年历史的脚本,在 Mac 上几乎没有测试(7 个),还有一个错误报告(一岁)。它似乎自编写以来尚未更新,因此请根据实际期望使用此脚本。换句话说,如果你不能让它工作,不要感到惊讶。

于 2009-06-14T06:58:26.157 回答
1

如果您使用我的 cpan(1) 命令,您还可以通过告诉它安装“.”来安装当前工作目录中的任何内容。

% cpan .

这应该会触发正常的 CPAN.pm 进程来处理依赖关系等。您也应该能够在 CPAN.pm shell 中执行此操作。

If you want to fetch the file from a CPAN mirror, you can do it as ysth suggested. You give it the path under authors/id in the repository and CPAN.pm will find it for you. You're skipping the step where it looks in the PAUSE index because you've already given it the path to download.

于 2009-06-14T16:00:32.047 回答