Omega Owners Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Please play nicely.  No one wants to listen/read a keyboard warriors rants....

Pages: 1 [2]  All   Go Down

Author Topic: Any linux experts?  (Read 2885 times)

0 Members and 1 Guest are viewing this topic.

JamesV6CDX

  • Omega Queen
  • *****
  • Offline Offline
  • Gloucestershire/Buckinghamshire
  • Posts: 16546
    • Omega 3.2 Retail MV6 LPG
    • View Profile
Re: Any linux experts?
« Reply #15 on: 31 March 2018, 10:56:20 »

Did I mention Perl is old and shit, and a complete mess?  Are you really sure you want to use a Perl app? ;)

Try libio-aio-perl

There are so few apps out there for what I want, that are free and self hosted, that I don't really have a huge choice. Plus it's only a bit of fun, nothing serious,

Tried your suggestions:

root@:~# apt install libio-aio-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
libio-aio-perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@:~# apt install libanyevent-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
libanyevent-perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@:~#

I still get:

Can't locate AnyEvent/AIO.pm in @INC (you may need to install the AnyEvent::AIO module)
Logged

TheBoy

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Brackley, Northants
  • Posts: 105914
  • I Like Lockdown
    • Whatever Starts
    • View Profile
Re: Any linux experts?
« Reply #16 on: 31 March 2018, 11:25:01 »

libio-aio-perl is Debian's packaged AnyEvent AIO module.

Do you have aio.pm on the drive anywhere?  (find / -name "aio.pm"). If so, add its location to perl's inc, or softlink it from an area that is in Perl's inc.
Logged
Grumpy old man

JamesV6CDX

  • Omega Queen
  • *****
  • Offline Offline
  • Gloucestershire/Buckinghamshire
  • Posts: 16546
    • Omega 3.2 Retail MV6 LPG
    • View Profile
Re: Any linux experts?
« Reply #17 on: 31 March 2018, 11:29:34 »

libio-aio-perl is Debian's packaged AnyEvent AIO module.

Do you have aio.pm on the drive anywhere?  (find / -name "aio.pm"). If so, add its location to perl's inc, or softlink it from an area that is in Perl's inc.

I managed to find it using this wildcard: # find / -name "AIO*"

Results as follows:

/usr/lib/x86_64-linux-gnu/perl5/5.20/auto/IO/AIO
/usr/lib/x86_64-linux-gnu/perl5/5.20/auto/IO/AIO/AIO.so
/usr/lib/x86_64-linux-gnu/perl5/5.20/IO/AIO.pm
Logged

Andy H

  • Omega Lord
  • *****
  • Offline Offline
  • Gender: Male
  • Auckland
  • Posts: 5498
    • Mazda MPV
    • View Profile
Re: Any linux experts?
« Reply #18 on: 31 March 2018, 12:32:09 »

Is this a permissions issue?

The AIO module appears to be related to 'asynchronous io' which would have meant rs232 serial communications on an original IBM PC.

To work with serial comms on a debian system you need to be a member of the group that can access the hardware (IIRC the 'modem' group)
Logged
"Deja Moo - The feeling that you've heard this bull somewhere before."

Kevin Wood

  • Global Moderator
  • *****
  • Offline Offline
  • Gender: Male
  • Alton, Hampshire
  • Posts: 36281
    • Jaguar XE 25t, Westfield
    • View Profile
Re: Any linux experts?
« Reply #19 on: 31 March 2018, 21:44:21 »

Would have to be permissions on AIO.pm itself rather than the serial port group, but worth checking the permissions on that file and that the user is in the modem group.

Other than that, I tend to avoid Perl if I can. I'll give AIO a try when I'm next sitting at a suitable Debian machine.
Logged
Tech2 services currently available. See TheBoy's price list: http://theboy.omegaowners.com/

JamesV6CDX

  • Omega Queen
  • *****
  • Offline Offline
  • Gloucestershire/Buckinghamshire
  • Posts: 16546
    • Omega 3.2 Retail MV6 LPG
    • View Profile
Re: Any linux experts?
« Reply #20 on: 31 March 2018, 21:49:26 »

Given that I installed (and attempting to run) as root, id be surprised if permissions?
Logged

Kevin Wood

  • Global Moderator
  • *****
  • Offline Offline
  • Gender: Male
  • Alton, Hampshire
  • Posts: 36281
    • Jaguar XE 25t, Westfield
    • View Profile
Re: Any linux experts?
« Reply #21 on: 31 March 2018, 21:54:20 »

Given that I installed (and attempting to run) as root, id be surprised if permissions?
Depends. The Perl interpreter might run under its own user.

Sounds more likely that it can't find the file, though. Is the source referencing an explicit path that's different in Debian to wherever the software originated?
Logged
Tech2 services currently available. See TheBoy's price list: http://theboy.omegaowners.com/
Pages: 1 [2]  All   Go Up
 

Page created in 0.027 seconds with 18 queries.