gpt4 book ai didi

perl cpanm 安装 make 问题

转载 作者:行者123 更新时间:2023-12-01 05:33:18 25 4
gpt4 key购买 nike

我正在尝试安装 cpan 模块安装程序,但在制作软件包时遇到了问题。

我跑了:

sudo cpan App::cpanminus

我的结果:

// lots of other successful stuff
CPAN: Module::CoreList loaded ok (v2.43)
'YAML' not installed, will not store persistent state

CPAN.pm: Going to build M/MI/MIYAGAWA/App-cpanminus-1.4008.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for App::cpanminus
make: *** No rule to make target `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'. Stop.
MIYAGAWA/App-cpanminus-1.4008.tar.gz
make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible

知道我的问题是什么吗?

最佳答案

install instructions让 cpan 减去 say 运行:

curl -L http://cpanmin.us | perl - --sudo App::cpanminus

或者,如果您想要本地 perl 而不是系统 perl:

curl -L http://cpanmin.us | perl - App::cpanminus

鉴于 cpan minus 的主要优点是它避免了配置 cpan 工作的所有麻烦,使用 cpan 安装它似乎更痛苦而不值得。

关于perl cpanm 安装 make 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6792754/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com