SDL beginner question
--0015174c12301e489e049a5bf565
Content-Type: text/plain; charset=ISO-8859-1
Hi everyone,
I've just finished reading Learning Perl by O'Really and I want to learn
something that can give me something more pleasant to work on, something
funny, I want to program some basic games like pong...
For this I've found a book that introduces SDL, but I don't know how to
install all the cpan modules (and other things) needed to run the code
written in this book.
I'm running Mac OS X 10.6.6 and I've run the terminal command "sudo cpan
SDL" but this is not enough and I had some compilation error in some basilar
script like the one down here.
This is the script:
> #!/usr/bin/perl
use strict;
use warnings;
use SDL;
use SDLx::App;
> my $app = SDLx::App->new();
> sleep(2);
And this is the compilation error shown in the terminal:
Can't locate SDL.pm in [at] INC ( [at] INC contains:
> /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
> /Library/Perl/Updates/5.10.0
> /System/Library/Perl/5.10.0/darwin-thread-multi-2level
> /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level
> /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
> /Network/Library/Perl/5.10.0 /Network/Library/Perl
> /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2leve l
> /System/Library/Perl/Extras/5.10.0 .) at ./script.pl line 4.
BEGIN failed--compilation aborted at ./script.pl line 4.
Hope you can help me.
Best Regards,
*--
Francesco Di Lorenzo*
* [at] frankdilo <http://twitter.com/frankdilo>
*
--0015174c12301e489e049a5bf565--
Re: SDL beginner question
Hi Francesco,
On Friday 21 Jan 2011 16:20:51 Francesco Di Lorenzo wrote:
> Hi everyone,
> I've just finished reading Learning Perl by O'Really and I want to learn
> something that can give me something more pleasant to work on, something
> funny, I want to program some basic games like pong...
> For this I've found a book that introduces SDL, but I don't know how to
> install all the cpan modules (and other things) needed to run the code
> written in this book.
> I'm running Mac OS X 10.6.6 and I've run the terminal command "sudo cpan
> SDL" but this is not enough and I had some compilation error in some
> basilar script like the one down here.
>
> This is the script:
> > #!/usr/bin/perl
>
> use strict;
>
> use warnings;
>
> use SDL;
>
> use SDLx::App;
>
> > my $app = SDLx::App->new();
> >
> >
> > sleep(2);
You have extra ">" in the code that you've given.
>
> And this is the compilation error shown in the terminal:
>
> Can't locate SDL.pm in [at] INC ( [at] INC contains:
> > /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
> > /Library/Perl/Updates/5.10.0
> > /System/Library/Perl/5.10.0/darwin-thread-multi-2level
> > /System/Library/Perl/5.10.0
> > /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0
> > /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
> > /Network/Library/Perl/5.10.0 /Network/Library/Perl
> > /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2leve l
> > /System/Library/Perl/Extras/5.10.0 .) at ./script.pl line 4.
>
> BEGIN failed--compilation aborted at ./script.pl line 4.
>
Well, first of all, you seem to be missing SDL.pm from the include paths.
Probably the installation wasn't successful. Another issue is that you are
experimenting using the Mac OS X built in perl program, which is not a good
idea. You should install your own perl VM on a different path and use that for
development.
You may wish to try consultin the #sdl IRC channel on irc.perl.org with
further problems ( irc://irc.perl.org/#sdl ).
Regards,
Shlomi Fish
--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
"Star Trek: We, the Living Dead" - http://shlom.in/st-wtld
Chuck Norris can make the statement "This statement is false" a true one.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: SDL beginner question
--20cf30549ef70bef43049a5d4926
Content-Type: text/plain; charset=ISO-8859-1
I would recommend using the IRC chat or SDL mailing list found here:
http://sdl.perl.org/index.html
At least one of the members that is working on the development side is
coding on a Mac as well (Unfortunately I don't remember the name). kthakore
is generally in the IRC channel most of the time and I've found him to be
quite helpful.
On Fri, Jan 21, 2011 at 10:20 AM, Shlomi Fish <shlomif [at] iglu.org.il> wrote:
> Hi Francesco,
>
> On Friday 21 Jan 2011 16:20:51 Francesco Di Lorenzo wrote:
> > Hi everyone,
> > I've just finished reading Learning Perl by O'Really and I want to learn
> > something that can give me something more pleasant to work on, something
> > funny, I want to program some basic games like pong...
> > For this I've found a book that introduces SDL, but I don't know how to
> > install all the cpan modules (and other things) needed to run the code
> > written in this book.
> > I'm running Mac OS X 10.6.6 and I've run the terminal command "sudo cpan
> > SDL" but this is not enough and I had some compilation error in some
> > basilar script like the one down here.
> >
> > This is the script:
> > > #!/usr/bin/perl
> >
> > use strict;
> >
> > use warnings;
> >
> > use SDL;
> >
> > use SDLx::App;
> >
> > > my $app = SDLx::App->new();
> > >
> > >
> > > sleep(2);
>
> You have extra ">" in the code that you've given.
>
> >
> > And this is the compilation error shown in the terminal:
> >
> > Can't locate SDL.pm in [at] INC ( [at] INC contains:
> > > /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
> > > /Library/Perl/Updates/5.10.0
> > > /System/Library/Perl/5.10.0/darwin-thread-multi-2level
> > > /System/Library/Perl/5.10.0
> > > /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0
> > > /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
> > > /Network/Library/Perl/5.10.0 /Network/Library/Perl
> > > /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2leve l
> > > /System/Library/Perl/Extras/5.10.0 .) at ./script.pl line 4.
> >
> > BEGIN failed--compilation aborted at ./script.pl line 4.
> >
>
> Well, first of all, you seem to be missing SDL.pm from the include paths.
> Probably the installation wasn't successful. Another issue is that you are
> experimenting using the Mac OS X built in perl program, which is not a good
> idea. You should install your own perl VM on a different path and use that
> for
> development.
>
> You may wish to try consultin the #sdl IRC channel on irc.perl.org with
> further problems ( irc://irc.perl.org/#sdl ).
>
> Regards,
>
> Shlomi Fish
>
> --
> ------------------------------------------------------------ -----
> Shlomi Fish http://www.shlomifish.org/
> "Star Trek: We, the Living Dead" - http://shlom.in/st-wtld
>
> Chuck Norris can make the statement "This statement is false" a true one.
>
> Please reply to list if it's a mailing list post - http://shlom.in/reply .
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
> For additional commands, e-mail: beginners-help [at] perl.org
> http://learn.perl.org/
>
>
>
--20cf30549ef70bef43049a5d4926--