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

To me, it looks like the program "/usr/bin/tar" is not found (sh: /usr/bin/tar: No such file or directory). On my local system, tar lies under /bin/tar, so probably you should try to find where it is installed? You should be able to use "which tar", using your cron method.


daniel.
  • Comment on Re: non-root CPAN with cPanel does not untar

Replies are listed 'Best First'.
Re^2: non-root CPAN with cPanel does not untar
by juster (Friar) on Jun 23, 2009 at 01:04 UTC

    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...

      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.