LDS/GD-2.56.tar.gz
Has already been unwrapped into directory /home/uce/.cpan/build/GD-2


I think that one way to avoid this is to run 'cpan install GD' at the command prompt - instead of opening a cpan shell and running 'install GD' as you are currently doing.

The advantage of doing 'cpan install GD' is that whenever you run that command it will unpack GD-2.56.tar.gz to a location whose suffix is randomly selected (and therefore unlikely to be repeated) - rather than re-using the *same* (original) suffix.

Or, you could probably just exit the existing cpan shell and open a new one before re-running 'install GD'.

Update: I missed this initially:

LDS/GD-2.56.tar.gz
'/usr/local/bin/perl Build.PL --installdirs site' returned status 512, not re-running


Somewhere between 2.50 and 2.56 the author added a Build.PL. It would be interesting to know what he thought he was achieving by doing that.
However, the Makefile.PL is still present and it seems odd to me that the cpan shell chooses to use the (recently-thrown-out-of-Core) Module::Build over the tried and proven (and Core) ExtUtils::MakeMaker.

I would:
1) Unpack GD-2.56.tar.gz to some location;
2) cd to that location and run sequentially 'perl Makefile.PL', 'make test' and 'make install'

This avoids all problems with cpan whingeing about something being up to date or already unpacked - and if one needs to start over afresh one just runs 'make realclean' bfore re-attempting the 'perl Makefile.PL' command.
It also uses ExtUtils::MakeMaker instead of Module::Build.

As others have noted, if the OP can get GD-2.56 built and installed using his perl-5.24 (/usr/local/perl) then his problems with GD should be solved.

Cheers,
Rob

In reply to Re^15: How to add path to @INC by syphilis
in thread How to add path to @INC by TSN

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.