Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation requires perl-bignum on Fedora (likely CentOS/Redhat) for bigint package #64

Open
adamparker opened this issue Jun 3, 2019 · 3 comments

Comments

@adamparker
Copy link

bigint was moved into a new package perl-bignum.

Related here: https://bugzilla.redhat.com/show_bug.cgi?id=1286363

[root@nms plugins]# ./check_snmp_int.pl
Can't locate bigint.pm in @inc (you may need to install the bigint module) (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./check_snmp_int.pl line 412.
BEGIN failed--compilation aborted at ./check_snmp_int.pl line 412.

[root@nms plugins]# dnf install perl-Math-BigInt
Last metadata expiration check: 0:06:17 ago on Mon 03 Jun 2019 18:07:27 BST.
Package perl-Math-BigInt-1:1.9998.13-3.fc29.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

dnf install perl-bignum

[root@nms plugins]# ./check_snmp_int.pl
Usage: ./check_snmp_int.pl [-v] -H -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L ,) [-p ] -n [-N -A -i -a -D --down] [-r] [-f[eSyY]] [-k[qBMGu] -g -w -c -d] [-o <octet_length>] [-t ] [-s] --label [-V]
[root@nms plugins]#

@adamparker
Copy link
Author

This was with Fedora 29.

@dnsmichi
Copy link
Collaborator

dnsmichi commented Jun 4, 2019

Are you sure that all dependencies are installed? I just tried it with a fresh Docker container for Fedora 29, this works like a charm.

$ docker run -ti -v `pwd`:/mnt fedora:29 bash

[root@d91a6f0e0247 mnt]# dnf -y install perl perl-Net-SNMP perl-Getopt-Long perl-Crypt-DES perl-Crypt-Rijndael perl-Digest-HMAC

[root@d91a6f0e0247 mnt]# plugins/check_snmp_int.pl
Usage: plugins/check_snmp_int.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>)  [-p <port>] -n <name in desc_oid> [-N -A -i -a -D --down] [-r] [-f[eSyY]] [-k[qBMGu] -g -w<warn levels> -c<crit levels> -d<delta>] [-o <octet_length>] [-t <timeout>] [-s] --label [-V]

@robpou
Copy link

robpou commented Feb 28, 2020

I'm not sure about Fedora but on RHEL/CentOS8 I saw the same error message as @adamparker.
I tried these packages:

perl-Math-BigInt # (was installed by default)
perl-Math-BigInt-GMP
perl-Math-BigInt-FastCalc

but they didn't contain the needed bigint.pm. After installing perl-bigint the plugin started working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants