Search code examples
linuxperlrpmopensusezypper

Perl Net Interface and Perl newt in openSUSE


We have some perl script which are working fine in centOS 7. Now I trying to run the same scripts in openSUSE.But I could not find perl Net Interface and perl Newt packages in openSUSE. can anyone please help how to install those packages?

Can't locate Net/Interface.pm in @INC (you may need to install the Net::Interface module) (@INC contains: /usr/lib/perl5/site_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.26.1 /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.26.1 /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/5.26.1 /usr/lib/perl5/site_perl) at vsappconfig line 15.
BEGIN failed--compilation aborted at vsappconfig line 15.

Line number 15 is related to Perl Net Interface usage.

Tried installing Perl net interface and newt rpm of centOS7.

Expecting Perl net interface and newt package compatible for openSUSE.


Solution

  • If you can't find the Perl-module as a system package, you can install it through cpan:

    $ cpan
    

    to open up a Cpan shell and:

    install Net::Interface
    

    and the other packages you need.