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.
In reply to Device::SerialPort Brain Problems by wm1ke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |