Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by sgifford (Prior)
on Jun 17, 2005 at 13:24 UTC ( [id://467702]=note: print w/replies, xml ) Need Help??


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

Why can't you simply install whatever modules you want under your home directory? I do this all the time with a variety of hosting providers. See Re^2: Perl module for a sample of how to do it if your provider doesn't provide shell access.
  • Comment on Re: Are there ways to resize pic without using CPAN modules

Replies are listed 'Best First'.
Re: Are there ways to resize pic without using CPAN modules
by b10m (Vicar) on Jun 17, 2005 at 13:32 UTC

    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.
      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.

      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 seewhy (Initiate) on Jun 18, 2005 at 05:29 UTC
    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.

      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';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found