Friday, August 19, 2011

[nslu2-linux] Re: Can't install CPAN modules due to tar error

 

Fajar -

Thanks for the reply.

I changed the CPAN path from /opt/bin/tar to /bin/tar because /opt/bin/tar is a symlink to /bin/tar (I think).

Either way it fails with the same error.

Also, to change the tar path in CPAN you can do the following:

root@DD-WRT:~# cpan
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support available (try 'install Bundle::CPAN')

cpan> o conf tar
    tar                /bin/tar

cpan> o conf tar /opt/bin/tar
    tar                /opt/bin/tar

cpan> o conf commit
commit: wrote /opt/lib/perl5/5.8.8/CPAN/

Config.pm

- Ryan


--- In nslu2-linux@yahoogroups.com, "Fajar A. Nugraha" <fajar@...> wrote:
>
> On Fri, Aug 19, 2011 at 1:27 PM, azlon19 spazlon@... wrote:
>
> This line
>
> > update-alternatives: Linking //opt/bin/tar to /opt/bin/gnutar
>
> ... and this line
>
> > Using Tar:/bin/tar xvf /opt/.cpan/sources/authors/id/A/AN/ANDYA/Test-Harness-3.23.tar:
>
> use different path for tar. I'm not sure how you can force cpan to use
> /opt/bin/tar though.
>
> --
> Fajar
>

__._,_.___
Recent Activity:
MARKETPLACE
A better credit score can save you thousands. See yours at freecreditscore.com.
.

__,_._,___

No comments:

Post a Comment