简体   繁体   English

如何使用 perl v5.6.1 安装 SpreadSheet::ParseExcel

[英]How to install SpreadSheet::ParseExcel using perl v5.6.1

I am trying to install SpreadSheet::ParseExcel on Solaris but it fails with this error,我正在尝试在 Solaris 上安装 SpreadSheet::ParseExcel 但它失败并出现此错误,

Perl v5.8.0 required—this is only v5.6.1, stopped at需要 Perl v5.8.0 — 这只是 v5.6.1,停在

Is this module not compatible with perl v5.6.1?这个模块不兼容 perl v5.6.1 吗? I tried using many other modules( SpreadSheet::Read, SpreadSheet::XLSX) to read excel in perl v5.6.1.我尝试使用许多其他模块(SpreadSheet::Read、SpreadSheet::XLSX)来读取 perl v5.6.1 中的 excel。 All of them internally use SpreadSheet::ParseExcel and eventually fail.他们都在内部使用 SpreadSheet::ParseExcel 并最终失败。

Is there anyway to get through this issue?有没有办法解决这个问题? Please help.请帮忙。

If you read the Changes file for Spreadsheet::ParseExcel , you'll see如果您阅读Spreadsheet::ParseExcel更改文件,您会看到

0.53 August 24 2009

    + Made perl 5.8.0 a requirement for proper Unicode handling.

So, if you get Spreadsheet-ParseExcel-0.52.tar.gz from BackPan , you should be able to install it on 5.6.1.因此,如果您从 BackPan 获得Spreadsheet-ParseExcel-0.52.tar.gz 您应该能够在 5.6.1 上安装它。 Of course, you won't get any bug fixes or new features from newer wersions.当然,您不会从较新的版本中获得任何错误修复或新功能。 You may also need to fetch some of its prerequisites from BackPan, if their current releases won't install on 5.6.1.如果当前版本无法在 5.6.1 上安装,您可能还需要从 BackPan 获取它的一些先决条件。

But you should really consider building a newer version of Perl for that system.但是您真的应该考虑为该系统构建更新版本的 Perl。 perlbrew can make that easier to do. perlbrew可以使这更容易做到。

If you're on Solaris 9, looks like you'll have to build a newer version of Perl from source.如果您使用的是 Solaris 9,您似乎必须从源代码构建更新版本的 Perl。

If you're on Solaris 10, Google suggests that you should have Perl 5.8.x also available on the system, and you may need to change settings to favour 5.8 over 5.6.如果您使用的是 Solaris 10,Google 建议您应该在系统上安装 Perl 5.8.x,您可能需要更改设置以支持 5.8 而不是 5.6。

Other than that, I think you're out of luck -- 5.6.1 is ten years old, and very few modules will have legacy support that far back.除此之外,我认为你很不走运——5.6.1 已经有十年了,而且很少有模块会支持这么久。 There are versions of Spreadsheet::ParseExcel on CPAN from 2002, which don't require Perl 5.8, but you won't be able to guarantee support for anything changed in the XLS file format after Office XP, and you won't be able to work with XLSX files.从 2002 年开始,CPAN 上的 Spreadsheet::ParseExcel 版本不需要 Perl 5.8,但您将无法保证支持 Office XP 之后 XLS 文件格式中的任何更改,并且您将无法使用 XLSX 文件。

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

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