Unable to install gd module on darwin 13.0.1 using cpan

I have a hard job trying to install GD. I run Mas OSX 10.9.2 darwin 13.0.1 When I run this: cpan [1]> install GD perl -MCPAN -e shell

I get the following error:

cpan[1]> install GD
Reading '/Users/me/.cpan/Metadata'
  Database was generated on Sun, 21 Dec 2014 18:53:17 GMT
Running install for module 'GD'
Running make for L/LD/LDS/GD-2.56.tar.gz
Checksum for /Users/me/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok
Scanning cache /Users/me/.cpan/build for sizes
............................................................................DONE

  CPAN.pm: Building L/LD/LDS/GD-2.56.tar.gz

Configuring for libgd version 2.0.11.
Checking for stray libgd header files...none found.

GD library used from:       /usr/local

Please choose the features that match how libgd was built:
Undefined subroutine &main::prompt called at Build.PL line 169.
Warning: No success on command[/usr/bin/perl Build.PL ]
'YAML' not installed, will not store persistent state
  LDS/GD-2.56.tar.gz
  /usr/bin/perl Build.PL  -- NOT OK
Running Build test
  Make had some problems, won't test
Running Build install
  Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
 LDS/GD-2.56.tar.gz                           : writemakefile NO '/usr/bin/perl Build.PL '     returned status 512
+4
source share
2 answers

Build.PLtries to call a function with a name prompt, but it does not exist. This is because they recently switched build systems from ExtUtils :: MakeMaker (Makefile.PL) to Module :: Build (Build.PL), but did not fully convert the program. I reported an error .

, , GD . , gdlib-config. , gdlib. gdlib-config . - , gdlib-config - PATH gdlib-config --all.

prompt Build.PL Module::Build->prompt, .

+4

, OSX, CPAN CentOS.

CPAN. RPM. yum CPAN .

, Module-Build Archive-Tar ( rpm) yum.

, .

0

Source: https://habr.com/ru/post/1568580/


All Articles