首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何设置Carton,编译znapzend 0.20.0?

如何设置Carton,编译znapzend 0.20.0?
EN

Server Fault用户
提问于 2020-07-21 10:12:19
回答 1查看 118关注 0票数 1

在从源编译时,使用:

代码语言:javascript
复制
# ./configure --prefix=/opt/znapzend-0.20.0
# make 
# make install

我得到了一个错误:! Couldn't find module or a distribution Carton

我可以从源代码编译0.19.1版本,没有任何问题。我现在使用了0.19.1的时间,我很高兴使用znapzend!谢谢你的工作。当我想升级到0.20.0时,我遇到了这个问题。

我正在使用Ubuntu 20.04。我试图像这样安装卡尔顿:

代码语言:javascript
复制
# apt install carton
# carton -v
carton v1.0.34

但是在安装carton之后,我在编译时仍然会遇到同样的错误。

自述包含编译版本0.19.2的说明,但不包含0.20.0版本的说明,即使用carton进行更好的依赖跟踪。

你能帮我说明一下设置卡尔顿的方法吗,这样我就可以编译znapzend 0.20.0了?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2020-07-21 16:26:14

我发现了问题。Carton是一个Perl模块依赖管理器,它使用CPAN来安装Perl模块。仅仅安装卡尔顿是不够的。CPAN默认安装在Ubuntu中,但还没有在我的系统上进行配置。

我将CPAN配置如下:

代码语言:javascript
复制
# sudo cpan
Loading internal logger. Log::Log4perl recommended for better logging

CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes] 

Autoconfiguration complete.

commit: wrote '/root/.cpan/CPAN/MyConfig.pm'

You can re-run configuration any time with 'o conf init' in the CPAN shell
Terminal does not support AddHistory.

让它自动配置。在此之后,我可以编译znapzend 0.20.0,没有任何问题。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1026097

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档