http://qs321.pair.com?node_id=467708


in reply to Re: Are there ways to resize pic without using CPAN modules
in thread Are there ways to resize pic without using CPAN modules

GD is a little trickier to install than a Pure Perl module with no dependancies. First of all, GD depends on Math::Trig, so you would have to install that first. That is probably the smallest problem. The chances are that user 'nobody' or whatever user is used by the webserver, does not have privileges to use a c compiler. And then there is stuff like: $PREFIX = prompt('Where is libgd installed?','/usr/lib'); to catch.

So yes, pure perl modules can easilly be installed. Modules that require compilers are a little trickier. The easiest way for sure is to ask the admin to just install it for you.

--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
Re^2: Are there ways to resize pic without using CPAN modules
by Tanktalus (Canon) on Jun 17, 2005 at 15:25 UTC

    export PERL_MM_USE_DEFAULT=1 gets around most Makefile.PL prompting.

Re^2: Are there ways to resize pic without using CPAN modules
by sgifford (Prior) on Jun 17, 2005 at 13:39 UTC
    I agree that if you can convince your hosting company to install the module, that's the easiest (though not necessarily the fastest) way. If that's not possible for some reason, though, installing it yourself is a workable alternative.

    With hosting companies I've used, I have never had a problem with the Web server user not having access to a compiler.

    I'm surprised that GC has manual prompts like you describe with no documented way to override them. If that's the case, you can probably work around it by sending answers to it on STDIN. I agree this is tricky, and I also find it annoying.