Grargh! #Solaris #tar hates #GNU extensions. And #cpanm can't be configured to specifically use #gtar instead of whatever tar it finds first in the path.

Therefore ...

`sudo ln -sf $(which gtar) $(which tar)`

No, I'm not kidding.

https://github.com/DrHyde/perl-modules-Palm-TreoPhoneCallDB/commit/4b8b4f72ed474e17eacca7eb0a2c275d37e662b4

#perl #ComputerAbuse

Replace `tar` with `gtar`, because Solaris `tar` shits its pants when… · DrHyde/perl-modules-Palm-TreoPhoneCallDB@4b8b4f7

… it sees some GNU extensions in tarballs that `cpanm` downloads from the CPAN.

GitHub

@DrHyde "funny" detail: cpanm knows that Solaris's tar is not good

use constant BAD_TAR => ($^O eq 'solaris' || $^O eq 'hpux');
but I think that the logic based on that check just splits out the decompression bit…

cpanminus/lib/App/cpanminus/script.pm at maint · miyagawa/cpanminus

cpanminus - get, unpack, build and install modules from CPAN - miyagawa/cpanminus

GitHub
@dakkar there are numerous issue tickets on github around this