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

I wrote a perl script that runs fine another RedHat box, I just installed a new box, and then installed Device::SerialPort with no errors that I could see. When I go to run my script, I get the following error. I am not sure what my next step should be. I don't believe it is a problem with my script, and the error is actually referring to something else .. not sure. Thanks for any help you may be able to give. Here is the error: root@development pinger# perl pinger.pl Can't locate Device/SerialPort.pm in @INC (@INC contains: /usr/local/lib/perl5/5 .6.0/i586-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/ i586-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl . ) at (eval 1) line 2. BEGIN failed--compilation aborted at (eval 1) line 2.

Replies are listed 'Best First'.
Re: Device::SerialPort and Perl Error.
by Fastolfe (Vicar) on Jan 06, 2001 at 23:21 UTC
    Looks like Device::SerialPort wasn't installed (errors look pretty straightforward). How did you go about installing it? CPAN? Did you build it yourself? If so, did you do a 'make install'?
      Just wanted to thank you for your help. I figured out the problem. I orignally used CPAN to install it and must have got an error, as I just installed it from the .tar.gz file and it worked fine. Thanks again. Jerry Brown