wm1ke has asked for the wisdom of the Perl Monks concerning the following question:
I play with perl and enjoy it but modules and installing them jut do not seem to fit with my old brain. I am trying to install Device::SerialPort on my Ubuntu box. After using cpanm I was told:
Device::SerialPort is up to date.(1.04) mike@BlsckBox:~/ham$
When I try to run the code I get the message :
perl radio.pl Can't locate Device/SerialPort.pm in @INC (you may need +to install the Device::SerialPort module) (@INC contains: /etc/perl / +usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22 +.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86 +_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl + /usr/lib/x86_64-linux-gnu/perl-base .) at radio.pl line 6. BEGIN fai +led--compilation aborted at radio.pl line 6.
Here is the faulting code:
# # Control access to an ICOM radio # use vars qw( $ob $port ); use Device::SerialPort; use sigtrap qw(INT SIGINT); $ob = new Device::SerialPort ("/dev/ttyUSB0", 1);
I get off my wheel chair and knell on the floor before the monks to help an old man who appreciates it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Device::SerialPort Brain Problems
by tybalt89 (Monsignor) on Mar 27, 2017 at 00:52 UTC | |
|
Re: Device::SerialPort Brain Problems
by haukex (Archbishop) on Mar 27, 2017 at 08:06 UTC | |
by wm1ke (Initiate) on Mar 29, 2017 at 01:47 UTC | |
by haukex (Archbishop) on Mar 29, 2017 at 07:29 UTC | |
by wm1ke (Initiate) on Mar 28, 2017 at 02:03 UTC | |
|
Re: Device::SerialPort Brain Problems
by dazz (Beadle) on Mar 27, 2017 at 08:11 UTC | |
|
Re: Device::SerialPort Brain Problems
by Anonymous Monk on Mar 27, 2017 at 00:58 UTC |