本文介绍了构建Perl模块时,如何处理缺少的CORE/config.h?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试使用Makefile.PL安装Data :: UUID时,我都会得到:

Every time I try to use Makefile.PL to install Data::UUID, I get this:

perl Makefile.PL
Configured options (run perl Makefile.PL --help for how to change this):
        UUID state storage: /tmp
        default umask: 0007
Writing Makefile for Data::UUID

然后,当我运行make时,我得到了:

Then when I run make, I get this:

make: *** No rule to make target /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/config.h', needed by Makefile'. Stop.

我该如何处理?

顺便说一下,我正在使用Fedora.

I'm using Fedora, by the way.

推荐答案

很抱歉延迟回复jack,但这对其他刚开始管理linux软件包的人可能有用.

Sorry for way late reply jack, but this might be useful for others who are new to managing linux packages.

正如Grrrr指出的那样,您应该安装perl-devel软件包.如果您不熟悉管理软件包和perl模块,则可能会逐步得到答案...

As Grrrr pointed out you should install a perl-devel package. If managing packages and perl modules are new to you perhaps you will appreciate a step by step answer...

要查看已安装的软件包,请执行:

To view installed packages execute:


  rpm -qa | grep perl-devel

如果安装了perl-devel,它将显示如下:

if perl-devel is installed it will be listed like this:


  [root@gonzo ~]# rpm -qa |grep perl-devel
  perl-devel-5.10.1-115.el6.x86_64
  [root@gonzo ~]#

如果未安装,请执行:


  yum install perl-devel

这篇关于构建Perl模块时,如何处理缺少的CORE/config.h?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 23:56