(已更新,请看EDIT,谢谢!)
首先我想指出我不能使用任何自动化工具来安装模块,因为代理不会解析名称。我已经问过如何在这里解决这个问题,但无济于事。
所以 AFAIK 我必须下载 Perl 模块的 .tar.gz 包,解压缩,然后运行:
perl Makefile.pl
make
make test
make install
所以这就是我得到的:
D:>perl Makefile.PL
Set up gcc environment - 4.5.2
It looks like you don't have either nmake.exe or dmake.exe on your PATH,
so you will not be able to execute the commands from a Makefile. You can
install dmake.exe with the Perl Package Manager by running:
ppm install dmake
Writing Makefile for PowerBuilder::ORCA
我不知道为什么在我安装 nmake 的时候它说 taht...
所以下一个命令(使用 NMAKE)
D:>nmake
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
syntax error at -e line 1, near "'755')
"
Missing right curly or square bracket at -e line 1, at end of line
Execution of -e aborted due to compilation errors.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff'
Stop.
好的,现在使用 MAKE(来自 MinGW):
D:>C:\MinGW\msys\1.0\bin\make
make: rem: Command not found
make: *** [blibdirs] Error 127
我的 Perl 版本:
This is perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x86-multi-thread
(with 9 registered patches, see perl -V for more detail) Copyright 1987-2010, Larry
Wall Binary build 1204 [294330] provided by ActiveState http://www.ActiveState.com
Built Feb 9 2011 14:38:22
关于为什么会发生这种情况的任何提示?提前致谢!
编辑:感谢 Sinan Ünür,我编译了该模块。我用 安装它dmake install
,但在导入它时,它说:
Compilation failed in require
执行时说:
Can't load 'C:/Perl/site/lib/auto/PowerBuilder/ORCA/ORCA.dll' for module PowerBuilder::ORCA: load_file:El acceso a la dirección de memoria no es válido at C:/Perl/lib/DynaLoader.pm line 201
(无效的内存访问)
我认为这是因为我正在针对错误的 Perl 版本进行编译,但怎么会呢?我使用了 5.12 的链接。