在从源编译时,使用:
# ./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。我试图像这样安装卡尔顿:
# apt install carton
# carton -v
carton v1.0.34但是在安装carton之后,我在编译时仍然会遇到同样的错误。
自述包含编译版本0.19.2的说明,但不包含0.20.0版本的说明,即使用carton进行更好的依赖跟踪。
你能帮我说明一下设置卡尔顿的方法吗,这样我就可以编译znapzend 0.20.0了?
发布于 2020-07-21 16:26:14
我发现了问题。Carton是一个Perl模块依赖管理器,它使用CPAN来安装Perl模块。仅仅安装卡尔顿是不够的。CPAN默认安装在Ubuntu中,但还没有在我的系统上进行配置。
我将CPAN配置如下:
# 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,没有任何问题。
https://serverfault.com/questions/1026097
复制相似问题