为 texdoctk 安装 Perl/Tk
Installing Perl/Tk for 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
由于您要在默认路径之外安装模块,因此您需要设置 PERL5LIB
以匹配:
PERL5LIB="/Users/smcho/perl5/lib/perl5"; export PERL5LIB
我正在尝试为 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
由于您要在默认路径之外安装模块,因此您需要设置 PERL5LIB
以匹配:
PERL5LIB="/Users/smcho/perl5/lib/perl5"; export PERL5LIB