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
(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")
| [reply] [d/l] |
Re: Perl + Serialport + Win32::API troubles
by Aristotle (Chancellor) on Jul 11, 2002 at 22:16 UTC
|
| [reply] |
|
Other scripts work just fine, could it be something with Win32::API??
Thanks
jw
| [reply] |
|
I also backed up all of my scripts and re-installed perl today.
thanks
jw
| [reply] |
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.
| [reply] |
|
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
| [reply] |
|