(Updated, please look at the EDIT, thanks!)
First I would like to point that I cannot use any automated tool to install the modules since the proxy won’t resolve names. I already asked how to solve this here to no avail.
So AFAIK I have to download the .tar.gz package of the Perl module, decompress it, and run this:
perl Makefile.pl
make
make test
make install
So here’s what I get:
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
I don’t know why it says taht about nmake while I have it installed…
So next command (using 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.
Ok, now using MAKE (from MinGW):
D:>C:\MinGW\msys\1.0\bin\make
make: rem: Command not found
make: *** [blibdirs] Error 127
My Perl version:
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
Any hints about why this is happening? Thanks in advance!
EDIT: Thanks to Sinan Ünür, I compiled the module. I installed it with dmake install, but at importing it, it says:
Compilation failed in require
When executing it says:
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 (Invalid memory access)
I think this is due to the fact that I’m compiling against a wrong Perl version, but how come? I used the links for 5.12.
That version of
nmakeis rather old. Mine says10.00.30319.01. Besides, if you don’t have the compiler suite that goes along with it, or if the compiler suite you have is incompatible with the one that built yourperl, havingnmakeis not going to make a difference.I am assuming you have ActivePerl installed, but you don’t mention the version.
MinGWmakebecause it can’t process makefiles written fornmakeordmake.If you have ActivePerl 5.10, you can grab this PPD and this archive, put the PPD in a directory and the ZIP in the appropriate directory under that and use
ppmto install it.Otherwise, you’re going to have to find a way to get a compiler suite with the appropriate build tools onto that machine.
Does your MinGW installation have
dmake? There is still no guarantee that thegccin your installation is compatible with the compiler used to buildperl, but it might be worth a shot.What you really need is
ppm install MinGW.This thread might help:
Keep in mind that these
ppdfiles are specific toperlversions, so you might have to fix the paths mentioned in that answer. I can’t do that for you because you, AFAIK, you still haven’t told us yourperlversion.