为texdoctk安装Perl / Tk

时间:2015-03-11 16:31:44

标签: perl tk texdoctk

我正在尝试为texdoctk安装Perl / Tk,并使用cpan -i Tk查看OK符号。

cpan -i Tk

...
2level/perllocal.pod
  SREZIC/Tk-804.033.tar.gz
  /usr/bin/make install  -- OK

但是,当我执行texdoctk时,我收到此错误消息。

texdoctk algorithms
Can't locate Tk.pm in @INC (you may need to install the Tk module) (@INC contains: ...
) at /usr/local/texlive/2014/bin/x86_64-darwin/texdoctk line 15.
BEGIN failed--compilation aborted at /usr/local/texlive/2014/bin/x86_64-darwin/texdoctk line 15.

可能有什么问题?在安装过程中,两行被添加到.bashrc:

PERL_MB_OPT="--install_base \"/Users/smcho/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/smcho/perl5"; export PERL_MM_OPT;

我使用的是Mac OS X 10.10,这是perl -V的结果。

  @INC:
    /Users/smcho/.opam/system/lib/perl5
    /Library/Perl/5.18/darwin-thread-multi-2level
    /Library/Perl/5.18
    /Network/Library/Perl/5.18/darwin-thread-multi-2level
    /Network/Library/Perl/5.18
    /Library/Perl/Updates/5.18.2
    /System/Library/Perl/5.18/darwin-thread-multi-2level
    /System/Library/Perl/5.18
    /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level
    /System/Library/Perl/Extras/5.18

1 个答案:

答案 0 :(得分:2)

由于您要在默认路径之外安装模块,因此您需要将PERL5LIB设置为匹配:

PERL5LIB="/Users/smcho/perl5/lib/perl5"; export PERL5LIB