【问题标题】:install CPAN module ClearCase::CtCmd安装 CPAN 模块 ClearCase::CtCmd
【发布时间】:2014-06-05 08:24:53
【问题描述】:

我需要安装 CPAN 模块 ClearCase::CtCmd。我已经下载了模块CtCmd-1.09。运行命令perl Makefile.PL 后出现以下错误:

perl Makefile.PL
Looking for ClearCase version   7       Found   7.1
Looking for gcc version 2.7     Found   3.4
Looking for SunOS       5.7     Found   5.8
Checking if your kit is complete...
Use of uninitialized value in chdir at /usr/local/lib/perl5/5.8.5/File/Find.pm line 741.
Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/local/lib/perl5/5.8.5/File/Find.pm line 741.
Looks good
Could not open 'CtCmd.pm': No such file or directory at /usr/local/lib/perl5/5.8.5/ExtUtils/MM_Unix.pm line 3079.

我提到 perl 版本是 v5.8.5。 在 INSTALL 文件中指出“ClearCase::CtCmd 模块需要 Perl v5.6.1v5.8 或更高版本。”

【问题讨论】:

  • Perl 5.8.x;那时我用过windows 2000,这样可以说明它的年龄以及为什么推荐更新。
  • ClearCase::CtCmd 的当前版本是 1.11。即使您被旧版本的 Solaris 和旧版本的 Perl 所困,您也可能会发现较旧版本的 ClearCase::CtCmd 更适合您。

标签: perl cpan


【解决方案1】:

这是在什么类型的机器上?索拉里斯? ClearCase 不是自带了自己的 Perl 版本,已经包含了ClearCase::CtCmd

Use of uninitialized value in chdir at /usr/local/lib/perl5/5.8.5/File/Find.pm line 741.
Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/local/lib/perl5/5.8.5/File/Find.pm line 741.
Looks good

File::Find 是一个标准的 Perl 模块。 chdir 中的未初始化值看起来不太好

Could not open 'CtCmd.pm': No such file or directory at /usr/local/lib/perl5/5.8.5/ExtUtils/MM_Unix.pm line 3079.

ExecUtils/MakeMaker 正在调用 ExtUtils/MM_Unix.pm 并尝试编写您的 Makefile。我有一种感觉,它应该从File::Find 定位CtCmd.pm 的位置,并且File::Find 失败,MakeMaker 无法创建 Makefile。

我正在查看Makefile.PL,发现它需要设置$ATRIA_ROOT,否则,它被推断为/opt/rational/clearcase。会不会跟这有关系?

没有。看起来不像。否则,您将无法获得有关 ClearCase 版本的报告。而且,我猜系统是 Solaris,因为这是搜索 gcc 版本的唯一地方。

我认为是时候在Makefile.PL 程序中做一些修改,看看它在做什么。我注意到#218 行是WriteMakefile(%opts); 我会添加一个小例程来打印出这个%opts 子例程(可能使用warn 而不是print)。这个子程序来自ExtUtils::MakeFile,它实际上是写了 Makefile。它可能会让你知道发生了什么。

不幸的是,问题似乎与ExtUtils::MakeMaker 的工作方式有关。使用 Perl 5.8.5 意味着您有一个旧的、错误的 ExtUtils::MakeMaker 版本。您可以查看ExtUtils::MakeMaker 的发行说明,看看是否为您提供任何线索。不再支持 Perl 5.8.5。这是一个非常非常老的 Perl 版本。

【讨论】:

  • 我终于解决了这个问题,我安装了更新的 perl 版本。
猜你喜欢
  • 1970-01-01
  • 2018-06-19
  • 2014-12-06
  • 2013-11-04
  • 2013-09-24
  • 1970-01-01
  • 1970-01-01
  • 2011-05-17
  • 2013-06-30
相关资源
最近更新 更多