Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: Help With Perl SDL

by azonicrider (Initiate)
on Sep 23, 2012 at 05:00 UTC ( #995165=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Help With Perl SDL
in thread Help With Perl SDL

I do the command "cpan install SDL", and it tells me that SDL is already installed. I then fire up a Perl file that uses SDL, but the prompt still states that SDL files are missing.


Anyways, I'll try those commands you used to install Alien::SDL manually.


Comment on Re^4: Help With Perl SDL
Replies are listed 'Best First'.
Re^5: Help With Perl SDL
by syphilis (Canon) on Sep 23, 2012 at 06:16 UTC
    I do the command "cpan install SDL", and it tells me that SDL is already installed

    If you remove SDL.pm from your Strawberry installation, 'cpan -fi SDL' should then believe that SDL is not installed, and go about re-installing it in the correct manner.
    (I *think* '-fi' is the right way to 'force install' ... not entirely sure as I don't often use the cpan command.)

    Cheers,
    Rob
      force doesn't care if its installed already -- it might care about the prerequisites though :)
Re^5: Help With Perl SDL
by Anonymous Monk on Sep 23, 2012 at 05:45 UTC

    I do the command "cpan install SDL", and it tells me that SDL is already installed. I then fire up a Perl file that uses SDL, but the prompt still states that SDL files are missing.

    Like, copy/paste some error messages :)

Re^5: Help With Perl SDL
by azonicrider (Initiate) on Sep 23, 2012 at 07:48 UTC
    I don't know how to copy the whole command prompt text, however here is the first line of the error:
    Can't locate object method "config" via package "Alien::SDL" in directory C:\strawberry\blah blah blah
      Can't locate object method "config" via package "Alien::SDL" in directory C:\strawberry

      I didn't strike that one. During the 'perl build.pl' step of the Alien::SDL installation, I was presented with 3 options regarding which SDL package to use.
      Did that happen for you ?
      Which option did you take ? (I took the first.)

      To copy'n'paste to/from a cmd.exe shell, click on the little cmd icon that's top left of the cmd.exe window. Then select "Properties", then tick "Quick Edit".
      Then you'll be able to select, copy , and paste using the mouse in the usual way.

      Cheers,
      Rob

        I also chose the first option


        Got it now:
        Can't locate object method "config" via package "Alien::SDL" at C:/str +awberry/Dw inperl/perl/site/lib/SDL/Internal/Loader.pm line 34. Compilation failed in require at SDL.pm line 42. BEGIN failed--compilation aborted at SDL.pm line 42. Compilation failed in require at sdl.pl line 6. BEGIN failed--compilation aborted at sdl.pl line 6. Press any key to continue . . .

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995165]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2015-07-08 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls