[tex-live] display issue with "tlmgr help" ??

jfbu jfbu at free.fr
Mon Sep 11 14:25:10 CEST 2017


Le 11 sept. 2017 à 12:40, jfbu <jfbu at free.fr> a écrit :

> 
> Le 11 sept. 2017 à 11:55, jfbu <jfbu at free.fr> a écrit :
> 
>> Hi Zdenek
>> 
>> Le 11 sept. 2017 à 11:11, Zdenek Wagner <zdenek.wagner at gmail.com> a écrit :
>> 
>>> Hi,
>>> 
>>> you can try the following command from your prompt:
>>> 
>>> perl -e 'print join(":", @INC), "\n";'
>>> 
>>> It will show you where perl looks for the modules. You can also insert the print command to the perl script but make sure, that the script does not manipulate the @INC array after printing its contents.
>> 
>> 
>> Thanks, 
>> 
>> I have inserted the print command at line 515 of TeXLive tlmgr.pl
>> 
>> and I did "unset PERL5LIB" in my Terminal environment to limit confusion
>> 
>> with "/opt/local/bin" in PATH, I get this
>> 
>> ----
>> $ tlmgr help
>> /usr/local/texlive/2017/texmf-dist/scripts/texlive:/usr/local/texlive/2017/tlpkg:/opt/local/lib/perl5/site_perl/5.24/darwin-thread-multi-2level:/opt/local/lib/perl5/site_perl/5.24:/opt/local/lib/perl5/vendor_perl/5.24/darwin-thread-multi-2level:/opt/local/lib/perl5/vendor_perl/5.24:/opt/local/lib/perl5/5.24/darwin-thread-multi-2level:/opt/local/lib/perl5/5.24:. 
>> ----
>> 
>> and badly highlighted help
>> 
>> By the way the repertories
>> 
>> /opt/local/lib/perl5/site_perl/5.24/darwin-thread-multi-2level
>> /opt/local/lib/perl5/site_perl/5.24
>> /opt/local/lib/perl5/vendor_perl/5.24/darwin-thread-multi-2level
>> /opt/local/lib/perl5/vendor_perl/5.24
>> 
>> do not exist but these two exist
>> 
>> /opt/local/lib/perl5/5.24/darwin-thread-multi-2level
>> /opt/local/lib/perl5/5.24
>> 
>> $ find /opt/local/lib/perl5/5.24 -name "Perldoc.pm"
>> /opt/local/lib/perl5/5.24/Pod/Perldoc.pm
>> 
>> 
>> The output above from 'print join(":", @INC), "\n";' does not seem to confirm
>> that the MacPorts installed Perl 5.24 is confused by other Perl installs
> 
> 
> I can also issue directly (without changing anything to PATH)
> 
> $ /opt/miniconda3/bin/pod2usage -verbose 2 /usr/local/texlive/2017/texmf-dist/scripts/texlive/tlmgr.pl
> 
> and this gives the expected highlighted output
> 
> but
> 
> $ pod2usage -verbose 2 /usr/local/texlive/2017/texmf-dist/scripts/texlive/tlmgr.pl
> 
> gives non-highlighted output (with 1NAME1 etc...)
> 
> And
> 
> $ /usr/bin/pod2usage -verbose 2 /usr/local/texlive/2017/texmf-dist/scripts/texlive/tlmgr.pl
> 
> does produce correct output
> 
> 



And 

$ pod2text -c /usr/local/texlive/2017/texmf-dist/scripts/texlive/tlmgr.pl | less -R

gives nice coloured output

in fact compared to "man tlmgr", what is underlined in the latter appears
coloured in the former, so the output from using

$ pod2text -c /usr/local/texlive/2017/texmf-dist/scripts/texlive/tlmgr.pl | less -R

is even fancier than the one from

$ man tlmgr 

or 

$ /opt/miniconda3/bin/pod2usage -verbose 2 /usr/local/texlive/2017/texmf-dist/scripts/texlive/tlmgr.pl

the latter two being equivalent

Thus "pod2text" looks OK, but "pod2usage" possibly has a problem
in the Perl 5.24 I got from MacPorts

Using pod2text or the  /opt/miniconda3/bin/pod2text produce both same or similar
output contrarily to what happens with pod2usage

$ which -a pod2text
/opt/local/bin/pod2text
/opt/miniconda3/bin/pod2text
/usr/bin/pod2text

Best,

Jean-François





More information about the tex-live mailing list