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 2886 times)

0 Members and 1 Guest are viewing this topic.

JamesV6CDX

  • Omega Queen
  • *****
  • Offline Offline
  • Gloucestershire/Buckinghamshire
  • Posts: 16547
    • Omega 3.2 Retail MV6 LPG
    • View Profile
Any linux experts?
« on: 30 March 2018, 19:44:08 »

I am a novice to Linux, and over the last few months I have been teaching myself things.

I've have to start from the very basics with the shell, but I've taught myself about how it handles users, folders/files, permissions. I've learnt about sudo / IPtables / Yum / Firewalld / Apache / and other real basics, I've also managed to download and install some web apps and get them running after editing config files.

I have three VPS's, one on Centos 6.9, one on Centos 7, but the question I have is around my Debian one, running Perl 5.

I have a Perl app that I want to use (nothing forum related) - it becomes available on port 8080 and requires lots of dependencies, which I have identified and installed.

Despite doing this, and despite using "aptitude" to confirm there's nothing missing, I still get an error message when I Try and run the app:

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

The problem is, I have installed every perl AnyEvent module I can find - but, there is none listed in the repositories that I can find, that matches the above.

Can any clever folk shed any light, please? :y
Logged

STEMO

  • Guest
Re: Any linux experts?
« Reply #1 on: 30 March 2018, 19:46:44 »

I seem to remember Kevin is a Linux buff...........I think  :-\
Logged

JamesV6CDX

  • Omega Queen
  • *****
  • Offline Offline
  • Gloucestershire/Buckinghamshire
  • Posts: 16547
    • Omega 3.2 Retail MV6 LPG
    • View Profile
Re: Any linux experts?
« Reply #2 on: 30 March 2018, 19:48:08 »

I seem to remember Kevin is a Linux buff...........I think  :-\

Exccccccccellent (Said like Mr Burns)  :y
Logged

STEMO

  • Guest
Re: Any linux experts?
« Reply #3 on: 30 March 2018, 19:49:42 »

Or was it dbug.........sorry.......... :-[
Logged

zirk

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • Epping Forest
  • Posts: 11431
  • 3.2 Manual Special Saloon ReMapped and LPG'd and
    • 3.2 Manual Special Estate
    • View Profile
Re: Any linux experts?
« Reply #4 on: 30 March 2018, 21:12:08 »

Kevin plays around with it.  :y

OS I mean  ;D
Logged

STEMO

  • Guest
Re: Any linux experts?
« Reply #5 on: 30 March 2018, 21:49:14 »

Thanks, zirk, saved me bacon there  ;D
Logged

Mister Rog

  • Omega Baron
  • *****
  • Offline Offline
  • Gender: Male
  • Wales
  • Posts: 2610
    • Volvo XC70 & V70 D3
    • View Profile
Re: Any linux experts?
« Reply #6 on: 30 March 2018, 22:35:45 »



Hmm, I've got an old "netbook", it works but it's XP. I've been tempted to have ago with Linux, but so many different flavours. And . . . can I be arsed ?
Logged
“The desire to be a politician should bar you for life from ever becoming one.” Billy Connolly

zirk

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • Epping Forest
  • Posts: 11431
  • 3.2 Manual Special Saloon ReMapped and LPG'd and
    • 3.2 Manual Special Estate
    • View Profile
Re: Any linux experts?
« Reply #7 on: 31 March 2018, 01:44:10 »

Thanks, zirk, saved me bacon there  ;D
No not Kevin Bacon his busy doing those EE adverts at the moment.

    ........Oh, I see what you mean now, yea, your welcome, usual arrangements apply, in the same Bank Account please.   :)
Logged

Gaffers

  • Omega Queen
  • *****
  • Offline Offline
  • Gender: Male
  • NE Hampshire/Surrey
  • Posts: 11322
    • Ford Ranger Wildtrak
    • View Profile
Re: Any linux experts?
« Reply #8 on: 31 March 2018, 02:59:42 »

You need to find the documentation for the repository you are using to identify which dependencies you need.  Just firing off at the hip is a sure way to frustration in my experience.
Logged

Andy H

  • Omega Lord
  • *****
  • Offline Offline
  • Gender: Male
  • Auckland
  • Posts: 5498
    • Mazda MPV
    • View Profile
Re: Any linux experts?
« Reply #9 on: 31 March 2018, 07:21:25 »

What is the perl app?
Logged
"Deja Moo - The feeling that you've heard this bull somewhere before."

TheBoy

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Brackley, Northants
  • Posts: 105915
  • I Like Lockdown
    • Whatever Starts
    • View Profile
Re: Any linux experts?
« Reply #10 on: 31 March 2018, 09:21:56 »

Run:

apt-cache search AIO

to find name of missing Perl module, then

apt-get install <name> to install it


Being a popular distro, there should be a compiled version for Debian.  If not, you're probably better off going into the dark world of CPAN, which will cause you problems on a distro like Debian.


Are you really sure you want to start something new running shitty old Perl though?
Logged
Grumpy old man

TheBoy

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

Just run the search on an old Debian (7.1) which is all I have to hand, suspect you need this one:

apt-cache search AnyEvent
libanyevent-aggressiveidle-perl - Aggressive idle processes for AnyEvent.
libanyevent-callback-perl - callback aggregator for AnyEvent watchers
libanyevent-dbd-pg-perl - AnyEvent interface to DBD::Pg's async interface
libanyevent-dbi-perl - module supporting asynchronous DBI access
libanyevent-forkobject-perl - fork jail for AnyEvent
libanyevent-http-perl - simple non-blocking HTTP/HTTPS client
libanyevent-httpd-perl - simple lightweight event based web (application) server
libanyevent-i3-perl - communicate with the i3 window manager
libanyevent-irc-perl - Perl module for handling IRC connections
libanyevent-perl - event loop framework with multiple implementations
libanyevent-redis-perl - Perl module that implements a non-blocking Redis client
libanyevent-serialize-perl - serializer and deserializer for AnyEvent
libanyevent-tools-perl - instrument collection for AnyEvent
libanyevent-xmpp-perl - implementation of the XMPP Protocol
twiggy - AnyEvent HTTP server for PSGI (like Thin)
Logged
Grumpy old man

JamesV6CDX

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

Cheers Jaime. I’ve installed every anyevent one in the list but it’s still grumbling about a missing “anyevent:: AIO module”  >:(
Logged

TheBoy

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Brackley, Northants
  • Posts: 105915
  • I Like Lockdown
    • Whatever Starts
    • View Profile
Re: Any linux experts?
« Reply #13 on: 31 March 2018, 10:21:31 »

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
Logged
Grumpy old man

STEMO

  • Guest
Re: Any linux experts?
« Reply #14 on: 31 March 2018, 10:34:44 »

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
We're talking about James here, he won't give up till he makes it work.
Logged

JamesV6CDX

  • Omega Queen
  • *****
  • Offline Offline
  • Gloucestershire/Buckinghamshire
  • Posts: 16547
    • 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: 105915
  • 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: 16547
    • 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: 16547
    • 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.04 seconds with 18 queries.