Loading ...
Sorry, an error occurred while loading the content.

Can't install CPAN modules due to tar error

Expand Messages
  • azlon19
    Hello, I am running an Asus RT-N16 with Optware installed. My problem is that when I try to install a module I get a tar error. Here is the output:
    Message 1 of 4 , Aug 18 11:27 PM
    • 0 Attachment
      Hello,

      I am running an Asus RT-N16 with Optware installed.

      My problem is that when I try to install a module I get a tar error. Here is the output:

      root@DD-WRT:~# ipkg-opt install tar
      Installing tar (1.25-1) to /opt/...
      Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/tar_1.25-1_mipsel.ipk
      package tar suggests installing xz-utils
      Configuring tar
      update-alternatives: Linking //opt/bin/tar to /opt/bin/gnutar
      Successfully terminated.
      root@DD-WRT:/opt/.cpan/build# ipkg-opt install xz-utils
      Installing xz-utils (5.0.3-1) to /opt/...
      Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/xz-utils_5.0.3-1_mipsel.ipk
      Installing liblzma0 (5.0.3-1) to /opt/...
      Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/liblzma0_5.0.3-1_mipsel.ipk
      Configuring liblzma0
      Configuring xz-utils
      Successfully terminated.
      root@DD-WRT:~# cpan install Bundle::CPAN
      CPAN: Storable loaded ok
      Going to read /opt/.cpan/Metadata
        Database was generated on Fri, 19 Aug 2011 02:30:40 GMT
      Running install for module install
      Running make for D/DA/DAGOLDEN/install-0.01.tar.gz
      CPAN: Digest::MD5 loaded ok
      CPAN: Compress::Zlib loaded ok
      Checksum for /opt/.cpan/sources/authors/id/D/DA/DAGOLDEN/install-0.01.tar.gz ok
      Scanning cache /opt/.cpan/build for sizes
      install-0.01/
      install-0.01/t/
      install-0.01/t/install.t
      install-0.01/MANIFEST
      install-0.01/lib/
      install-0.01/lib/install.pm
      install-0.01/Changes
      install-0.01/README
      install-0.01/Makefile.PL
      install-0.01/META.yml

        CPAN.pm: Going to build D/DA/DAGOLDEN/install-0.01.tar.gz

      Checking if your kit is complete...
      Looks good
      Writing Makefile for install
      cp lib/install.pm blib/lib/install.pm
      Manifying blib/man3/install.3
        /opt/bin/make  -- OK
      Running make test
      PERL_DL_NONLAZY=1 /opt/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
      t/install....ok
      All tests successful.
      Files=1, Tests=1,  0 wallclock secs ( 0.34 cusr +  0.24 csys =  0.58 CPU)
        /opt/bin/make test -- OK
      Running make install
      Installing /opt/lib/perl5/site_perl/5.8.8/install.pm
      Installing /opt/man/man3/install.3
      Writing /opt/lib/perl5/site_perl/5.8.8/mipsel-linux/auto/install/.packlist
      Appending installation info to /opt/lib/perl5/5.8.8/mipsel-linux/perllocal.pod
        /opt/bin/make install  -- OK
      Running install for module Test::Harness
      Running make for A/AN/ANDYA/Test-Harness-3.23.tar.gz
      Checksum for /opt/.cpan/sources/authors/id/A/AN/ANDYA/Test-Harness-3.23.tar.gz ok
      Uncompressed /opt/.cpan/sources/authors/id/A/AN/ANDYA/Test-Harness-3.23.tar.gz successfully
      Using Tar:/bin/tar xvf /opt/.cpan/sources/authors/id/A/AN/ANDYA/Test-Harness-3.23.tar:
      Couldn't untar /opt/.cpan/sources/authors/id/A/AN/ANDYA/Test-Harness-3.23.tar


      Here are the stats for the box:

      root@DD-WRT:~# uname -a
      Linux DD-WRT 2.6.24.111 #5536 Sun May 8 02:44:23 CEST 2011 mips unknown

      root@DD-WRT:~# fdisk -l

      Disk /dev/sda: 8143 MB, 8143241216 bytes
      255 heads, 63 sectors/track, 990 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      Disk identifier: 0x000c0ebb

         Device Boot      Start         End      Blocks   Id  System
      /dev/sda1               1         131     1052226   83  Linux
      /dev/sda2             132         139       64260   82  Linux swap / Solaris
      /dev/sda3             140         990     6835657+  83  Linux

      root@DD-WRT:~# df -h
      Filesystem                Size      Used Available Use% Mounted on
      /dev/root                 6.1M      6.1M         0 100% /
      /dev/discs/disc0/part1
                             1011.4M    510.9M    449.2M  53% /opt
      /dev/sda3                 6.4G    142.8M      6.0G   2% /mnt

      The end goal is to be able to install the following modules:
      cpan File::Copy::Recursive File::Glob LWP::Simple TVDB::API Getopt::Long Switch WWW::TheMovieDB::Search XML::Simple

      Anybody know how can I fix this tar issue?

      Thanks!

      - Ryan
    • Fajar A. Nugraha
      On Fri, Aug 19, 2011 at 1:27 PM, azlon19 wrote: This line ... use different path for tar. I m not sure how you can force cpan to use
      Message 2 of 4 , Aug 19 3:03 AM
      • 0 Attachment
        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
      • Sam
        Sam Park 010 2784 5903 ... Sam Park 010 2784 5903 2011. 8. 19. 15:27 azlon19 작성: Hello, I am running an Asus RT-N16 with Optware
        Message 3 of 4 , Aug 19 3:41 AM
        • 0 Attachment


          Sam Park
          010 2784 5903

          2011. 8. 19. 15:27 "azlon19" <spazlon@...> 작성:

           

          Hello,

          I am running an Asus RT-N16 with Optware installed.

          My problem is that when I try to install a module I get a tar error. Here is the output:

          root@DD-WRT:~# ipkg-opt install tar
          Installing tar (1.25-1) to /opt/...
          Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/tar_1.25-1_mipsel.ipk
          package tar suggests installing xz-utils
          Configuring tar
          update-alternatives: Linking //opt/bin/tar to /opt/bin/gnutar
          Successfully terminated.
          root@DD-WRT:/opt/.cpan/build# ipkg-opt install xz-utils
          Installing xz-utils (5.0.3-1) to /opt/...
          Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/xz-utils_5.0.3-1_mipsel.ipk
          Installing liblzma0 (5.0.3-1) to /opt/...
          Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/liblzma0_5.0.3-1_mipsel.ipk
          Configuring liblzma0
          Configuring xz-utils
          Successfully terminated.
          root@DD-WRT:~# cpan install Bundle::CPAN
          CPAN: Storable loaded ok
          Going to read /opt/.cpan/Metadata
            Database was generated on Fri, 19 Aug 2011 02:30:40 GMT
          Running install for module install
          Running make for D/DA/DAGOLDEN/install-0.01.tar.gz
          CPAN: Digest::MD5 loaded ok
          CPAN: Compress::Zlib loaded ok
          Checksum for /opt/.cpan/sources/authors/id/D/DA/DAGOLDEN/install-0.01.tar.gz ok
          Scanning cache /opt/.cpan/build for sizes
          install-0.01/
          install-0.01/t/
          install-0.01/t/install.t
          install-0.01/MANIFEST
          install-0.01/lib/
          install-0.01/lib/install.pm
          install-0.01/Changes
          install-0.01/README
          install-0.01/Makefile.PL
          install-0.01/META.yml

            CPAN.pm: Going to build D/DA/DAGOLDEN/install-0.01.tar.gz

          Checking if your kit is complete...
          Looks good
          Writing Makefile for install
          cp lib/install.pm blib/lib/install.pm
          Manifying blib/man3/install.3
            /opt/bin/make  -- OK
          Running make test
          PERL_DL_NONLAZY=1 /opt/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
          t/install....ok
          All tests successful.
          Files=1, Tests=1,  0 wallclock secs ( 0.34 cusr +  0.24 csys =  0.58 CPU)
            /opt/bin/make test -- OK
          Running make install
          Installing /opt/lib/perl5/site_perl/5.8.8/install.pm
          Installing /opt/man/man3/install.3
          Writing /opt/lib/perl5/site_perl/5.8.8/mipsel-linux/auto/install/.packlist
          Appending installation info to /opt/lib/perl5/5.8.8/mipsel-linux/perllocal.pod
            /opt/bin/make install  -- OK
          Running install for module Test::Harness
          Running make for A/AN/ANDYA/Test-Harness-3.23.tar.gz
          Checksum for /opt/.cpan/sources/authors/id/A/AN/ANDYA/Test-Harness-3.23.tar.gz ok
          Uncompressed /opt/.cpan/sources/authors/id/A/AN/ANDYA/Test-Harness-3.23.tar.gz successfully
          Using Tar:/bin/tar xvf /opt/.cpan/sources/authors/id/A/AN/ANDYA/Test-Harness-3.23.tar:
          Couldn't untar /opt/.cpan/sources/authors/id/A/AN/ANDYA/Test-Harness-3.23.tar


          Here are the stats for the box:

          root@DD-WRT:~# uname -a
          Linux DD-WRT 2.6.24.111 #5536 Sun May 8 02:44:23 CEST 2011 mips unknown

          root@DD-WRT:~# fdisk -l

          Disk /dev/sda: 8143 MB, 8143241216 bytes
          255 heads, 63 sectors/track, 990 cylinders
          Units = cylinders of 16065 * 512 = 8225280 bytes
          Disk identifier: 0x000c0ebb

             Device Boot      Start         End      Blocks   Id  System
          /dev/sda1               1         131     1052226   83  Linux
          /dev/sda2             132         139       64260   82  Linux swap / Solaris
          /dev/sda3             140         990     6835657+  83  Linux

          root@DD-WRT:~# df -h
          Filesystem                Size      Used Available Use% Mounted on
          /dev/root                 6.1M      6.1M         0 100% /
          /dev/discs/disc0/part1
                                 1011.4M    510.9M    449.2M  53% /opt
          /dev/sda3                 6.4G    142.8M      6.0G   2% /mnt

          The end goal is to be able to install the following modules:
          cpan File::Copy::Recursive File::Glob LWP::Simple TVDB::API Getopt::Long Switch WWW::TheMovieDB::Search XML::Simple

          Anybody know how can I fix this tar issue?

          Thanks!

          - Ryan

        • azlon19
          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
          Message 4 of 4 , Aug 19 3:55 AM
          • 0 Attachment
            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
            >
          Your message has been successfully submitted and would be delivered to recipients shortly.