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
Then of course, the system doesn't know where to find your libs..../configure --prefix=$HOME make make install
Then you'd need to build the Perl interface...export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HOME}/lib ldconfig
Of course then when the webserver (probably user nobody) tries to run it... might not find the libs... depending...cd /path/to/Image_Magick perl Makefile.pl PREFIX=${HOME}/lib/perl5 make make install
So the CGI might start:
Yeah, that might be... "interesting."#!/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;
|
|---|