Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Raspberry Pi: some sort of dependency hell involving YAML

by davies (Vicar)
on May 06, 2012 at 17:00 UTC ( #969155=perlquestion: print w/ replies, xml ) Need Help??
davies has asked for the wisdom of the Perl Monks concerning the following question:

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.

Comment on Raspberry Pi: some sort of dependency hell involving YAML
Select or Download Code
Re: Raspberry Pi: some sort of dependency hell involving YAML
by moritz (Cardinal) on May 06, 2012 at 17:43 UTC
Re: Raspberry Pi: some sort of dependency hell involving YAML
by Anonymous Monk on May 06, 2012 at 19:25 UTC
    Although you certainly can use traditional CPAN methods to install any sort of package you may want, most standard Perl packages are also available in the operating system's packaging system at some reasonably current level. The advantage here is that the entire (Perl) package level from which the (say, Debian) packages were derived will have been tested and consistent with one another. The only significant dis-advantage is that the Perl dependencies may or may not be matched in the operating system package-dependency tree: you might need to install other (Debian) packages to get things to work as intended because (Debian) didn't know that the dependency existed.
Re: Raspberry Pi: some sort of dependency hell involving YAML
by RedElk (Hermit) on May 07, 2012 at 15:35 UTC

    This node and its links may be worth reading as a point of reference. Similar to what AnonymousMonk mentioned above.

Re: Raspberry Pi: some sort of dependency hell involving YAML
by planetscape (Canon) on Feb 17, 2013 at 13:35 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://969155]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-07-30 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls