http://qs1969.pair.com?node_id=1205356


in reply to C headers not found when installing Sys::Virt on CentOS

CentOS includes an RPM package for this module: perl-Sys-Virt

If you want to build the latest version, I'd suggest fetching the source RPM and building a new one with the latest version of the module, or looking at what it is doing and replicating that.

Replies are listed 'Best First'.
Re^2: C headers not found when installing Sys::Virt on CentOS
by chrestomanci (Priest) on Dec 13, 2017 at 09:51 UTC

    Thanks!

    That solves my problem a different and much simpler way.

    Is there an easy way to find out which perl CPAN modules are packaged for CentOS? I know about the website at http://deb.perl.it/ that works for Debian and Ubuntu packages. Is there an equivalent for CentOS or other RedHat derived distros?

      $ yum list perl-\*

      There are many such sites, but even my favorite, pkgs.org, is seriously lacking in search capabilities, so a search for Sys::Virt will come up empty.

      Therefore, I'd recommend just googling for rpm Module::Name instead.

      Note however that in this case you could have just searched with yum search Sys::Virt on your machine itself.