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 :)
| [reply] |
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 | [reply] |
|
force doesn't care if its installed already -- it might care about the prerequisites though :)
| [reply] |
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
| [reply] |
|
| [reply] |
|
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
| [reply] |
|
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 . . .
| [reply] [d/l] |
|
|
|
|