Your approach works for pure-Perl modules but just copying a GD.pm won't work here as actually it is a wrapper for a shared library saved under architecture-dependent directory. It will be named GD.so and you will definitely need it as well. But beware: things are not going to be easy, 99% chance GD.so taken from your workstation won't work on the hosting server.

The reason is that «Linux» is a very broad description of what OS does your workstation and hosting server use. You may note that they are quite different (e.g., Perl version), even the architecture may differ. If you are using 32-bit system and they use 64-bit on the server — the reason is obvious, for example.

Another trouble is shared libraries. The set of them on your workstation and hosting server is different, and GD.so linked against your set may not work on the server — some libraries may be missing and some may have incompatible versions. It is (or, to be more precise, I see no reason why it shouldn't be) possible to build GD.so so that it doesn't use any external libraries but the memory footprint of it will be horrible, and also it will need some knowledge of Linux internals to do so. Another option is to obtain a build environment compatible with OS used on hosting server, build GD.so there and use it. However if your hosting server lacks, e.g., libfontconfig.so — you are still in trouble.

So, in short: rather then trying to use a binary module all by yourself just ask hosting guys politely to install the module for you, and if they refuse — look for another hosting provider.


In reply to Re: GD on Mediacraft by jmacloue
in thread 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.