找不到电子表格 writeexcel.pm
我收到错误
无法在 @inc @inc 中找到电子表格 writeexcel.pm
是的,我知道,它需要 excel 插件,
我正在使用 straberry perl,
请告诉我在哪里可以找到 PERL 的 excel 插件,以及 shoukld 粘贴该 excel 插件的位置
i am getting Error
can't locate spreadsheet writeexcel.pm in @inc @inc contains
yes i know, it require the excel plugin,
am using straberry perl,
tell me where i find the excel plugin for PERL, and where shoukld paste that excel plugin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在 CPAN 上找到该模块。要以交互方式在草莓 Perl 上安装它,请执行
或(非交互)
编辑:
如果您收到任何有关未实现的依赖项的错误(缺少诸如
OLE::Storage_Lite
之类的模块),请安装使用cpan
这些依赖项,然后继续安装您的软件包。如果您不需要坚持使用 Strawberry Perl,您可以切换到 ActiveState Perl,它带有集成的包管理器 (PPM )安装所需的模块(包括依赖项)。 ActiveState 提供了一个包含预构建模块的存储库,因此不需要编译它们。
@INC
真的是空的吗?如果是这样,您必须设置@INC 以便指定perl 搜索模块的包含目录。此外,我希望错误消息会显示为
如果您使用
use Spreadsheet::WriteExcel;
正确指定了依赖项。You can find the module on CPAN. To install it on strawberry perl interactively, do
or (non-interactive)
Edit:
If you get any errors about unfulfilled dependencies (missing modules like
OLE::Storage_Lite
), install these dependencies usingcpan <dependency>
and then continue installation of your package.If you don't need to stick on Strawberry Perl, you could switch over to ActiveState Perl which comes with an integrated package manager (PPM) that installs the required modules (including dependencies). ActiveState provides a repository with pre-built modules, so they don't need to be compiled.
Is
@INC
really empty? If so, you have to set@INC
in order to specify the include directories for perl to search for modules.Furthermore, I'd expect that the error message would read
if you specified the dependency correctly with
use Spreadsheet::WriteExcel;
.如果您以 root 身份安装它,那么您也需要以 root 身份执行脚本。这为我解决了问题。
If you installed it as root, then you need to execute your script as root as well. This solved the problem for me.