问题标签 [activeperl]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1277 浏览

perl - 无法编译我的 perl 脚本。让一切正常工作的最简单方法是什么?

我在编译我的 perl 脚本时遇到了很多麻烦。我在脚本中使用了各种模块:

并且 fetchinfo.pm 也使用这个模块:

我的机器上安装了 ActivePerl(64 位 Win 7)。

我正在尝试编译我的代码并使其成为一个独立的 .exe 文件(尽管能够为其他系统编译也很棒(因为我认为我的代码不使用任何系统特定的功能)。

我不介意安装虚拟机(如果需要 32 位 win 或 linux),我不介意安装 Strawberry perl 而不是 ActivePerl ...我只想能够编译代码 :-)

尝试使用 perl2EXE 它说它找不到一些模块(尽管每个模块都是由 ppm 安装的)。我尝试在 Linux 上使用 Perl Packager (PAR::Packer) 进行编译(因为它没有显示在 ppm 上,而且我无法以任何其他方式安装它)但是创建的文件不起作用。

... 帮助?:-)

0 投票
1 回答
894 浏览

perl - Perl 使用 Win32::OLE 模块 Excel 2007-无法生成图表

我在 perl64 上运行以下简单脚本以在 excel 上生成图表,但我在没有生成任何图表的情况下出现以下错误。
它打开excel工作表,将数据写入工作表但没有图表。

这是我的系统规格

  • PERL 版本:Active Perl 64 v5.16.3
  • WIN32 OLE:0.1709
  • Excel 版本:Excel 2007 SP3

谁能给我一些关于如何消除此错误并生成图表的意见?

0 投票
1 回答
1681 浏览

windows - 用于安装多个 perl 模块的 Windows 批处理文件 - 仅运行第一行

我正在 Windows 上安装 Bugzilla,并且 checksetup.pl 要求我通过运行 ppm(Perl 包管理器)命令来安装一堆模块,如下所示:

这运行正确,并安装 TimeDate 模块。

我以前没有做过太多命令行的事情,但我认为这是尝试它的好时机。所以我制作了一个名为 PerlModules.bat 的批处理文件:

运行它会产生以下输出:

所以看起来只有批处理文件的第一行实际运行,其余的什么都不做。

最后我查看了 ppm 的手册页,ppm help发现我可以一次传递所有的包名,省去了解决这个问题的麻烦,但我真的不明白为什么我的小批处理文件不起作用.

我认为批处理文件只是逐行输入到 shell 提示符,等到每个都完成它的工作,直到它们到达文件末尾。我在这个等式中缺少什么?

0 投票
1 回答
413 浏览

cygwin - 在 windows 平台中允许 perl 分叉的 perl 编译器或打包程序

如果 Perl 代码使用 fork 或其变体,如 Paralell::Loops 或 Parallel::ForkManager,则来自 Par::Packer 的 pp 生成的独立 exe 将在运行时崩溃,请参阅https://groups.google.com/forum/?fromgroups中的示例#!topic/perl.par/U4HbbbcRRTQ。B::C 或 B::CC 也被测试在这种情况下不起作用:activeperl 甚至无法安装它,显示如下错误:

C.obj:错误 LNK2001:未解析的外部符号 Perl_Iwatchaddr_ptr
C.obj:错误 LNK2001:未解析的外部符号 Perl_Iwatchok_ptr

cygwin perl 可以按照https://github.com/rurban/perl-compiler中的说明安装和生成 exe ,但是当我们运行它时,它会因错误而崩溃,例如END failed--call queue abortedCouldn't print to pipe。是否有一些经过测试的可用于 fork 的 Perl 编译器或打包器?

0 投票
2 回答
278 浏览

perl - Perl throwing bad headers when there's a warning IIS

Okay, this is a weird one.

All of our servers are using ActivePerl 5.8.8 and windows server 2003.

During some development, we ran into an issue where the script we were working on started throwing back CGI errors. No amount of printing headers would work, just constant CGI errors. The issue was relegated to one development server.

After a bunch of digging, I found that the issue is related to warnings. When perl throws certain warnings the page comes back from IIS with a bad CGI header and nothing in the body. Specifically the warning about concatenating an un-initialized string.

Here's the test script I'm using.

Adding a no warning statement will mean it runs. Adding the Page param will also mean it runs.

Any idea on what might be causing it? I would like to understand why before just adding a "no warning" statement and moving on, as if this happens in our live enviroment, I'd prefer not to add a no warnings; statement to every perl script in the system.

Thank you so much for all your help.

0 投票
1 回答
852 浏览

asp.net - IIS 7.5 中 asp.NET 上的 Perl

对不起,如果这是一个愚蠢的问题,但我是这种事情的新手。我正在尝试设置一个本地开发环境来处理将通过 asp.NET 运行的 web 服务。我正在使用 Windows 7 和 IIS 7.5 来执行此操作,并且我已经安装了 Active State perl,但我不确定如何让一切正常工作。

我可以从 localhost 运行 .pl 文件并且它可以工作,但我不知道如何在 .aspx 页面中使用 perl。从我所看到的看起来我应该添加:

但是当我尝试这样做时,我收到了错误:

解析器错误消息:“PerlScript”不是受支持的语言。

我必须在某处添加 PerlScript 作为语言吗?提前致谢!

编辑:所以我最终卸载了 perl 并关闭了 IIS,然后我重新打开了 IIS 并重新安装了 perl,但这次是 32 位版本。然后我使用了命令

ap-iis-config add all

我在网上找到了将配置映射到 IIS。再次尝试,它仍然无法将 PerlScript 识别为一种语言,因此我进行了更多挖掘并找到了在 IIS 中为我​​的站点打开 32 位选项的建议。也这样做了,但仍然没有任何运气。所以我做了更多的搜索,然后尝试将文件类型从 .aspx 更改为 .asp 和宾果游戏!这么愚蠢的小修复,我浪费了这么多时间,但我想我会添加这个,以防其他人发现自己处于同样的情况。我不确定是否所有其他步骤都是必要的,但我认为它们可能是必要的,我将再次经历这个过程并弄清楚如何让它工作,但现在它似乎打开了 IIS安装 perl(32 位),

0 投票
2 回答
630 浏览

perl - Inline::C 构建失败

我正在使用活动 perl 5.14.2。在这里,我尝试使用 Inline::C 在我的 perl 代码中使用 Windows C 库

当我尝试运行脚本时,它失败并出现以下错误

我尝试使用以下命令构建 test_pl_7fbb.c 文件:

它没有错误地完成。

我猜 Inline 在编译时使用的选项 -I"D:/test" 导致了这个问题。

提前感谢您对此的任何帮助。

0 投票
2 回答
2266 浏览

perl - How to download Active Perl Zip for Windows Server 2003

I'm not sure if this is the right forum to ask this question . But I'm trying to install Active Perl for IIS in windows 2003 server. I need to build a website in perl. So I want to follow the steps as given in this document http://www.howtogeek.com/50500/how-to-install-perl-on-iis-6-for-windows-server-2003/

In the steps it is mentioned that download ActiveState Perl distribution package (get the AS zip file and not the installer) " . But I'm unable to find the zip file in this site http://www.activestate.com/activeperl/downloads . I can only see .msi . Please help me in finding in this file

0 投票
1 回答
929 浏览

perl - Win32::API 无法加载 win32 dll

我正在尝试使用 Win32::API 模块在 perl 脚本中使用 Win32 dll。为此,我编写了一个这样的 perl 脚本

但我收到以下错误:

虽然脚本和dll在同一个位置,所以它没有办法找不到dll。我也尝试过使用完整路径。

我在 Windows 7 平台上使用活动 perl 5.16。我也用 5.14 试过这个,没有任何帮助

这里发生了什么?

0 投票
2 回答
412 浏览

perl - Win32::API perl 程序未找到

我正在尝试使用我的 perl 代码中的 Win32 dll。

但我收到以下错误:

我的 dll 是使用 _cdecl 调用约定编译的。这有什么区别吗?我在 Windows 7 上使用活动 perl 5.14