sundrag has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I hope someone can help me with this one. I'm trying to get the ARSperl module installed on my Windows XP desktop.
The ARSperl (www.arsperl.org) module allows Perl to talk to "Remedy". I code Perl using "Komodo".
I'm using the following versions:
- Perl version 5.8.7
- Remedy version 6.00.00
- ARSperl 1.84
- Komodo 3.1 Professional

In Komodo, when I have the "use ARS;" statement, it complains about "Compilation failed in require. BEGIN failed--compilation aborted."

I've tried installing the ARSperl module using ppm and, even though it looks and says it's successful, Komodo still complains about the "use ARS;" statement.

I then used tips found on other forums to run the "Makefile.pl" file but that caused the following errors:

1. "can't open template support-h.template" This file didn't exist on my machine but I found one on the web, put it in the C:\Program Files\AR System\Api\include folder, changed Makefile.pl to this:
GenerateSupportDotH("C:\\Program Files\\AR System\\Api\\include\\support-h.template", $INCLUDES);

2. Then it couldn't find infra/exsi.pl (I found this on the web, amended the Makefile.pl and it moved forward a little more). Changed this line in Makefile.pl:
$cmd = qq("$Config{'perlpath'}" C:\\Perl\\bin\\ARSperl\\infra\\exsi.pl < "${ARSAPI}/include/ar.h" > serverTypeInfoHints.h);

3. Now it falls over not being able to find a file, the line is this one:
$rv = system("$Config{'perlpath'} infra/h2ph -d . < $headerFile > ARS${_}-h.pm");

I've added the path to my "infra" folder but it still falls over. I can't figure out what file this should be: ARS${_}-h.pm

Questions:
1. Why is this process so filled with problems?
2. Why is Komodo still complaining when a ppm install worked fine?
3. Does someone know how to install ARSperl on Windows XP and could he/she help me get this working somehow?

Thanks.

Replies are listed 'Best First'.
Re: ARSPerl - Windows XP Install
by syphilis (Archbishop) on Mar 15, 2006 at 03:47 UTC
    In Komodo, when I have the "use ARS;" statement, it complains about "Compilation failed in require. BEGIN failed--compilation aborted."

    The important thing here (which you've omitted) is what it was that couldn't be found.

    I've tried installing the ARSperl module using ppm and, even though it looks and says it's successful, Komodo still complains about the "use ARS;" statement.

    Once again, it could be usuful to know the exact nature of the complaint - ie precisely what could not be found.

    You won't get anywhere with 'perl Makefile.PL' unless you have a C compiler. Looks to me that all of those files that you couldn't find are in the ARSPerl source available from CPAN at http://search.cpan.org/~jmurphy/ARSperl-1.84/. But if there's a ppm available and the installation of that ppm worked ok, then I would have thought that's all you needed to do. Could it be that there's an ARS dependency that you need to also install ?

    Cheers,
    Rob
      Komodo doesn't list anything that it couldn't find. After a successful ppm install of ARSperl it simply gives me the error message: "Compilation failed in require. BEGIN failed--compilation aborted." on the "Use ARS;" statement. There could be an ARS dependency that I need to install... it's never mentioned anywhere though but that could be what it is. I'll search around and see if I can spot something. Thanks for the feedback!
Re: ARSPerl - Windows XP Install
by spiritway (Vicar) on Mar 15, 2006 at 04:09 UTC

    You might need to look for where ARSperl is being installed. I downloaded ARSperl and unpacked it into a directory. The support-h.template file went into the root of that directory tree. The file 'infra\exsi.pl' was in the directory 'C:\apps\APSperl-1.85\infra'. In that same directory is the file 'h2ps', with no extension - this is likely the missing file you were looking for.

    It sounds to me like you've either gotten a scrambled .tgz file (or it didn't unpack properly), or else you've missed some instructions. For example, did you edit the Makefile.PL file, as instructed? There were three places to make changes, where you needed to add directories to your API, the libraries, and defines.

      I did make the necessary 3 changes in the Makefile.PL as instructed.... my ARSperl package didn't seem to contain a support-h.template file. Maybe winzip is not the right application to get at the contents of the package though. The zip file contains a .tar file and I'll have to unpack that on unix to see what it contains, maybe the support-h.template file is in there. Thanks for the feedback!