so I moved the downloaded GD file

Just as a summary, for any newbies, who tend not to read the README's and FAQs... :-)

The original manual way of installing a module, which you may have downloaded by web browsing at search cpan ; is to simply unpack it anywhere you want, run perl Makefile.PL, make, then as root, make install

Alternatively, with the CPAN module, you can run as root

perl -MCPAN -e shell
which will give you a CPAN prompt
cpan>
at which you would type
cpan> install GD
then the CPAN module will find the best place to download the current GD module, and will unpack, build and install it from it's CPAN style directory tree in the user's ~/.cpan directory.

Unless I'm in a hurry, I always manually download my modules and go thru the perl Makefile.PL,make,make test, su, make install routine. I do this mostly because I like to have easy access to the module's sources in a single directory, rather have it hidden in the labyrinth of A-Z subdirs used to catalog authors and sources.

Of course there are more difficult to understand refinements, like installing modules to your home directory, instead of su'ing to root to do the "make install". The easiest way to do that, is with the local::lib module, with which you can as a simple user do

perl -MCPAN -Mlocal::lib -e shell
then
cpan > install GD
will install to your own home directory without needing root privileges.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

In reply to Re: Trying to install GD into Perl by zentara
in thread Trying to install GD into Perl by hsi88

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.