in reply to Problem in installation of libwin32-0.191

Howdy!

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

yours,
Michael
  • Comment on Re: Problem in installation of libwin32-0.191

Replies are listed 'Best First'.
Re^2: Problem in installation of libwin32-0.191
by CGN (Initiate) on Dec 10, 2004 at 14:10 UTC
    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

        Hi,

        i didnt mean that i want to run Outlook in non -windows box but i want access mails which are in Outlook using Perl ,so i am in need of this package installed .


        yes i can access mails in my POP3 server using Perl(Net::POP3).

        Thanks, Gokul
      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.

        Hi,

        We got some automation stuff which needs us to access the subject of each mail and run scripts according to that..

        That i have to do using perl..
        so i am trying this option of installing libwin32-0.191 and use Win32::OLE

        Thanks,
        Gokul
      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\