Muskovitz has asked for the wisdom of the Perl Monks concerning the following question:

Yesterday i have tried installing Perl SDL on my Windows 7 Ultimate and it went fine.

But today i installed Perl SDL in my Linux System(Linux Lite) and it went fine also until when i try the lunar lander:

perl -MSDL::Tutorial::LunarLander=lander.pl -e1 [-] created 'lander.pl' [-] created 'images' [-] created 'images/ship.jpg' [-] created 'images/background.jpg'
and then tried to execute the lander.pl:
perl lander.pl Undefined subroutine &SDL::Image::load called at lander.pl line 19.
Any help would be appreciated. :)

Replies are listed 'Best First'.
Re: Undefined subroutine &SDL::Image::load
by Anonymous Monk on Sep 08, 2017 at 23:00 UTC

    But today i installed Perl SDL in my Linux System(Linux Lite) and it went fine also until when i try the lunar lander: Undefined subroutine &SDL::Image::load called at lander.pl line 19.

    Did you run the tests (make test) and did they all pass?

    What do you get when you try ldd -v ...auto/SDL/Image.so ? (from blib? )

    Does objdump -x ...auto/SDL/Image.so mention "load"?