简体   繁体   中英

How to install GD library with Strawberry Perl

I am attempting to install the GD library using Strawberry perl and GnuWin32 . However, when I enter "install GD" in the CPAN shell, the following message appears:

'gdlib-config' is not recognized as an internal or external command, operable program or batch file. **UNRECOVERABLE ERROR** Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.

I believe perl is having difficulty locating the GD library installed at C:\\Program Files\\GnuWin32\\bin, but I am not sure how to fix this. I am still new to perl, so any help would be appreciated.

Your error is confirmed on cpan testers .

Looks like you need to manually compile and install gdlib.

如果在启动CPAN之前确保PATH变量中包含C:\\Program Files\\GnuWin32\\bin$PATH%PATH% ?我不确定使用哪个GnuWin32),则安装程序应找到gdlib-config程序,您至少将能够完成安装的这一步。

Run 'Makefile.PL' manually. It will show you list of parameters. Try running it with parameter "-lib_gd_path".

GD may be included in Strawberry 5.10.1.0 beta. A good place to ask is irc://irc.perl.org/#win32 IRC channel.

Which version of Strawberry Perl are you using? I am using the one bundled with Padre and GD came with it:

C:\opt> perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=MSWin32, osvers=5.2, archname=MSWin32-x86-multi-thread
    uname='Win32 padre 5.10.0.7.beta_1 #1 20 i386'
...

And:

C:\opt> perl -MGD -Mfeature=say -e "say $GD::VERSION"
2.44

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM