Hello Perl Monks,

My web service provider has just upgraded and Perl no longer has GD installed. It has a cpanel and allows a customer to install Perl modules only the C compiler is not available. In the past I have managed to install Perl modules by creating a folder called lib and copying the .pm files to it.
use lib '/home/myaccount/public_html/lib/'; works well but not for GD.pm and the folder GD.

I notice that GD.pm has 4 require statements:-
require FileHandle;
require Exporter;
require DynaLoader;
require AutoLoader;

So i have also copied FileHandle.pm, Exporter.pm and AutoLoader.pm to my lib folder. DynaLoader is something different @ISA = qw(Exporter DynaLoader);. Or maybe there is a Dynaloader.pm. It was very difficult to find the other 3 .pm files on my Debian system. I once worked on a computer telephone hot line service and found that with most customers all I had to do was listen and in framing the question the customer would provide the answer.

My test program is:-

#!/usr/bin/perl use CGI qw(:standard); print "Content-type: text/html\n\n"; $| = 1; open (STDERR, ">&STDOUT"); use CGI::Carp qw(fatalsToBrowser); use lib '/home/myaccount/public_html/lib'; use GD;

The output is:-
Can't locate loadable object for module GD in @INC (@INC contains: /home/myaccount/public_html/lib /usr/local/lib64/perl5 etc. Compilation failed in require at test.cgi line 8.

Since GD.pm is only a wrapper for libgd do I not need to put libgd somewhere like /usr/bin? Only as a customer I have no access to /usr/bin. I think you get the idea that the problem is goung around in circles and so I have come to you.

I run Debian, Apache2 and Perl 14.

My web service provider runs Linux Apache2 and Perl 10. GD works great on my system. It makes no difference which version of GD I copy to /lib.

My web service provider is http://www.dotpromotion.net/

It might be easier to change my web service provider.

Hello monks - what do think. Yes I know copying a module from one system to another is not a good idea but what can I do?


In reply to GD on Mediacraft by jobsworth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.