Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Manual installation of GD or ImageMagick in local folder

by jettero (Monsignor)
on Jul 01, 2008 at 10:52 UTC ( #694919=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Manual installation of GD or ImageMagick in local folder
Select or Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://694919]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2014-08-22 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (150 votes), past polls