in reply to Re: Modules that get along with use lib
in thread Modules that get along with use lib

Modules like Image::Magick (which is just an interface to some C programs, image libraries, and whatnot) will get *quite* interesting.
I would imagine that the C libs wouldn't be there, and that you'd have to build imagemagick with
./configure --prefix=$HOME make make install
Then of course, the system doesn't know where to find your libs...
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HOME}/lib ldconfig
Then you'd need to build the Perl interface...
cd /path/to/Image_Magick perl Makefile.pl PREFIX=${HOME}/lib/perl5 make make install
Of course then when the webserver (probably user nobody) tries to run it... might not find the libs... depending...

So the CGI might start:

#!/usr/bin/perl -t use strict; use lib '/home/myhome/lib/perl5'; $ENV{LD_LIBRARY_PATH} = $ENV{LD_LIBRARY_PATH}.'/home/myhome/lib'; use Image::Magick;
Yeah, that might be... "interesting."
--
Snazzy tagline here