Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.


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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://694919]
[marto]: yes, the last time I saw them was in Berlin a few years ago, at the old Olympic stadium
[marto]: After Sunday I don't think I'll go see them again :)
[LanX]: Corion: come on, people are people! ;)
[Corion]: Naah, I think it's still an OK show so far. Their new songs aren't exactly great, but I'm not going there for new material anyway ;)
[marto]: I got the feeling from the last show that for big sections of it, they were not really into what they were doing
[Corion]: LanX: Sure, they can bask in my Halo
[marto]: more so than the previous show I saw
[Corion]: marto: Well, I think they go a tour every two years and I think it's hard to even get a connection with the crowd at a 20k people concert... But maybe after this time I'll stop too ;)
[Corion]: I still have to see the Pet Shop Boys live before they stop touring at all
[marto]: yeah, I think that as a group creatively they're done. I can understand how it'd be hard to stop the process, album/tour, album/tour, if that's pretty much all you've ever done :)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2017-03-24 11:39 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.