1

I'm trying update a software and when I running for make update I've a issue:

Can't locate Archive/Tar.pm in @INC (@INC contains: ...)

How I can fix this?

ikegami
  • 367,544
  • 15
  • 269
  • 518
Luan Barbosa
  • 41
  • 1
  • 3
  • 2
    I've look into version you're right. I'm running 5.16 and have this problem. It's a major problem – Luan Barbosa Dec 13 '17 at 20:15
  • 3
    @LuanBarbosa which system? redhat or centos maybe? you have to install the `perl-core` package, as the perl package itself doesn't include all perl core modules. – tinita Dec 13 '17 at 20:20
  • I'm using RedHat 7. Thank you very much. I've installed the core package and works now. The problem was solved. – Luan Barbosa Dec 13 '17 at 20:26

1 Answers1

2

Archive::Tar has been bundled with Perl since Perl 5.10, so unless you are using an ancient version of Perl, you have a partial or corrupted install of Perl.

Some Linux distributions (e.g. Redhat) gut out lesser-used parts of Perl and provide them in an package (e.g. perl-core) that can be installed using the OS distribution's package manager.

Alternatively, Archive::Tar is available for install separately from Perl —it is "dual-lived"— so you can install it from CPAN.

ikegami
  • 367,544
  • 15
  • 269
  • 518