Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

CPAN Module Compile Error

by Smaug (Pilgrim)
on Sep 27, 2006 at 17:44 UTC ( [id://575203] : perlquestion . print w/replies, xml ) Need Help??

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

Hi all,

I'm not sure if this is the correct place to be asking this, but I'm out of ideas. Hopefully, if this is the wrong place the question will never make it as far as Newest Nodes.

I'm trying to install Win32::NetResource on a my laptop (which runs Ubuntu Linux) because I thought it might help answer accessing another widows machine.

Using the CPAN installer gives me the following error:
ERROR from evaluation of /home/username/build/libwin32-0.191/Process/Makefile.PL: Undefined subroutine &Win32::IsWinNT called at ./Makefile.PL line 4.

If I look at the file it is complaining about, it contains the following at line 4:

'DEFINE'    =>   (Win32::IsWinNT() ? '' : '-DSTRICTLY_WINDOWS95'),

What I would like to know is how I managed to break this install(?) and where do I find the subroutine called in the Makefile.

Replies are listed 'Best First'.
Re: CPAN Module Compile Error
by ikegami (Patriarch) on Sep 27, 2006 at 17:49 UTC
    Win32::NetResource is part of libwin32. libwin32 is a wrapper for Win32 system calls. It won't work on Linux.
      Gosh...darn it!! Thanks ikegami. I thought it might be that.

      So is there no way of writing/testing code on Linux to run on Windows? (my ide complains that the module is not installed)

      ....and even worse, no way of making system calls from Linux to Win32 machines across a network!?!?

        Some services (such as NFS and MS File Sharing, and X and Remote Desktop) give access to some system calls indirectly, but I've never heard of making system calls accross a network, no matter what the OS.

        If anything, Windows is the most open to this. Remote file access, remote registry editing, DCOM, etc. The number of entry points is insane.

        By the way, you could always create a small module that satifies your IDE. It doesn't actually have to do anything.

        ...no way of making system calls from Linux to Win32 machines across a network!?!?

        telnet, ssh, or some other protocol that requires some service to be running on the Win32 machine.