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

In reply to Re: Re: Modules that get along with use lib by Aighearach
in thread Modules that get along with use lib by earthboundmisfit

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.