如何在Windows的Perl中安装ExtUtils :: PkgConfig?
时间:2020-03-06 14:30:16 来源:igfitidea点击:
我已经尝试了cpan和cpanp shell,但我不断得到:
ExtUtils::PkgConfig requires the pkg-config utility, but it doesn't seem to be in your PATH. Is it correctly installed?
什么是pkg-config实用程序,如何安装?
更新:
- 操作系统:Windows
- 该模块是File :: Extractor模块的前提条件
解决方案
http://pkgconfig.freedesktop.org/wiki/
pkg-config是在编译应用程序和库时使用的辅助工具。
根据操作系统,我们可能可以获取二进制发行版(例如,在Ubuntu上尝试apt-get),否则可以从其网站获取源代码。
pkg-config用于编译应用程序和库时。它确实用于插入正确的命令行参数。
它安装在大多数新发行的linux上,但是如果最初没有出现在Linux上就很普遍了,因此应该很难找到它。
以下是在ubuntu上安装它的方法:
sudo apt-get install pkg-config
这是维基百科页面:
http://en.wikipedia.org/wiki/Pkg-config
我在这里找到了pkg-config实用程序的Windows二进制文件:
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/
(可在此处找到链接:http://www.go-evolution.org/Building_Evolution_on_Windows)
更新:从gtk.org直接下载链接:pkg-config-0.23-2.zip
感谢指点!
看这里:
http://gtk2-perl.sourceforge.net/win32/howto_build_gtk2perl_win32.html
我通过搜索ExtUtils :: PkgConfig和" PPM"(Actvestates Perl软件包管理器)来找到此页面。