perlbrew perl cpanm 故障

标签 perl perlbrew cpanm

我在 cpanm 下安装了一个模块,显然是错误的。当在系统 perl 下运行时它是可见且可用的,但在 perlbrew 下则不可见。然而,perlbrews cpanm 表明模块已成功安装。采取的最佳步骤?

/Users/john/perl5/perlbrew/perls/perl-5.18.2/bin/perl
/Users/john/perl5/bin/cpanm
#!/usr/bin/perl
MM: INSTALL_BASE=/Users/john/perl5
MB: --install_base "/Users/john/perl5"

Note: .pl file contains following
#!/usr/bin/env perl

切换 perlbrew 后...

declare -x PERL5LIB="/Users/john/perl5/lib/perl5"
declare -x PERLBREW_BASHRC_VERSION="0.76"
declare -x PERLBREW_HOME="/Users/john/.perlbrew"
declare -x PERLBREW_MANPATH="/Users/john/perl5/perlbrew/perls/perl-5.18.2/man"
declare -x PERLBREW_PATH="/Users/john/perl5/perlbrew/bin:/Users/john/perl5/perlbrew/perls/perl-5.18.2/bin"
declare -x PERLBREW_PERL="perl-5.18.2"
declare -x PERLBREW_ROOT="/Users/john/perl5/perlbrew"
declare -x PERLBREW_VERSION="0.76"
declare -x PERL_LOCAL_LIB_ROOT="/Users/john/perl5"
declare -x PERL_MB_OPT="--install_base \"/Users/john/perl5\""
declare -x PERL_MM_OPT="INSTALL_BASE=/Users/john/perl5"

Link to sybase install with hombrew

最佳答案

cpanm 不安装任何模块。它只是运行与您要安装的发行版打包在一起的安装程序。通过 PERL_MM_OPTPERL_MB_OPT 环境变量,您指示这些安装程序将模块安装在错误的位置。摆脱他们。

关于perlbrew perl cpanm 故障,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40915839/

相关文章:

perl - 如何将各种尺寸的 TIFF 文件转换为页面尺寸 8.5″×11″ 的统一尺寸 PDF 文件而不损失质量?

perl - 如何使用 perlbrew 管理针对 Web 应用程序的 perl 安装?

default - cpanm 安装 Perl 模块的默认路径是什么?

perl - cpanm -L 坏了?

mysql - PERL:脚本未完成

linux - 不包括日志文件的 Zip 文件

perl - ExtUtils::MakeMaker 如何安装配置文件

perl - 如何使用 pleenv 或 perlbrew 将编译选项传递给 perl

perl - vim 的正确 perl 路径