【问题标题】:Installing cpan module getting Could not make error安装 cpan 模块出现无法出错
【发布时间】:2017-04-13 14:59:49
【问题描述】:

我想在输入后为 Perl 安装名为 Coro 的 cpan 模块

cpan Coro

我收到类似 Could not make: Unknown error

之类的错误

这是来自控制台的完整日志:http://pastebin.com/NpXbG2eN

我不知道这有什么问题。

我在安装过程中发现了一些错误:

  • 错误:需要左值作为赋值的左操作数致命错误:
  • db.h: 没有这样的文件或目录

【问题讨论】:

  • 您有一个名为cpanfile 的文件吗?尝试在那里添加依赖并运行carton install
  • 文件clanfile在哪里?我尝试运行“cpan carton”,但没有帮助。对不起,我是新手
  • 注意:Skip ../blib/lib/Coro/Channel.pm (unchanged) 似乎暗示您在“脏”目录中工作。这可以隐藏信息。将build_dir_reuse 设置回默认值 (printf 'o conf build_dir_reuse 0\no conf commit\n' | cpan)。
  • 另一个日志:pastebin.com/zREv1zZH

标签: perl makefile module installation cpan


【解决方案1】:

这是相关的:

*** It seems you are running perl version 5.022001, likely the "official" or
*** "standard" version. While there is nothing wrong with doing that,
*** standard perl versions 5.022 and up are not supported by Coro.

你得到的错误:

State.xs: In function ‘coro_derive_padlist’:
State.xs:581:29: error: lvalue required as left operand of assignment
   PadlistNAMES (newpadlist) = padnames;

Coro 依赖于发生变化的 Perl 内部结构。

【讨论】:

  • 那么我必须降级 perl 版本吗?
  • 如果您降级 perl,您的其他代码 perl 代码可能会中断。如果你是新手,我不会推荐它。为 perl 或其他语言找到 Coro 的等价物。
  • user3718294 不,我不能,我必须使用 Coro。抱歉,这是没有办法的。我想要/需要修复问题:)
猜你喜欢
  • 1970-01-01
  • 2014-02-18
  • 2011-10-10
  • 2011-03-29
  • 1970-01-01
  • 1970-01-01
  • 2020-05-07
  • 2011-06-15
  • 2017-08-28
相关资源
最近更新 更多