Fedora: where is bigint.pm?
Recently something like this happened:
$ perl -Mbigint -e 'print 1->is_zero()."\n"' Can't locate bigint.pm in @INC (you may need to install the bigint module)
OK, but which package will provide bigint? (not to be confused with Math::BigInt!)
Debian has apt-file:
$ apt-file search bigint.pm perl-modules-5.28: /usr/share/perl/5.28.1/bigint.pm
Arch Linux has Pacman:
$ pacman -F bigint.pm core/perl 5.28.1-1 (base) [installed: 5.30.1-1] usr/share/perl5/core_perl/bigint.pm
openSUSE has zypper but its
search
function isn't returning much. However, bigint.pm
is provided by their standard perl package:
$ rpm -qf `locate bigint` perl-5.30.1-3.2.x86_64
And Fedora has dnf, but
whatprovides
doesn't return anything and search
only returns slightly unrelated results:
$ dnf search bigint texlive-bigints-doc.noarch perl-Math-BigInt-GMP.x86_64 perl-Math-BigInt-FastCalc.x86_64 texlive-bigints.noarch perl-Math-BigInt.noarch php-pear-math-biginteger.noarch
But none of those actually provided
bigint.pm
. Thankfully a comment in RHBZ#1286363 provided the key command on how to install the correct Perl module:
$ sudo dnf install 'perl(bigint)'
With that in place, the missing
bigint.pm
would be installed and the command above executes just fine. Of course, this works for other pragmas just as well:
$ dnf install 'perl(threads)' Package perl-threads-1:2.22-439.fc31.x86_64 is already installed.