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

Everything works fine till i run "make" command. when i run that i am getting the following error:
=> $make
cc -c -DVERSION=\"0.191\" -DXS_VERSION=\"0.191\" -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE Win32.c Win32.xs:1: windows.h: No such file or directory *** Error code 1
Stop in /home/CGN/libwin32-0.191.

I am using SecureCRT to connect to Unix machine and running Perl in that.
I searched for "windows.h" in the Unix System i couldnt find any, where can i get or install this setup or how can i solve this.

It would help me a lot if someone tell me a solution. Thanks
  • Comment on Problem in installation of libwin32-0.191

Replies are listed 'Best First'.
Re: Problem in installation of libwin32-0.191
by herveus (Prior) on Dec 10, 2004 at 14:05 UTC
    Howdy!

    ummm...don't try to make libwin32 on a non-Windows box?

    yours,
    Michael
      Hi,
      i have to use Win32::OLE package in perl for accesing MS outlook , how can i do that without installing libwin32

      Yours, Gokul

        Umm... well you can't run Outlook on a non-Windows box so I'm not sure how you thought that was going to work anyway.

        Can't you talk directly to your Exchange server (or whatever your email server is) with one of the POP3 modules or something like that?

        --
        <http://www.dave.org.uk>

        "The first rule of Perl club is you do not talk about Perl club."
        -- Chip Salzenberg

        You've misunderstood something then. Win32::OLE is just an interface to Windows OLE services. That is, in order to use it, you actually need the application installed as well. None of this applies to Unix/Linux boxes, it just won't work, I'm afraid.

        What exactly are you trying to access in Outlook? And why via perl on a unix box, can you not install perl/libwin on the Windows box that Outlook is running on?

        C.

        Howdy!

        I'm not sure how you would do that. What you won't make work is to install libwin32 on a unix box. As it says in the README:

        As the name suggests, all modules in this distribution are Win32-specific. They cannot be used on platforms that do not support the Win32 API.

        Have you tried searching CPAN for other possible solutions?

        yours,
        Michael (a Mac and Unix guy)

        Ah. If you must run your program on unix you have a number of possible options. If by 'Outlook' you mean mail that is being held in the Exchange server and accessed via Outlook, then you can get access to the messages using the module Email::Folder::IMAP. Or if you are really set on going the OLE Automation route (or you are feeling particularly evil) then you could use 4S4C on a Windows machine to expose the appropriate COM interface via SOAP which can then be accessed from any system that you want via SOAP::Lite in your perl program.

        /J\