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

Ok, I've talked about this using the Chatterbox before, but I haven't gotten a solution, so I thought I'd make an official post.

I'm trying to install a module (Net-AOLIM) on CPAN that need's to be compiled. Or at least that's what I think, seeing that it has a makefile.pl with it. However, I'm using Windows 98, despite my hate of it. I've tried several things to get it to work, so I'll write sections about each one. (I'm using ActivePerl, but I am willing to install IndigoPerl, seeing I have both installation files)

I've tried using PPM, but unfortunately, there's no precompiled version of Net-AOLIM for PPM.

I've tried compiling the module using nmake, but this also does not work. When I try run perl makefile.pl It gives me this output:

Checking if your kit is complete... Looks good Bad Command or File name Bad Command or File name Bad Command or File name unable to find a perl 5 (by these names: C:\Perl\Bin #etc.. Writing makefile for Net::AOLIM
I expected that output, so I continued, once running a line that I read I should do in a link from an old post pointing to some online 'zine article. The other time I ran nmake 1.5 directly. After typing nmake I got this output:
NMAKE : fatal error V1801: '0' : program not found Stop.
This Immediately tells me that something went wrong, so I stopped, then continued just to make sure, only to recieve more errors. What should I do? (don't tell me to get *nix, I don't own the computer, so I can't change the OS)
- p u n k k i d

Replies are listed 'Best First'.
Re: Installing the Net-AOLIM module from CPAN
by SuperCruncher (Pilgrim) on Jul 22, 2000 at 14:14 UTC
    NMAKE : fatal error V1801: '0' : program not found Stop.
    Ahhh, yes, I know this. I have made quite a few comments on win32 module installing recently - see Thanks - Win32 module help and Installing modules on Win32.

    As tye mentions in his reply to the first node I mentioned, the $^0 variable (which as far as I know is equivalent ARGV[0] in C, can anyone confirm?) is set incorrectly. What I did was hack the makefile manually.

    This isn't recommended pratice, but it did the job! Just change the line

    PERL = 0
    to
    PERL = perl
    That had the desired effect for me.

    <unrelated-question> Does anyone know of any modules for MSN Messenger (flame if you like, but it's one of M$' better products)? </unrelated-question>

      That's really close. In C, argv[0] is the program name. In Perl, that's $0 (or $PROGRAM_NAME if you're using the English module. $^0 is the name of the operating system ($OSNAME in English).

      Cheers,
      Ovid

Re: Installing the Net-AOLIM module from CPAN
by japhy (Canon) on Jul 22, 2000 at 03:20 UTC
    Not all Makefile.PL files mean there's going to be any C compilation occurring. If Net::AOLIM is anything like Net::AIM, you don't need to compile anything. There's also the AOL::TOC module, which you might be interested in.

    $_="goto+F.print+chop;\n=yhpaj";F1:eval
      japhy is right to recomend the AOL::TOC module. IHOM, of the 3 perl modules that interface to AOL's Instant Messanger (AOL::TOC, Net::AIM, and Net::AOLIM) it is the best implemented and most up-to-date.
      Update: I forgot, the install file says that you need to compile it.
      I tried downloading NET::AIM, but I always got an empty .tar.gz file. If your's works, maybe you could send it to me at fokke_wulf@hotmail.com