Reputation: 190719
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
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.
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;
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
Upvotes: 1
Views: 2300
Reputation: 4371
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
Upvotes: 2