Posted on 2007-04-20 03:32:46-07 by cuzndragon
not able to find loadable object with both 2.1.2 and 2.1.3
Why can't perl find the loadable object for SDL_perl.pm?
Also with the Build.PL how would you get it to install in vendor_perl instead of site_perl?

root@pheuri:/home/git/grimoire/perl-cpan# perl -e "use SDL"

Can't locate loadable object for module SDL_perl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7/i686-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/SDL.pm line 13 Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/SDL.pm line 13.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/SDL.pm line 13.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

ls -d /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/SDL*

/usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/SDL
/usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/SDL.pm
/usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/SDL_perl.pm

ls -R /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/auto/src/

/usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/auto/src/:
SDL SDL_perl

/usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/auto/src/SDL:
OpenGL SFont

/usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/auto/src/SDL/OpenGL:
OpenGL.bs OpenGL.so

/usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/auto/src/SDL/SFont:
SFont.bs SFont.so

/usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/auto/src/SDL_perl:
SDL_perl.bs SDL_perl.so

Thanks
CuZnDragon
Robin Cook
Direct Responses: 5256 | Write a response
Posted on 2007-05-29 14:41:05-07 by battlesquid in response to 4937
Re: not able to find loadable object with both 2.1.2 and 2.1.3
I don't know if this helps you, but for me it was at the OS level. Try first to install frozen bubble using your package manager (will solve dependencies), then do the following if you keep getting errors like "Can't locate loadable object for module SDL::SFont in @INC":
$ sudo updatedb $ locate SFont.so /usr/local/lib/perl/5.8.8/auto/src/SDL/SFont/SFont.so $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/perl/5.8.8/auto/src/SDL/SFont/
Hope it helps.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.