PDF-API2无法实现

发布于 2024-11-03 08:46:04 字数 1707 浏览 6 评论 0原文

使用 Perl 5升级到 Kernel Linux 2.6.37.1-1.2-desktop x86_64 后, 版本 12,颠覆 3 (v5.12.3) 为 x86_64-linux-thread-multi 构建

模块 PDF-API2

perl-PDF-API2-0.73-10.1.x86_64.rpm 包中的 (openSuSE 11.4 中的最新可用版本)无法再通过使用

“use PDF::API2”

在我的 perl 脚本“letterbox.pl”中实现,现在每次我尝试该页面时,都会收到错误 500。 问题一定出在模块上,因为如果我这样做,错误就不会再次出现 注释第 5 行“使用 PDF::API2”。

这是错误日志


[Wed Apr 27 16:17:35 2011] [error] [client ::1] Unicode::UCD: 在 /usr/lib/ 中找不到 UnicodeData.txt perl5/site_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/5.12.3 。在 /usr/lib/perl5/vendor_perl/5.12.3/PDF/API2/Resource/Font/BdFont.pm 第 45 行 [Wed Apr 27 16:17:35 2011] [error] [client ::1] 在 /usr/lib/perl5/vendor_perl/5.12.3/PDF/API2/Resource/Font/BdFont.pm 行的 require 中编译失败45.

[2011 年 4 月 27 日星期三 16:17:35] [错误] [客户::1] BEGIN 失败 - 编译在 /usr/lib/perl5/vendor_perl/5.12.3/PDF/API2/Resource/Font/BdFont.pm 第 45 行中止。

[Wed Apr 27 16:17:35 2011] [错误] [客户端::1] 要求编​​译失败/usr/lib/perl5/vendor_perl/5.12.3/PDF/API2.pm 第 67 行。

[Wed Apr 27 16:17:35 2011] [error] [client ::1] BEGIN 失败 - 编译在 /usr 处中止/lib/perl5/vendor_perl/5.12.3/PDF/API2.pm 第 67 行。

[四月星期三27 16:17:35 2011] [错误] [客户 ::1] 在 /home/hedele/lawsuit/cgi-bin/letterbox.pl 第 5 行的 require 中编译失败。

[2011 年 4 月 27 日星期三 16:17:35] [错误] [客户端 ::1] BEGIN 失败 - 编译中止于/home/hedele/lawsuit/cgi-bin/letterbox.pl 第 5 行。

[Wed Apr 27 16:17:35 2011] [error] [client ::1] 脚本标头提前结束:letterbox.pl


有什么想法吗?

After upgrading to Kernel Linux 2.6.37.1-1.2-desktop x86_64 with Perl 5,
version 12, subversion 3 (v5.12.3) built for x86_64-linux-thread-multi

the module PDF-API2

in the package perl-PDF-API2-0.73-10.1.x86_64.rpm
(newest available version in openSuSE 11.4) can no longer be implemented in my perl script "letterbox.pl" by using

"use PDF::API2"

Every time I try the page now, it get's me an ERROR 500.
The problem must be with the module, as the error does not reappear if I
comment the line 5 "use PDF::API2".

This is the error log:


[Wed Apr 27 16:17:35 2011] [error] [client ::1] Unicode::UCD: failed to find UnicodeData.txt in /usr/lib/perl5/site_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/5.12.3 . at /usr/lib/perl5/vendor_perl/5.12.3/PDF/API2/Resource/Font/BdFont.pm line 45
[Wed Apr 27 16:17:35 2011] [error] [client ::1] Compilation failed in require at /usr/lib/perl5/vendor_perl/5.12.3/PDF/API2/Resource/Font/BdFont.pm line 45.

[Wed Apr 27 16:17:35 2011] [error] [client ::1] BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.12.3/PDF/API2/Resource/Font/BdFont.pm line 45.

[Wed Apr 27 16:17:35 2011] [error] [client ::1] Compilation failed in require at /usr/lib/perl5/vendor_perl/5.12.3/PDF/API2.pm line 67.

[Wed Apr 27 16:17:35 2011] [error] [client ::1] BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.12.3/PDF/API2.pm line 67.

[Wed Apr 27 16:17:35 2011] [error] [client ::1] Compilation failed in require at /home/hedele/lawsuit/cgi-bin/letterbox.pl line 5.

[Wed Apr 27 16:17:35 2011] [error] [client ::1] BEGIN failed--compilation aborted at /home/hedele/lawsuit/cgi-bin/letterbox.pl line 5.

[Wed Apr 27 16:17:35 2011] [error] [client ::1] Premature end of script headers: letterbox.pl


Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终陌 2024-11-10 08:46:04

关键错误是 Unicode::UCD: failed to find UnicodeData.txt in ...Unicode::UCD
module 是 Perl 核心的一部分,UnicodeData.txt 是它存储一些所需数据的地方。

UnicodeData.txt 应该作为 Perl 的一部分安装。要么你以某种方式删除了它,要么你安装了一个有问题的 Perl 包,或者它被分成了你需要安装的其他一些包(这使它成为一个有问题的 Perl 包,因为 Unicode::UCD 不应该被分成一个不同的包)包比其数据文件)。

The key error is Unicode::UCD: failed to find UnicodeData.txt in .... The Unicode::UCD
module is part of the Perl core, and UnicodeData.txt is where it stores some of the data it needs.

UnicodeData.txt should have been installed as part of Perl. Either you deleted it somehow, or you have installed a buggy Perl package, or it got split into some other package you need to install (which makes it a buggy Perl package, because Unicode::UCD shouldn't have been split into a different package than its data files).

花间憩 2024-11-10 08:46:04

这是一个打包错误,正如 cjm 正确推测的那样。作为修复之前的临时措施,请安装包 perl-doc

This is a packaging bug, as cjm correctly surmised. As a provisional measure until it is fixed, install the package perl-doc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文