Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

installing win32 in perl 5.8.4

by sparkel (Acolyte)
on Dec 07, 2004 at 21:17 UTC ( [id://413008]=perlquestion: print w/replies, xml ) Need Help??

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

Hi

I am trying to install Win32 and Win32::Serialport through CPAN. I am using Perl version 5.8.4. I get the following error in the end

make: *** No targets specified and no makefile found. Stop.
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

Why am I not able to install Win32? Thank you.

Replies are listed 'Best First'.
Re: installing win32 in perl 5.8.4
by ikegami (Patriarch) on Dec 07, 2004 at 21:25 UTC
    Sounds like you didn't do perl Makefile.PL first

    Update: The installation instructions for Win32::Serialport say

    INSTALLATION: Version 0.18 adds a more Un*x-like installation for ALL Perl versions. perl Makefile.PL [optional PORT] perl test.pl perl install.pl The Makefile.PL creates the test.pl, install.pl, and t/DefaultPort.pm files. With no port specified, COM1 is used.
      Since I was installing through CPAN, when should I type the command, perl makefile.pl?

      In CPAN, I typed in

      install Win32

      And got the error in the end before it called makefile.pl. Thanks

        Dunno about Win32 (although it's already installed if you're using ActiveState), but it doesn't look like you can't use cpan to install Win32::Serialport, because it has a nonstandard installation instructions. Just do it from the prompt.

      Hi

      I tried installing through prompt. The makefile.pl runs fine. But, the test.pl fails all the 7 scripts. I am not sure what is happening, but it seems as if my system got all messed up when I installed the activestate perl 5.8.4 (I had activestate 5.8.0 earlier). What do you guys suggest?

      Thanks.

        Don't mix Cygwin and ActiveState Perl. ActiveState Perl expects nmake.exe by Microsoft, and not the Cygwin make tools. If you installed the Cygwin build of Perl, then make sure that the Cygwin Perl finds the Cygwin make. The Microsoft nmake.exe and the Cygwin make.exe are not compatible, and each Perl build creates a Makefile specificially tailored to the expected version of the make tool.

Re: installing win32 in perl 5.8.4
by osunderdog (Deacon) on Dec 07, 2004 at 21:24 UTC

    Are you on a Windows box?

    What Perl are you using? perl -V

    Have you looked at A Guide to Installing Modules


    "Look, Shiny Things!" is not a better business strategy than compatibility and reuse.


    OSUnderdog
      I am using windows XP. My perl version is: v5.8.4 built for cygwin.

      I have been able to install modules through CPAN before, but for some reason when I install Win32, in the end, just before doing make, I get the error above.

Re: installing win32 in perl 5.8.4
by Mr. Muskrat (Canon) on Dec 08, 2004 at 04:32 UTC

    I wouldn't expect any of the Win32 modules to work under Cygwin since it is designed to emulate a *nix environment. A quick google for "Cygwin Perl Win32 module install" should turn up some interesting answers (like you will probably need a specially modified version of the Win32 modules).

Log In?
Username:
Password:

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

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

    No recent polls found