in reply to Manual installation of GD or ImageMagick in local folder

It is definitely possible.

This is from ExtUtils::MakeMaker:

perl Makefile.PL INSTALL_BASE=/path/to/your/home/dir

Then you just use lib "/path/to/your/home/dir" in your CGI and you're done.

You can automate this strategy by setting your cpan shell variable 'makepl_arg' to include the INSTALL_BASE make argument.

(This is not the first time the question has been asked. I know I've asked it myself before, but I think my answer is slightly different than other answers I've seen.)

UPDATE: PREFIX may even be better or more appropriate, not really sure. But my strategy above remains the same.

-Paul

Replies are listed 'Best First'.
Re^2: Manual installation of GD or ImageMagick in local folder
by thunders (Priest) on Jul 01, 2008 at 12:39 UTC

    I usually do something similar to Paul's strategy above, but I use PREFIX which is available in almost all perl packages I've encountered.

    % perl Makefile.PL PREFIX=/usr/home/USERNAME

    One hiccup, since neither of your modules are pure perl, and you lack access to your server, you'll want to compile them on a machine as close to your target server as possible, at the very least using the same operating system.

    Honestly you may want to explain some of this to your client. If they are using a substandard hosting company that lacks the tools you need to get things running, they should be made aware of this. If your clients ignore your advise and expertise, they may not be worth your time.

    Another possibility is to host the application on a different server and fetch the images via AJAX requests.