in reply to Re: non-root CPAN with cPanel does not untar
in thread non-root CPAN with cPanel does not untar

Following this line of thought there is this line in your MyConfig.pm or config setting display:

... tar [/usr/bin/tar] ...

Maybe change it to /bin/tar. Or wherever it is...

Replies are listed 'Best First'.
Re^3: non-root CPAN with cPanel does not untar
by johnwashburn (Sexton) on Jun 23, 2009 at 09:34 UTC

    You have put your finger on the problem

    I ran the following script (via cron):
    #!/bin/bash cd ~/.cpan/build/GAAS-fwrgdL/ /usr/bin/tar -xvvf MIME-Base64-Perl-1.00.tar
    with the following result:
    /home/washburn/scripts/TestTar.sh: line 5: /usr/bin/tar: No such file +or directory

    I then followed the above advice and changed the MyConfig.Pm line:

      'tar' => q[/usr/bin/tar],

    to

      'tar' => q[/bin/tar],

    and ran (via cron)

    cpan MIME::QuotedPrint::Perl

    which worked and produced the following email:

    I should have run this

    ls -lg /usr/bin/tar ls: /usr/bin/tar: No such file or directory
    before bothering the perl monks.