Cannot install GD module on darwin 13.0.1 using cpan

前端 未结 2 1311
名媛妹妹
名媛妹妹 2021-01-19 13:09

I\'m having a tough job trying to get GD installed. I\'m running a Mas OSX 10.9.2 darwin 13.0.1 When I run this: cpan[1]> install GD perl -MCPAN -e shell

I g

2条回答
  •  旧巷少年郎
    2021-01-19 13:38

    Build.PL is trying to call a function called prompt but it doesn't exist. This is because they recently switched build systems from ExtUtils::MakeMaker (Makefile.PL) to Module::Build (Build.PL) but didn't fully convert the program. I've reported the bug.

    Most people don't notice this because the prompting is only necessary if GD can't configure itself. It does this by looking for the gdlib-config program. If that can't be found, or it doesn't work, it will ask you for your gdlib configuration. It's best to let gdlib-config take care of that. Best way to solve this problem is to make sure gdlib-config is somewhere in your PATH and that gdlib-config --all works.

    Otherwise replace all the instances of prompt in Build.PL with Module::Build->prompt and it should work.

提交回复
热议问题