为 texdoctk 安装 Perl/Tk [英] Installing Perl/Tk for texdoctk
本文介绍了为 texdoctk 安装 Perl/Tk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试为 texdoctk
安装 Perl/Tk,并且我使用了 cpan -i Tk
来查看 OK 标志.
I'm trying to install Perl/Tk for texdoctk
, and I used cpan -i Tk
to see OK sign.
cpan -i Tk
...
2level/perllocal.pod
SREZIC/Tk-804.033.tar.gz
/usr/bin/make install -- OK
但是,当我执行 texdoctk 时,出现此错误消息.
However, when I execute the texdoctk, I have this error message.
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中添加了两行:
What might be wrong? During the installation, the two lines are added to the .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
的结果.
I use Mac OS X 10.10, and this is the results from 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
设置为匹配:
Since you're installing modules outside of the default paths, you'll need to set PERL5LIB
to match:
PERL5LIB="/Users/smcho/perl5/lib/perl5"; export PERL5LIB
这篇关于为 texdoctk 安装 Perl/Tk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文