so, apparently, you have two Perl installations, which you should take care to not mix up. (BTW, I said perl -V (capital V) - this would've shown the compiler and other settings that the particular version of Perl has been built with. The same compiler should be used to build extensions...).

Just to recap (for me, I'm slowly beginning to get confused :), presuming you want to install the GD binding for the Perl 5.8.7 (in your home(?)), are you still getting the same error cannot find include file: <gd.h>, if you run /home/sadm/.perl/bin/perl Makefile.PL && make as your regular user, and if so, is the header file gd.h in fact accessible under the include path that is specified on the cc command line (i.e. -I/usr/local/include)?


In reply to Re^5: Problem installing GD.pm under Solaris by almut
in thread Problem installing GD.pm under Solaris by neversaint

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.