[tex-live] display issue with "tlmgr help" ??
jfbu
jfbu at free.fr
Mon Sep 11 11:55:34 CEST 2017
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
Without the "/opt/local/bin" in PATH
I get this
----
$ tlmgr help
/usr/local/texlive/2017/texmf-dist/scripts/texlive:/usr/local/texlive/2017/tlpkg:/opt/miniconda3/lib/perl5/site_perl/5.18.2/darwin-2level:/opt/miniconda3/lib/perl5/site_perl/5.18.2:/opt/miniconda3/lib/perl5/5.18.2/darwin-2level:/opt/miniconda3/lib/perl5/5.18.2:.
You have an old groff. Update to version 1.20.1 for good Unicode support.
If you don't upgrade, wide characters may come out oddly.
at /opt/miniconda3/lib/perl5/5.18.2/Pod/Perldoc.pm line 1346.
You have an old groff. Update to version 1.20.1 for good Unicode support.
If you don't upgrade, wide characters may come out oddly.
at /opt/miniconda3/lib/perl5/5.18.2/Pod/Perldoc.pm line 1346.
----
and correctly highlighted help contents.
$ find /opt/miniconda3/lib/perl5 -name "Perldoc.pm"
/opt/miniconda3/lib/perl5/5.18.2/Pod/Perldoc.pm
It seems I have only one groff
-----
$ which -a groff
/usr/bin/groff
[11:53:11] jfb at Ordinateur-Burnolien:~
~$ groff --version
GNU groff version 1.19.2
Copyright (C) 2004 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
called subprograms:
GNU grops (groff) version 1.19.2
GNU troff (groff) version 1.19.2
-----
Best
Jean-François
>
>
> Zdeněk Wagner
> http://ttsm.icpf.cas.cz/team/wagner.shtml
> http://icebearsoft.euweb.cz
>
> 2017-09-11 10:12 GMT+02:00 jfbu <jfbu at free.fr>:
>
> Le 11 sept. 2017 à 09:12, Zdenek Wagner <zdenek.wagner at gmail.com> a écrit :
>
> > Hi,
> >
> > such I mess is not so unusual, I have it in linux too because several nonfree tools came with their own perl in nonstandard places. However, my standard perl does not see their files. The key point is the setting of PERL5LIB, it points to directories with my private additions, not to those nonstandard versions. It may happen that your incomplete installation sees files from another version which may cause problems. I would suggest to start with verification of environment settings, especially the variables related to perl.
>
> Hi Zdenek,
>
> it seems I have indeed a mess,
>
> $ which -a perl
> /opt/local/bin/perl
> /opt/miniconda3/bin/perl
> /usr/bin/perl
>
> $ which -a perldoc
> /opt/local/bin/perldoc
> /opt/miniconda3/bin/perldoc
> /usr/bin/perldoc
>
> $ echo $PERL5LIB
> /sw/lib/perl5:/sw/lib/perl5/darwin
>
> and the latter is a Fink location.
>
> Thus I have (at least) 3 user installs of Perl:
>
> 1) the MacPorts one in /opt/local
>
> 2) the Anaconda one in /opt/miniconda3
>
> 3) the Fink one in /sw/
>
> for the Fink I found
>
> /sw/bin/perl5.12.4
>
> which needs to be invoked under this name
>
> there are repertories
>
> /sw/lib/perl5/5.12.4 and /sw/lib/perl5/5.16.4
>
> the MacPorts has
>
> /opt/local/lib/perl5/5.24
>
>
> $ env | grep PERL
> PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
> ac_cv_path_INTLTOOL_PERL=/usr/bin/perl
>
> in view of the above I tried
>
> $ export PERL5LIB="/opt/local/lib/perl5"
>
> $ tlmgr help
>
> no success
>
> then
>
> $ export PERL5LIB="/opt/local/lib/perl5/5.24"
>
> no success either
>
> $ unset PERL5LIB
>
> no success either
>
> Right now I have reached the stage where I know that
> "man perlrun" is where Perl env variables are documented,
>
> thus now I think I only have to learn Perl and then report back ;-)
>
> (be patient ... if I knew how to trace the binaries in use from
> "tlmgr help" I would be better-armed)
>
> Cheers
>
> Jean-François
>
> > 2017-09-11 8:42 GMT+02:00 Norbert Preining <preining at logic.at>:
> > Hi
> >
> > > I must debug better on my side, as all I observed was that normal
> > > behaviour for "tlmgr help" came from removing "/opt/local/bin" from
> > > PATH.
> >
> > I think you have a bit of a mess on your Mac ;-) Too many different
> > installations of perl, mixed with old stuff and new stuff.
> > (/opt/local/bin and /opt/miniconda3/ both are not standard perls
> > is my impression).
> >
> > > When I issue "man -d tlmgr" there is no difference
> > > in output in both contexts, but this is possibly completely
> > > irrelevant.
> >
> > Well, in this case you are reading the pre-made tlmgr.1 man page,
> > which might work because man uses its builtin or another groff.
> > One cannot know on this Macs ;-)
> >
> > Norbert
> >
> > --
> > PREINING Norbert http://www.preining.info
> > Accelia Inc. + JAIST + TeX Live + Debian Developer
> > GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
> >
>
>
>
More information about the tex-live
mailing list