[lucida] Install lucida from Y&Y on MacTeX

Bruno Voisin bvoisin at icloud.com
Tue Aug 8 01:47:32 CEST 2023


> On 7 Aug 2023, at 19:20, Mau V <mvs1952 at yahoo.it> wrote:
> 
> I made it!!
> 
> I deleted the files 
> 
> -------------
> 
> builtin35.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/dvips/updmap/builtin35.map
>  download35.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/dvips/updmap/download35.map
>  kanjix.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/dvipdfmx/updmap/kanjix.map
>  pdftex.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map
>  pdftex_dl14.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex_dl14.map
>  pdftex_ndl14.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex_ndl14.map
>  ps2pk.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/dvips/updmap/ps2pk.map
>  psfonts.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/dvips/updmap/psfonts.map
>  psfonts_pk.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/dvips/updmap/psfonts_pk.map
>  psfonts_t1.map: /var/root/Library/texlive/2023/texmf-var/fonts/map/dvips/updmap/psfonts_t1.map
> 
> -----------------
> 
> about which updmap complained.
> 
> [...]
> 
> BTW: do you have an explanation of this?

I think /var/root is root's HOME. You must have run, directly or indirectly (ie through a script) "sudo updmap-user" or "sudo -H updmap-user". This created a user-specific /Library/texlive/2023/texmf-var/ folder, but for the root user, hence inside /var/root, not for you.

The problem is, /var/root/Library/texlive/... is at the start of the search path when a sudo'ed script, like updmap-sys, searches for files. So this folder always had precedence, and what you put in texmf-local wasn't seen.

A way to check this:

% sudo -H kpsewhich -show-path map | tr ":" '\n' 
.
/var/root/Library/texlive/2023/texmf-config/fonts/map/kpsewhich//
/var/root/Library/texlive/2023/texmf-var/fonts/map/kpsewhich//
/var/root/Library/texmf/fonts/map/kpsewhich//
!!/usr/local/texlive/texmf-local/fonts/map/kpsewhich//
!!/usr/local/texlive/2023/texmf-config/fonts/map/kpsewhich//
!!/usr/local/texlive/2023/texmf-var/fonts/map/kpsewhich//
!!/usr/local/texlive/2023/texmf-dist/fonts/map/kpsewhich//
/var/root/Library/texlive/2023/texmf-config/fonts/map/pdftex//
/var/root/Library/texlive/2023/texmf-var/fonts/map/pdftex//
/var/root/Library/texmf/fonts/map/pdftex//
!!/usr/local/texlive/texmf-local/fonts/map/pdftex//
!!/usr/local/texlive/2023/texmf-config/fonts/map/pdftex//
!!/usr/local/texlive/2023/texmf-var/fonts/map/pdftex//
!!/usr/local/texlive/2023/texmf-dist/fonts/map/pdftex//
/var/root/Library/texlive/2023/texmf-config/fonts/map/dvips//
/var/root/Library/texlive/2023/texmf-var/fonts/map/dvips//
/var/root/Library/texmf/fonts/map/dvips//
!!/usr/local/texlive/texmf-local/fonts/map/dvips//
!!/usr/local/texlive/2023/texmf-config/fonts/map/dvips//
!!/usr/local/texlive/2023/texmf-var/fonts/map/dvips//
!!/usr/local/texlive/2023/texmf-dist/fonts/map/dvips//
/var/root/Library/texlive/2023/texmf-config/fonts/map///
/var/root/Library/texlive/2023/texmf-var/fonts/map///
/var/root/Library/texmf/fonts/map///
!!/usr/local/texlive/texmf-local/fonts/map///
!!/usr/local/texlive/2023/texmf-config/fonts/map///
!!/usr/local/texlive/2023/texmf-var/fonts/map///
!!/usr/local/texlive/2023/texmf-dist/fonts/map///

That's where map files are looked for when running "sudo updmap-sys" (updmap-sys adds -H to sudo, implying that HOME is set to /var/root when the script is run). /var/root comes before /usr/local/texlive, so when the searched file is found in /var/root, the search stops there.

> For that since I had "you have no permission" messages I had to create a root user (you always learn something new...). After that I ran again sudo mktexlsr and sudo updmap-sys and now I can get my tex files with lucida fonts in them.

Here you got me really scared. I don't know what you mean exactly by "create a root user". If you mean by this "make the root user active", so that you can log in as "root" or "System Administrator", following the procedure described by Apple at

https://support.apple.com/en-us/HT204012

then I'd rather advise: DON'T. EVER.

Never ever activate the root user. Apple warns of the risks. If you do something wrong when logged in as root, you can irrevocably damage you file system so you have to erase your disk and start over from scratch. I'm no specialist, but possibly you can even brick your Mac doing that.

Above everything: it's really unnecessary. sudo is available in all administrator accounts, so you can run any given task as root in Terminal, you just have to prefix the command with sudo.

Bruno




More information about the lucida mailing list.