Subject: | GD install bug when using CPANM (minus) |
Date: | Sun, 20 Sep 2015 23:33:37 -0400 |
To: | bug-GD [...] rt.cpan.org |
From: | unsec treedee <unsectreedee [...] gmail.com> |
=======================
*ERROR:*
<snip-snip>
==> Found dependencies: GD
--> Working on GD
Fetching http://www.cpan.org/authors/id/L/LD/LDS/GD-2.56.tar.gz ... OK
Configuring GD-2.56 ... N/A
! Configure failed for GD-2.56. See
/root/.cpanm/work/1442804201.1140/build.log for details.
! Installing the dependencies failed: Module 'GD' is not installed
! Bailing out the installation for GDTextUtil-0.86.
! Installing the dependencies failed: Module 'GD::Text' is not installed,
Module 'GD' is not installed
! Bailing out the installation for GDGraph-1.49.
=======================
*COMMAND to Reproduce:*
cpanm GD::Graph
=======================
*OS Distribution:*
Raspbian
*=======================*
*Platform (uname -a) :*
Linux RaspberryPi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015
armv6l GNU/Linux
=======================
*Perl Version:*v5.14.2 built for arm-linux-gnueabihf-thread-multi-64int
*=======================*
*CPANM Version Info:*
cpanm (App::cpanminus) version 1.7039 (/usr/local/bin/cpanm)
perl version 5.014002 (/usr/bin/perl)
%Config:
archname=arm-linux-gnueabihf-thread-multi-64int
installsitelib=/usr/local/share/perl/5.14.2
installsitebin=/usr/local/bin
installman1dir=/usr/share/man/man1
installman3dir=/usr/share/man/man3
sitearchexp=/usr/local/lib/perl/5.14.2
sitelibexp=/usr/local/share/perl/5.14.2
vendorarch=/usr/lib/perl5
vendorlibexp=/usr/share/perl5
archlibexp=/usr/lib/perl/5.14
privlibexp=/usr/share/perl/5.14
%ENV:
@INC:
FatPacked::23962952=HASH(0x16da548)
/etc/perl
/usr/local/lib/perl/5.14.2
/usr/local/share/perl/5.14.2
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.14
/usr/share/perl/5.14
/usr/local/lib/site_perl
.
*=======================*
*CPANM BUILD.LOG details:*cpanm (App::cpanminus) 1.7039 on perl 5.014002
built for arm-linux-gnueabihf-thread-multi-64int
Work directory is /root/.cpanm/work/1442804201.1140
You have make /usr/bin/make
You have LWP 6.13
You have /bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
Show quoted text
>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching GD::Graph () on cpanmetadb ...
--> Working on GD::Graph
Fetching http://www.cpan.org/authors/id/R/RU/RUZ/GDGraph-1.49.tar.gz
-> OK
Unpacking GDGraph-1.49.tar.gz
Entering GDGraph-1.49
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.04)
Configuring GDGraph-1.49
Running Makefile.PL
Warning: prerequisite GD 1.18 not found.
Warning: prerequisite GD::Text 0.80 not found.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for GD::Graph
Writing MYMETA.yml and MYMETA.json
The automatic tests for GDGraph are not really a solid workout of the
library. The best way to test the package is to run the examples
before installing it. You can run the examples in the samples
directory with `make samples` or by going into that directory, and
just running `make`.
If that fails, please read samples/Makefile.
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.04)
Checking if you have GD::Text 0.80 ... No
Checking if you have GD 1.18 ... No
==> Found dependencies: GD::Text, GD
Searching GD::Text (0.80) on cpanmetadb ...
--> Working on GD::Text
Fetching http://www.cpan.org/authors/id/M/MV/MVERB/GDTextUtil-0.86.tar.gz
-> OK
Unpacking GDTextUtil-0.86.tar.gz
Entering GDTextUtil-0.86
META.yml/json not found. Creating skeleton for it.
Configuring GDTextUtil-0.86
Running Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite GD 1 not found.
Generating a Unix-style Makefile
Writing Makefile for GD::Text
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.04)
Checking if you have GD 1 ... No
==> Found dependencies: GD
Searching GD (1) on cpanmetadb ...
--> Working on GD
Fetching http://www.cpan.org/authors/id/L/LD/LDS/GD-2.56.tar.gz
-> OK
Unpacking GD-2.56.tar.gz
Entering GD-2.56
Checking configure dependencies from META.json
Checking if you have Module::Build 0.42 ... Yes (0.4214)
Checking if you have ExtUtils::Install 1.46 ... Yes (1.56)
Configuring GD-2.56
Running Build.PL
**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28
or higher.
Running Makefile.PL
Notice: Type perl Makefile.PL -h for command-line option summary.
**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28
or higher.
If you want to try to compile anyway, please rerun this script with the
option --ignore_missing_gd.
-> N/A
-> FAIL Configure failed for GD-2.56. See
/root/.cpanm/work/1442804201.1140/build.log for details.
-> FAIL Installing the dependencies failed: Module 'GD' is not installed
-> FAIL Bailing out the installation for GDTextUtil-0.86.
Already tried GD. Skipping.
-> FAIL Installing the dependencies failed: Module 'GD::Text' is not
installed, Module 'GD' is not installed
-> FAIL Bailing out the installation for GDGraph-1.49.
*=======================*
*SOLUTION that worked for me:*
Step1: apt-get install libgd2-xpm-dev build-essential
Step2: then I re-ran the cpan install: cpanm GD::Graph
Now it works... :-)
I am reporting it because the CPAN installer should be able to handle this
case IMHO (case of a missing libgd2 installation) and it should take care
of it.
*=======================*