Perl Net Interface and Perl newt in openSUSE

113 Views Asked by At

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.

2

There are 2 best solutions below

2
Peter Kuilboer On BEST ANSWER

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.

2
sotona On
    perl -MCPAN -e 'install Net::Interface' 

however you might need to install CPAN first