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.
| [reply] [d/l] |
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.
| [reply] [d/l] |
| [reply] [d/l] |
Thank you very much and I have installed the Imager module using the method you suggested. It seems to work and there is a Imager directory sitting in my home/lib..However, when I put in the
use Imager;
It still give me the 500 error. Do I have to call it differently if I install the module this way? Thanks. | [reply] |
You need an appropriate use lib line to tell your script where to find the library. Something like:
use lib '/path/to/your/homedir/lib/perl5';
| [reply] [d/l] [select] |