[lucida] Install lucida from Y&Y on MacTeX
Mau V
mvs1952 at yahoo.it
Tue Aug 8 09:09:48 CEST 2023
Thanks for the answer. Yes I went through the dangerous path (as in the link you mentioned). I knew I had to be careful, but in the end I had only to delete a few files with very precise names. I did that and then I deactivated the root user. I had no problem, luckily. My mac is perfectly OK.
I do not understand what could have been an alternative path. Updmap was telling me I had to delete those files but I was not allowed by the system. What could I have done?
I also added support for mathtime pro fonts from PcTeX which I purchased years ago. That was easier, now, and they work.
Thanks againMaurizio Il martedì 8 agosto 2023, 01:47:46 CEST, Bruno Voisin <bvoisin at icloud.com> ha scritto:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/lucida/attachments/20230808/5fe40f4f/attachment.htm>
More information about the lucida
mailing list.