The GD object relies on some code written in C libraries (libjpeg, libpng etc), and has some C glue code to interface between the perl code and the C libraries (in perl terminology, this code uses the XS interface to talk to perl).

This makes the module a little different to install than pure-perl modules which you often can get away with by just copying into place.

The best way to install modules (all modules) is to use CPAN. This provides tools to automate the process and tries to warn you about anything missing on your system (and can try and fetch some of the missing bits for you). There is more info [id://A guide to installing modules|here].

If you are missing the underlying libs GD uses, you can either fetch the source and build yourself, or use a source of packages such as sunfreeware, which, last time I looked, was the closest thing to a Linux-like RPM or deb repository.

So...check you have a working C compiler, check you have some of those graphics libs installed, undo your previous installation and try again with CPAN:

perl -MCPAN -e shell cpan> install GD ...
The first time you run CPAN you'll have to go through a question/answer session about your environment, but that's not too arduous.

When you actually try and install GD, I think it will ask you about which graphics file formats you want to support. Take care - the more you say yes to, the more C libraries you'll need installed. It might be best to just say yes to the ones you need right now, and re-install later if you need alternative formats. (e.g. I didn't have X windows on the system I was last installing on and didn't want to install the X headers to get XPM image support).


In reply to Re: GD module installation in Intel Solaris 10 by jbert
in thread GD module installation in Intel Solaris 10 by Tony1

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.