Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Help With Perl SDL

by azonicrider (Initiate)
on Sep 22, 2012 at 15:57 UTC ( #995107=perlquestion: print w/replies, xml ) Need Help??
azonicrider has asked for the wisdom of the Perl Monks concerning the following question:

Yes, I've spent the last couple hours trying to install SDL for Perl. No success.

I've tried manually installing it, by placing SDL files wherever the Perl Command Prompt demands them. It soon began demanding files that I have no clue where their original location is.

I've tried this SDL Manual, but their instructions on installing are far too brief.

Any help with this is appreciated

Replies are listed 'Best First'.
Re: Help With Perl SDL
by marto (Archbishop) on Sep 22, 2012 at 18:38 UTC

    sudo cpan SDL from the command line installed everything required. How are you trying to install this? If you're having problems it's easier to help if you actually tell us what you're doing and what's going wrong. Specifying Perl version and operating system would be helpful also.

      "sudo" isn't recognized, it tells me. Anyways, whenever I run a program that uses SDL, it says that "" was not found in this folder, but then it keeps doing that error no matter how many files I add to wherever folder it wishes.

      • Windows Vista SP2
      • Latest Strawberry Perl
      • Padre IDE
      • SDL 2.54
        Looks to me that 'cpan install SDL' should work ok. Where does that come undone for you ?
        On my Strawberry perl-5.16.0, I actually installed Alien::SDL manually ('perl', 'perl build', 'perl build test', 'perl build install') then installed the Tie::Simple and Test::Most dependency chains ('cpan install Tie-Simple', 'cpan install Test-Most') and then manually built SDL.

        But the way it all worked suggested to me that I could have simply run 'cpan install SDL'. (I didn't do that because I was having trouble with my 'cpan install' and didn't work out how to fix it until I was half way thru with the manual installs.)

        The SDL test suite concluded with:
        Test Summary Report ------------------- t\core.t (Wstat: 0 Tests: 28 Failed: 0) TODO passed: 21-22 t\core_video.t (Wstat: 0 Tests: 110 Failed: 0) TODO passed: 57, 59 t\sdlx_fps.t (Wstat: 512 Tests: 13 Failed: 2) Failed tests: 6, 11 Non-zero exit status: 2 Files=59, Tests=3827, 287 wallclock secs ( 1.75 usr + 0.58 sys = 2.3 +3 CPU) Result: FAIL Failed 1/59 test programs. 2/3827 subtests failed.
        AFTERTHOUGHT: Of course, those failing tests will mean that you have to use force with the cpan install if you actually want it to be installed.


      try command perl -MCPAN -e shell install SDL

        Why? Did you read my post? It installed for me without problem.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://995107]
Approved by marto
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2018-07-18 09:17 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (388 votes). Check out past polls.