构建 Perl 模块时如何处理缺少的 CORE/config.h?
每次我尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
很抱歉回复杰克太晚了,但这对于那些不熟悉管理 Linux 软件包的人来说可能很有用。
正如 Grrrrr 指出的那样,您应该安装一个 perl-devel 软件包。如果管理包和 perl 模块对您来说是新的,也许您会欣赏一步一步的答案...
要查看已安装的包,请执行:
如果安装了 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:
if perl-devel is installed it will be listed like this:
if it is not installed, execute:
使用您的发行版的程序包管理器确保已安装提供缺少文件的程序包。
Use your distribution's package manager to make sure the package that provides the missing file has been installed.
对于 Fedora,这将是
yum install perl-devel
In the case of Fedora, this would be
yum install perl-devel