构建 Perl 模块时如何处理缺少的 CORE/config.h?

发布于 2024-11-02 04:51:39 字数 505 浏览 1 评论 0原文

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

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 时,我会得到这样的信息:

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

我该如何处理这个问题?

顺便说一句,我正在使用 Fedora。

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

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.

How can I deal with this?

I'm using Fedora, by the way.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

心舞飞扬 2024-11-09 04:51:39

很抱歉回复杰克太晚了,但这对于那些不熟悉管理 Linux 软件包的人来说可能很有用。

正如 Grrrrr 指出的那样,您应该安装一个 perl-devel 软件包。如果管理包和 perl 模块对您来说是新的,也许您会欣赏一步一步的答案...

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

  rpm -qa | grep perl-devel

如果安装了 perl-devel,它将如下列出:

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

如果未安装,则执行:

  yum install perl-devel

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

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

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 ~]#

if it is not installed, execute:

  yum install perl-devel
つ低調成傷 2024-11-09 04:51:39

使用您的发行版的程序包管理器确保已安装提供缺少文件的程序包。

Use your distribution's package manager to make sure the package that provides the missing file has been installed.

流星番茄 2024-11-09 04:51:39

对于 Fedora,这将是

yum install perl-devel

In the case of Fedora, this would be

yum install perl-devel

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文