Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Doubt on Win32::OLE perl module

by Anonymous Monk
on Dec 01, 2003 at 06:01 UTC ( [id://311170]=perlquestion: print w/replies, xml ) Need Help??

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

Hi,
Does the Win32::OLE perl module works only on windows and not Linux/UNIX.
Since I tried to install this module on Linux it gives me a makefile error as :
Makefile 980: *** missing separator .Stop.

Please let me know on my doubt .
Thankyou !

Replies are listed 'Best First'.
Re: Doubt on Win32::OLE perl module
by simonm (Vicar) on Dec 01, 2003 at 06:11 UTC
    Yes, as suggested by the name, Win32::OLE only works on Win32 machines, not on Unix-like hosts.

    Update: While this may have seemed obvious to some of us, it's worth noting that this dependency is not specifically stated in the module documentation, nor is it declared programatically via a check of $^O in the Makefile, which does seem like a correctable oversight.

Re: Doubt on Win32::OLE perl module
by Ninthwave (Chaplain) on Dec 01, 2003 at 11:22 UTC

    Though it may be obvious to most here, as simonm pointed out in his update. No where in the module does it say it is for only Win32 systems and some win32 modules imply that they are working on working on running on across systems, even though the functionality is windows based as this quote from Win32::TieRegistry:

    Win32::TieRegistry - Powerful and easy ways to manipulate a registry on Win32 for now.

    But if yfou go to the base Win32 README:

    This used to be a bundle of extensions that provided a quick migration path for people wanting to use the core support for win32 in perl 5.004 and later. With the release of Perl version 5.005 (which brings ActiveState's changes to Perl sources into the mainstream), this library of extensions has assumed loftier motives. The long term goal of this project is to provide a coherent collection of modules that allow access to the functionality provided by the Win32 API, while maintaining the style and spirit of Perl. Like Perl, the intention is to make "easy things easy, and hard things possible". Note that we are nowhere close to this goal at the present time, but we are slowly getting there. 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.

    "No matter where you go, there you are." BB
Re: Doubt on Win32::OLE perl module
by PodMaster (Abbot) on Dec 01, 2003 at 06:12 UTC
    I'd say it's a pretty safe bet to say that a module in the Win32:: name space is intended for Win32 machines only ...
    NAME
        Win32::OLE - OLE Automation extensions
    ...
    
    DESCRIPTION
        This module provides an interface to OLE Automation from Perl. OLE
        Automation brings VisualBasic like scripting capabilities and offers
        powerful extensibility and the ability to control many Win32
        applications from Perl scripts.
    
    Now if microsoft (or someone) has all of a sudden provided OLE for linux , then maybe there is a remote chance Win32::OLE could work, but I doubt it.

    http://search.cpan.org/dist/Win32-OLE/ => http://testers.cpan.org/show/Win32-OLE.html (grade NA means the package does not work on this platform)

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Doubt on Win32::OLE perl module
by ysth (Canon) on Dec 01, 2003 at 06:18 UTC
    Yes, Win32::OLE only works on windows (and not even on cygwin).

    As I understand it, that error message is indicative of using a makefile designed for Microsoft's nmake with a more traditional make that requires tab characters in some places.

Re: Doubt on Win32::OLE perl module
by Roger (Parson) on Dec 01, 2003 at 06:12 UTC
    What does the Win32 part tell you? It says that it is a Windows 32-bit module. Durrr...

    That missing separator in Makefile problem was to do with the formatting of DOS makefiles.

    Unix make utility expect to see a TAB character in the makefile, as illustrated below:

    Makefile -------- all: program program: program.c ^ need tab here gcc -o program program.c ^ and here
    Having said that, fixing the Makefile is not going to get you any further on making Win32::OLE to work on Unix/Linux machines though.

Re: Doubt on Win32::OLE perl module
by bart (Canon) on Dec 01, 2003 at 10:40 UTC
    Since OLE is Microsoft technology, I don't get how you expected to be able to use it on Linux. After all, Win32::OLE is nothing but a Perl interface to OLE — and not some complete substitution.
Re: Doubt on Win32::OLE perl module
by Mr. Muskrat (Canon) on Dec 02, 2003 at 04:14 UTC
    While the Win32 modules are designed to work only with Win32 systems, this question made me wonder if it would work under Wine. ;-)
        is there a way to use this module on unix /linux without using wine tools etc. that create a separate environment. i want to modify excel that contains macro...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://311170]
Approved by Roger
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found