gpt4 book ai didi

linux - 无法在@INC 中找到 Spreadsheet/ParseExcel.pm,尽管它似乎已安装

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:47:57 36 4
gpt4 key购买 nike

Can't locate Spreadsheet/ParseExcel.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .)

虽然已安装:

% perl -e'use CPAN; install "Spreadsheet:WriteExcel"'

Going to read '/home/aspect_mkn8rd/.cpan/Metadata'
Database was generated on Sun, 27 Apr 2014 09:41:02 GMT
Spreadsheet::WriteExcel is up to date (2.40).

这就是它所在的位置,是吗?

% ls -la /usr/local/lib/perl/5.14.2/auto/Spreadsheet/WriteExcel

total 12
drwxrwxr-x 2 root root 4096 апр. 28 13:11 .
drwxrwxr-x 3 root root 4096 апр. 28 13:11 ..
-rw-rw-r-- 1 root root 2519 апр. 28 13:11 .packlist


% cat /usr/local/lib/perl/5.14.2/auto/Spreadsheet/WriteExcel/.packlist

/usr/local/bin/chartex
/usr/local/man/man1/chartex.1p
/usr/local/man/man3/Spreadsheet::WriteExcel.3pm
/usr/local/man/man3/Spreadsheet::WriteExcel::BIFFwriter.3pm
<..>
/usr/local/man/man3/Spreadsheet::WriteExcel::Workbook.3pm
/usr/local/man/man3/Spreadsheet::WriteExcel::Worksheet.3pm
/usr/local/share/perl/5.14.2/Spreadsheet/WriteExcel.pm
/usr/local/share/perl/5.14.2/Spreadsheet/WriteExcel/BIFFwriter.pm
/usr/local/share/perl/5.14.2/Spreadsheet/WriteExcel/Big.pm
<..>
/usr/local/share/perl/5.14.2/Spreadsheet/WriteExcel/Workbook.pm
/usr/local/share/perl/5.14.2/Spreadsheet/WriteExcel/Worksheet.pm

% perldoc -l Spreadsheet::WriteExcel

/usr/local/share/perl/5.14.2/Spreadsheet/WriteExcel.pm

那为什么呢?我该怎么办?

最佳答案

Spreadsheet::ParseExcelSpreadsheet::WriteExcel是不同的模块。

前者你也安装了吗?

如果没有,只需执行以下操作:

perl -e'use CPAN; install "Spreadsheet::ParseExcel"'

关于linux - 无法在@INC 中找到 Spreadsheet/ParseExcel.pm,尽管它似乎已安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23335497/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com