You are not logged in.

#1 2023-05-22 21:34:53

vecino
Member
Registered: 2022-12-10
Posts: 139

[SOLVED] Perl module JSON

Hi, I'm used to using LibreNMS and also UPS-apcups: https://docs.librenms.org/Extensions/Ap … ups-apcups .

Unfortunately I miss the Perl module "JSON". I googled and it advised me to do an installation of "cpan JSON.pm" ... this one does start, but stops:

Can't locate Canary/Stability.pm in @INC (you may need to install the Canary::Stability module) (@INC contains: /usr/lib/perl5/5.36/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.36/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.36/core_perl /usr/share/perl5/core_perl .) at Makefile.PL line 4.
BEGIN failed--compilation aborted at Makefile.PL line 4.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
  MLEHMANN/JSON-XS-4.03.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK

I'm attaching the full log: https://0x0.st/s/m6XoSTG9qQvZOqdpxA5AhA/Hqcp.log

I think I'm missing another module. Isn't there a better/more elegant solution?

Thank you

Last edited by vecino (2023-05-23 15:24:27)

Offline

#2 2023-05-23 06:23:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: [SOLVED] Perl module JSON

You should only listen to random google results after checking the repositories: https://archlinux.org/packages/extra/any/perl-json/ or the AUR: https://wiki.archlinux.org/title/Arch_User_Repository

In case the software you are actually trying to use doesn't start with those installed you should post the errors from there.

Last edited by V1del (2023-05-23 06:38:25)

Offline

#3 2023-05-23 06:53:36

vecino
Member
Registered: 2022-12-10
Posts: 139

Re: [SOLVED] Perl module JSON

I have no experience with this at all. I did try searching first via pacman -Ss json but it returned many results. I didn't realize that there is a perl-json directly in the repository.

Thanks for the directions - I'll give it a try.

Offline

#4 2023-05-23 15:23:46

vecino
Member
Registered: 2022-12-10
Posts: 139

Re: [SOLVED] Perl module JSON

@V1del

Thank you very much - for the umpteenth time you have given me good advice. Great community here. I'm glad for that.

Offline

Board footer

Powered by FluxBB