I'm trying to install Logitech Media Server aka slimserver on a Raspberry Pi running OSMC (Raspbian derivative). It's been failing in several unique ways, and my latest attempt has been to build perl 5.14.1 manually, as per a tutorial that PerlMonks won't let me link to. I've gotten errors at make test. I'm a total newcomer to perl, although I have some experience in coding in bash and ruby.

$ wget http://www.cpan.org/src/5.0/perl-5.14.1.tar.gz $ tar -xzf perl-5.14.1.tar.gz $ cd perl-5.14.1 $ ./Configure -des -Dprefix=/opt/perl-5.14.1-LMS -Dusethreads $ make $ make test ... Failed 3 tests out of 2025, 99.85% okay. ../cpan/Archive-Extract/t/01_Archive-Extract.t ../dist/threads-shared/t/stress.t ../lib/h2ph.t ### Since not all tests were successful, you may want to run some of ### them individually and examine any diagnostic messages they produce +. ### See the INSTALL document's section on "make test". ### You have a good chance to get more information by running ### ./perl harness ### in the 't' directory since most (>=80%) of the tests succeeded. ### You may have to set your dynamic library search path, ### LD_LIBRARY_PATH, to point to the build directory: ### setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness ### LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harn +ess ### export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness ### for csh-style shells, like tcsh; or for traditional/modern ### Bourne-style shells, like bash, ksh, and zsh, respectively. u=110.15 s=25.49 cu=7271.99 cs=397.44 scripts=2025 tests=461684 makefile:854: recipe for target 'test' failed make: *** [test] Error 1

I attempted to troubleshoot with harness.

$ cd t $ ./perl harness ../cpan/Archive-Extract/t/01_Archive-Extract.t ../dis +t/threads -shared/t/stress.t ../lib/h2ph.t
The output of harness is 410 lines long; here are the first two failed tests.
# Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 + Bin: 1)' # at t/01_Archive-Extract.t line 456. # Failed test 'Found correct number of output files ()' # at t/01_Archive-Extract.t line 469. # got: '0' # expected: '2'

In addition, I was confused by the instructions from make test that I "may have to" set my dynamic library search path, so I also tried

$ cd ..; export LD_LIBRARY_PATH=$(pwd); cd t; ./perl harness ../cpan/A +rchive-Extract/t/01_Archive-Extract.t ../dist/threads-shared/t/stress +.t ../lib/h2ph.t

This failed in a very similar fashion.

I tried investigating the source code, but couldn't make sense of it. The first error states

# Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 + Bin: 1)' # at t/01_Archive-Extract.t line 456.

In ../cpan/Archive-Extract/t/01_Archive-Extract.t, line 456 is ok( $rv, "extract() for '$archive' reports success ($cfg)"); but that makes no sense to me. I looked above this line, but that also made no sense.

I tried make install anyway, which appeared to work. (Actually I did sudo checkinstall make install-strip). I then attempted to use CPAN to install the non-working modules. I'd actually prefer not to do this. The reason I'm building an old version of perl is because the newer ones don't work with Logitech Media Server. I'm not sure whether upgrading specific parts would prevent it from working. In any case, I went on with the install, which failed.

osmc@osmc:/opt/perl-5.14.1-LMS/bin$ ./perl -MCPAN -eshell Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9600) Enter 'h' for help. cpan[1]> install Archive::Extract Fetching with HTTP::Tiny: http://cpan.mirrors.ilisys.com.au/authors/01mailrc.txt.gz Going to read '/home/osmc/.cpan/sources/authors/01mailrc.txt.gz' ...................................................................... +......DONE Fetching with HTTP::Tiny: http://cpan.mirrors.ilisys.com.au/modules/02packages.details.txt.gz Going to read '/home/osmc/.cpan/sources/modules/02packages.details.txt +.gz' Database was generated on Tue, 18 Aug 2015 12:17:02 GMT HTTP::Date not available .............. New CPAN.pm version (v2.10) available. [Currently running version is v1.9600] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session. ..............................................................DONE Fetching with HTTP::Tiny: http://cpan.mirrors.ilisys.com.au/modules/03modlist.data.gz Going to read '/home/osmc/.cpan/sources/modules/03modlist.data.gz' DONE Going to write /home/osmc/.cpan/Metadata Running install for module 'Archive::Extract' Running make for B/BI/BINGOS/Archive-Extract-0.76.tar.gz Fetching with HTTP::Tiny: http://cpan.mirrors.ilisys.com.au/authors/id/B/BI/BINGOS/Archive-Extra +ct-0.76.tar.gz Fetching with HTTP::Tiny: http://cpan.mirrors.ilisys.com.au/authors/id/B/BI/BINGOS/CHECKSUMS Checksum for /home/osmc/.cpan/sources/authors/id/B/BI/BINGOS/Archive-E +xtract-0.76.tar.gz ok Scanning cache /home/osmc/.cpan/build for sizes Use of uninitialized value $newdir in substitution (s///) at /opt/perl +-5.14.1-LMS/lib/5.14.1/armv6l-linux-thread-multi/Cwd.pm line 502. Use of uninitialized value $newdir in chdir at /opt/perl-5.14.1-LMS/li +b/5.14.1/armv6l-linux-thread-multi/Cwd.pm line 510. Use of chdir('') or chdir(undef) as chdir() is deprecated at /opt/perl +-5.14.1-LMS/lib/5.14.1/armv6l-linux-thread-multi/Cwd.pm line 510. Use of uninitialized value $newdir in pattern match (m//) at /opt/perl +-5.14.1-LMS/lib/5.14.1/armv6l-linux-thread-multi/Cwd.pm line 525. Use of uninitialized value $newdir in split at /opt/perl-5.14.1-LMS/li +b/5.14.1/armv6l-linux-thread-multi/Cwd.pm line 531. DONE Uncompressed /home/osmc/.cpan/sources/authors/id/B/BI/BINGOS/Archive-E +xtract-0.76.tar.gz successfully Using Tar:/bin/tar xf "Archive-Extract-0.76.tar": Couldn't untar Archive-Extract-0.76.tar Package seems to come without Makefile.PL. (The test -f "/home/osmc/.cpan/build/BINGOS-nwA8kc/Makefile.PL" retu +rned false.) Writing one on our own (setting NAME to ArchiveExtract) Had problems unarchiving. Please build manually Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: BINGOS/Archive-Extract-0.76.tar.gz : unwrapped NO -- untar +failed

How can I successfully build perl?

EDIT

This is the tutorial that I am trying to follow, and the reason for building the older version of perl.

In reply to Building perl fails tests with 01_Archive-Extract.t, stress.t and h2ph.t by Montronaloya

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.