Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Perl + Serialport + Win32::API troubles

by Anonymous Monk
on Jul 11, 2002 at 22:09 UTC ( [id://181155]=perlquestion: print w/replies, xml ) Need Help??

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

I am trying to figure out how to get perl setup so I can monitor the serial port. I am using perl 5.6.1, have installed Win32::API 0.20, and Win32:SerialPort. I tried to run the code: use Win32API::SerialPort; #simple enough? However, i get an error saying that the dynamic link library PerlCRT.dll could not be found. I downloaded the dll file but then i got an error saying "perl.exe has generated errors and will be closed by windows" Any help would be appreciated. Thanks, jw
  • Comment on Perl + Serialport + Win32::API troubles

Replies are listed 'Best First'.
(tye)Re: Perl + Serialport + Win32::API troubles
by tye (Sage) on Jul 12, 2002 at 01:25 UTC

    This means you got a binary distribution of some module (probably either Win32::SerialPort or Win32::API) that was built for a different binary distribution of Perl other than the one you are using. Try this:     perl -MWin32::API -e 0 if it doesn't give you an error, then it is a different module that is the problem. When you find the problem module, uninstall it (if possible) and then find a distribution that was built to work with your distribution of Perl (sorry, I'm not familiar with how these modules are currently distributed in binary format -- part of the problem with trying to create a distribution system outside of CPAN like has been done with Win32 binary distributions of modules).

            - tye (but my friends call me "Tye")
Re: Perl + Serialport + Win32::API troubles
by Aristotle (Chancellor) on Jul 11, 2002 at 22:16 UTC
    That sounds like it's not specific to Win32::SerialPort at all. Do any Perl scripts run? Sounds like an installation gone bad.

    Makeshifts last the longest.

      Other scripts work just fine, could it be something with Win32::API?? Thanks jw
        I also backed up all of my scripts and re-installed perl today. thanks jw
Re: Perl + Serialport + Win32::API troubles
by jdavidboyd (Friar) on Jul 12, 2002 at 01:30 UTC
    How about some much more detailed information, please?
    I have both ActiveState Perl 5.6.1 under Win2000 and Perl 5.6.1 running under Cygwin available.

    I can try everything you have tried, and see if I get the same response, if you would like to elucidate somewhat.
      I have ActiveState Perl 5.6.1 under Windows 2000 as well. I downloaded Win32::API from dada.perl.it. I got the Win32::SerialPort module from http://www.cpan.org/modules/by-module/MARC/BBIRTH/. Thanks jw

Log In?
Username:
Password:

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

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

    No recent polls found