Having failed to get Space Invaders running on Windows, it was one of the first things I tried to do on my RPi. It complains about not having Term::ReadKey. But issuing the command cpan Term::ReadKey gives errors that seem to be YAML related. Trying to install YAML gives a lot of output, but the end of it is almost identical to the end of ReakKey's installation process. The following transcription may contain typos:

CPAN.pm: going to build I/IN/INGY/YAML-0.81.tar.gz Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=s +ite] Warning (usually harmless): 'YAML' not installed, will not store persi +stent state INGY/YAML-0.81.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Could not read '/home/pi/.cpan/build/YAML-0.81-AQE1XZ/META.yml'. Falli +ng back to other methods to determine prerequisites

The debian OS comes with Perl 5.10.1, and trying to update it states that this is the latest version. I find this surprising, but since I don't generally use leading edge features, I'm not terribly worried unless it's masking something more important.

Generally I don't use Linux as my work usually involves Excel, so I expect that there are lots of standard tricks that I should know but don't. Any pointers would be gratefully received.

Regards,

John Davies

Update: Thank you all. Moritz's solution worked perfectly (as always), but I still don't have Space Invaders working, as it uses $* which is no longer supported. I certainly don't know enough Perl to try to repair an obfu with bitrot. Thanks, too, to those who pointed out the Debian related issues. As I don't know Linux, I'm a bit overwhelmed, but since the Pi is a learning tool and I have the OS download on my network, it isn't the end of the world if I break it. I can easily rewrite the SD card.


In reply to Raspberry Pi: some sort of dependency hell involving YAML by davies

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.