Discussion:
[XeTeX] How to finish the installation of XeTeX 0.99993 (on MacOS)?
Christian Boitet
2016-11-13 18:33:50 UTC
Permalink
Dear TeX fans, 13/11/16

it is the first time I post anything on this list: I have used LaTeX for lectures, slides, conference papers, etc. for many years, I have a complete reference book, and always found answers in it or on the Web.
This time, I am quite stuck! One Japanese colleague has used XeTeX on her Mac and passed me her files to do some debugging concerning the bibliography.

I am using TeXShop (latest version), I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
The message is always the same. Trying to complie from TeXShop:

kpathsea: Running mktexfmt xelatex.fmt
warning: Configuration file texmf.cnf not found! Searched these directories:
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!


Or, trying xelatex directly:

...Mutsuko-Cogalex-20161112-rvCB: xelatex CogCog-Alex-20161112-rvCB.tex
warning: Configuration file texmf.cnf not found! Searched these directories:
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
This is XeTeX, Version 3.141592-2.2-0.996-patch1 (Web2C 7.5.6)
kpathsea: Running mktexfmt xelatex.fmt
warning: Configuration file texmf.cnf not found! Searched these directories:
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!


I then tried to reinstall separately XeTeX (version 0.9993).
The build (using build.sh) was quite successful, and created after a quite long process a directory named "build-x86_64" and apparently correctly built.
But I DON'T FIGURE OUT HOW TO FINISH THE INSTALL, which should place the files where expected.
The INSTALL file (inside build-x86_64) says somewhat cryptically:

INSTALL for XeTeX Snapshots

This distribution is essentially a stripped-down version of
the TeXlive distribution with some additional libraries.

All source code is in the directory source; the build.sh
scripts will generate and populate a directory build.

The actual code of XeTeX is in source/texk/web2c/xetexdir
and its subdirectories.

* build.sh builds a native xetex on your system
* build.sh --ppc crosscompiles for osx-ppx from osx-intel
* build.sh --mingw crosscompiles xetex for mingw32 on i686-linux

XeTeX does not need a run-time pool file, and it locates
texmf.cnf based on its relative position in the TeX tree.

Post-compilation installation should be a simple matter
of copying the executable to a normal place for web2c
binaries and generating the desired formats.

What is "the executable"? The complete directory (transformed in an .app file -- a "package")? Some of the executables in the texk>kpathsea directory?
And what is "a normal place for web2c" ???

I tried hard but did not find any tutorial or online discussion on that matter. Please help!

Thanks in advance,
Xan
Herb Schulz
2016-11-13 22:06:28 UTC
Permalink
Howdy,

Sorry for the top post.

Have you installed MacTeX? It installs a full TeX Live distribution when includes xe(la)tex.

Good Luck,
Herb Schulz
Post by Christian Boitet
Dear TeX fans, 13/11/16
it is the first time I post anything on this list: I have used LaTeX for lectures, slides, conference papers, etc. for many years, I have a complete reference book, and always found answers in it or on the Web.
This time, I am quite stuck! One Japanese colleague has used XeTeX on her Mac and passed me her files to do some debugging concerning the bibliography.
I am using TeXShop (latest version), I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
...Mutsuko-Cogalex-20161112-rvCB: xelatex CogCog-Alex-20161112-rvCB.tex
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
This is XeTeX, Version 3.141592-2.2-0.996-patch1 (Web2C 7.5.6)
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
I then tried to reinstall separately XeTeX (version 0.9993).
The build (using build.sh) was quite successful, and created after a quite long process a directory named "build-x86_64" and apparently correctly built.
But I DON'T FIGURE OUT HOW TO FINISH THE INSTALL, which should place the files where expected.
INSTALL for XeTeX Snapshots
This distribution is essentially a stripped-down version of
the TeXlive distribution with some additional libraries.
All source code is in the directory source; the build.sh
scripts will generate and populate a directory build.
The actual code of XeTeX is in source/texk/web2c/xetexdir
and its subdirectories.
* build.sh builds a native xetex on your system
* build.sh --ppc crosscompiles for osx-ppx from osx-intel
* build.sh --mingw crosscompiles xetex for mingw32 on i686-linux
XeTeX does not need a run-time pool file, and it locates
texmf.cnf based on its relative position in the TeX tree.
Post-compilation installation should be a simple matter
of copying the executable to a normal place for web2c
binaries and generating the desired formats.
What is "the executable"? The complete directory (transformed in an .app file -- a "package")? Some of the executables in the texk>kpathsea directory?
And what is "a normal place for web2c" ???
I tried hard but did not find any tutorial or online discussion on that matter. Please help!
Thanks in advance,
Xan
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
Christian Boitet
2016-11-13 23:35:50 UTC
Permalink
G'day, 13/11/16

Vielen Dank Herb für die schnelle Antwort.

Ja zur Frage.

(Ich schrieb "I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
The message is always the same...")

Maybe I should try to uninstall all TeX-related files and reinstall, but it is too complex to do it by hand. The installers are supposed to replace what should be replaced, but obviously don't erase all what should be erased.

Any hint of a "total clean uninstaller" for TeX and related files/programs?

Best,

Xan (Grenoble)
Post by Herb Schulz
Howdy,
Sorry for the top post.
Have you installed MacTeX? It installs a full TeX Live distribution when includes xe(la)tex.
Good Luck,
Herb Schulz
Post by Christian Boitet
Dear TeX fans, 13/11/16
it is the first time I post anything on this list: I have used LaTeX for lectures, slides, conference papers, etc. for many years, I have a complete reference book, and always found answers in it or on the Web.
This time, I am quite stuck! One Japanese colleague has used XeTeX on her Mac and passed me her files to do some debugging concerning the bibliography.
I am using TeXShop (latest version), I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
...Mutsuko-Cogalex-20161112-rvCB: xelatex CogCog-Alex-20161112-rvCB.tex
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
This is XeTeX, Version 3.141592-2.2-0.996-patch1 (Web2C 7.5.6)
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
I then tried to reinstall separately XeTeX (version 0.9993).
The build (using build.sh) was quite successful, and created after a quite long process a directory named "build-x86_64" and apparently correctly built.
But I DON'T FIGURE OUT HOW TO FINISH THE INSTALL, which should place the files where expected.
INSTALL for XeTeX Snapshots
This distribution is essentially a stripped-down version of
the TeXlive distribution with some additional libraries.
All source code is in the directory source; the build.sh
scripts will generate and populate a directory build.
The actual code of XeTeX is in source/texk/web2c/xetexdir
and its subdirectories.
* build.sh builds a native xetex on your system
* build.sh --ppc crosscompiles for osx-ppx from osx-intel
* build.sh --mingw crosscompiles xetex for mingw32 on i686-linux
XeTeX does not need a run-time pool file, and it locates
texmf.cnf based on its relative position in the TeX tree.
Post-compilation installation should be a simple matter
of copying the executable to a normal place for web2c
binaries and generating the desired formats.
What is "the executable"? The complete directory (transformed in an .app file -- a "package")? Some of the executables in the texk>kpathsea directory?
And what is "a normal place for web2c" ???
I tried hard but did not find any tutorial or online discussion on that matter. Please help!
Thanks in advance,
Xan
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
Subscriptions, Archive, and List information
Richard Koch
2016-11-13 23:46:25 UTC
Permalink
Post by Christian Boitet
G'day, 13/11/16
Vielen Dank Herb für die schnelle Antwort.
Ja zur Frage.
(Ich schrieb "I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
The message is always the same...")
Maybe I should try to uninstall all TeX-related files and reinstall, but it is too complex to do it by hand. The installers are supposed to replace what should be replaced, but obviously don't erase all what should be erased.
Nonsense. MacTeX installs TeX Live in /usr/local/texlive/2016, which is incidentally the default location suggested by TeXLive. It would be stupid for it to erase /opt/local/bin, since it is not going to use that
location, and since the user might to keep their old TeX around.

The MacTeX install does exactly the correct thing. It puts all of TeX Live in this one location

/usr/local/texlive/2016

Dick Koch
***@uoregon.edu





--------------------------------------------------
Subscriptions, Archive, and List infor
Christian Boitet
2016-11-14 01:16:46 UTC
Permalink
Good night, 13/11/16
Post by Richard Koch
Post by Christian Boitet
G'day, 13/11/16
Vielen Dank Herb fÃŒr die schnelle Antwort.
Ja zur Frage.
(Ich schrieb "I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
The message is always the same...")
Maybe I should try to uninstall all TeX-related files and reinstall, but it is too complex to do it by hand. The installers are supposed to replace what should be replaced, but obviously don't erase all what should be erased.
Nonsense. MacTeX installs TeX Live in /usr/local/texlive/2016, which is incidentally the default location suggested by TeXLive. It would be stupid for it to erase /opt/local/bin, since it is not going to use that
location, and since the user might want to keep their old TeX around.
The MacTeX install does exactly the correct thing. It puts all of TeX Live in this one location
/usr/local/texlive/2016
Dick Koch
True enough:

============================================================
sudo find / -name 'texmf.cnf'
==>
/Installeurs/XeTeX/xetex-0.9999.3/source/texk/kpathsea/texmf.cnf
/Installeurs/XeTeX/xetex-0.9999.3/source/texk/web2c/etexdir/etrip/texmf.cnf
/Users/boitet/Library/texmf/tex/latex/pgf_2.10.tds/doc/generic/pgf/text-en/texmf.cnf
/usr/local/texlive/2011/texmf/web2c/texmf.cnf
/usr/local/texlive/2011/texmf-dist/doc/generic/pgf/text-en/texmf.cnf
/usr/local/texlive/2011/texmf-dist/doc/latex/pgfplots/texmf.cnf
/usr/local/texlive/2011/texmf.cnf
/usr/local/texlive/2015/texmf-dist/web2c/texmf.cnf
/usr/local/texlive/2015/texmf.cnf
/usr/local/texlive/2016/texmf-dist/web2c/texmf.cnf
/usr/local/texlive/2016/texmf.cnf
/usr/local/texlive/2016basic/texmf-dist/web2c/texmf.cnf
/usr/local/texlive/2016basic/texmf.cnf
============================================================
But, then, how comes this file (texmf.cnf) is not found when I run TeXShop in mode XeTeX or XeLaTeX?

The other question is why I seem not to be able to install the latest version of XeTeX "on top" of what exists.
Perhaps it is, actually, but why does it report looking for files in /opt/local when they have been installed in /usr/local ?

==> Il will try to solve this simply, hoping the latest version of xetex is contained in the latest version of MacTeX, which seems natural.


I just added to my profile:
setenv PATH "$PATH":"/usr/local/texlive/2016"

If I understand well, it should solve the problem... but it does not at the moment.

I'll update my system and restart tomorrow, perhaps that will help.

Question: is there is somewhere a PATH variable specific to TeX (some PATH_TEX or TEX_PATH)?

I did not find a place in TeXShop where I could specify which instance of TeXlive it should use.
Perhaps it is still using texlive/2011 or texlive/2015?
Tomorrow (too late now), I'll remove the older versions of TeXlive and the separate folder used to try to install semtex 0.99993 separately.


Best,
Post by Richard Koch
http://tug.org/mailman/listinfo/xetex
Herb Schulz
2016-11-14 01:31:41 UTC
Permalink
Howdy,

Who knows where you tried to install XeTeX.

What does

echo $PATH

return? Did you actually try running the commands supplied by Dick Koch.

Good Luck,
Herb Schulz
Post by Christian Boitet
Good night, 13/11/16
Post by Richard Koch
Post by Christian Boitet
G'day, 13/11/16
Vielen Dank Herb fÃŒr die schnelle Antwort.
Ja zur Frage.
(Ich schrieb "I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
The message is always the same...")
Maybe I should try to uninstall all TeX-related files and reinstall, but it is too complex to do it by hand. The installers are supposed to replace what should be replaced, but obviously don't erase all what should be erased.
Nonsense. MacTeX installs TeX Live in /usr/local/texlive/2016, which is incidentally the default location suggested by TeXLive. It would be stupid for it to erase /opt/local/bin, since it is not going to use that
location, and since the user might want to keep their old TeX around.
The MacTeX install does exactly the correct thing. It puts all of TeX Live in this one location
/usr/local/texlive/2016
Dick Koch
============================================================
sudo find / -name 'texmf.cnf'
==>
/Installeurs/XeTeX/xetex-0.9999.3/source/texk/kpathsea/texmf.cnf
/Installeurs/XeTeX/xetex-0.9999.3/source/texk/web2c/etexdir/etrip/texmf.cnf
/Users/boitet/Library/texmf/tex/latex/pgf_2.10.tds/doc/generic/pgf/text-en/texmf.cnf
/usr/local/texlive/2011/texmf/web2c/texmf.cnf
/usr/local/texlive/2011/texmf-dist/doc/generic/pgf/text-en/texmf.cnf
/usr/local/texlive/2011/texmf-dist/doc/latex/pgfplots/texmf.cnf
/usr/local/texlive/2011/texmf.cnf
/usr/local/texlive/2015/texmf-dist/web2c/texmf.cnf
/usr/local/texlive/2015/texmf.cnf
/usr/local/texlive/2016/texmf-dist/web2c/texmf.cnf
/usr/local/texlive/2016/texmf.cnf
/usr/local/texlive/2016basic/texmf-dist/web2c/texmf.cnf
/usr/local/texlive/2016basic/texmf.cnf
============================================================
But, then, how comes this file (texmf.cnf) is not found when I run TeXShop in mode XeTeX or XeLaTeX?
The other question is why I seem not to be able to install the latest version of XeTeX "on top" of what exists.
Perhaps it is, actually, but why does it report looking for files in /opt/local when they have been installed in /usr/local ?
==> Il will try to solve this simply, hoping the latest version of xetex is contained in the latest version of MacTeX, which seems natural.
setenv PATH "$PATH":"/usr/local/texlive/2016"
If I understand well, it should solve the problem... but it does not at the moment.
I'll update my system and restart tomorrow, perhaps that will help.
Question: is there is somewhere a PATH variable specific to TeX (some PATH_TEX or TEX_PATH)?
I did not find a place in TeXShop where I could specify which instance of TeXlive it should use.
Perhaps it is still using texlive/2011 or texlive/2015?
Tomorrow (too late now), I'll remove the older versions of TeXlive and the separate folder used to try to install semtex 0.99993 separately.
Best,
Post by Richard Koch
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
Herbert Schulz
2016-11-14 13:18:57 UTC
Permalink
Post by Christian Boitet
setenv PATH "$PATH":"/usr/local/texlive/2016"
If I understand well, it should solve the problem... but it does not at the moment.
Howdy,

NO. The path needs to point to the binaries not the base of the distribution tree.

Try doing

setenv PATH "/Library/TeX/texbin:$PATH"

and see if that works.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
George N. White III
2016-11-14 15:06:21 UTC
Permalink
Post by Christian Boitet
Post by Christian Boitet
setenv PATH "$PATH":"/usr/local/texlive/2016"
If I understand well, it should solve the problem... but it does not at
the moment.
Howdy,
NO. The path needs to point to the binaries not the base of the distribution tree.
Try doing
setenv PATH "/Library/TeX/texbin:$PATH"
and see if that works.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
The OP is using macOS, where the default user shell is bash. Normally,
setenv is used with csh.
If the OP is using csh (not unexpected for a long-time TeX user) there may
be some obscure
configuration glitches. Here, a tcsh user gets normal behaviour from
MacTeX and macports' texlive.
Macports' also provides TeXShop (versions 3.75 or 2.47). Lots of moving
parts and very little
hard data here.
--
George N. White III <***@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
Herbert Schulz
2016-11-14 15:19:49 UTC
Permalink
Post by Herb Schulz
Post by Christian Boitet
setenv PATH "$PATH":"/usr/local/texlive/2016"
If I understand well, it should solve the problem... but it does not at the moment.
Howdy,
NO. The path needs to point to the binaries not the base of the distribution tree.
Try doing
setenv PATH "/Library/TeX/texbin:$PATH"
and see if that works.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
The OP is using macOS, where the default user shell is bash. Normally, setenv is used with csh.
If the OP is using csh (not unexpected for a long-time TeX user) there may be some obscure
configuration glitches. Here, a tcsh user gets normal behaviour from MacTeX and macports' texlive.
Macports' also provides TeXShop (versions 3.75 or 2.47). Lots of moving parts and very little
hard data here.
--
Head of St. Margarets Bay, Nova Scotia
Howdy,

The two engine files that he was looking for actually use csh (they go back quite a long time---old macOS versions used csh as the default).

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Herbert Schulz
2016-11-14 15:22:13 UTC
Permalink
Post by Herb Schulz
Post by Herb Schulz
Post by Christian Boitet
setenv PATH "$PATH":"/usr/local/texlive/2016"
If I understand well, it should solve the problem... but it does not at the moment.
Howdy,
NO. The path needs to point to the binaries not the base of the distribution tree.
Try doing
setenv PATH "/Library/TeX/texbin:$PATH"
and see if that works.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
The OP is using macOS, where the default user shell is bash. Normally, setenv is used with csh.
If the OP is using csh (not unexpected for a long-time TeX user) there may be some obscure
configuration glitches. Here, a tcsh user gets normal behaviour from MacTeX and macports' texlive.
Macports' also provides TeXShop (versions 3.75 or 2.47). Lots of moving parts and very little
hard data here.
--
Head of St. Margarets Bay, Nova Scotia
Howdy,
The two engine files that he was looking for actually use csh (they go back quite a long time---old macOS versions used csh as the default).
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
Howdy,

Sorry, that should have been tcsh, not csh.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Richard Koch
2016-11-14 15:38:13 UTC
Permalink
Herbert,

He straightened out the ~/Library/TeXShop/Engines issue. Now I'm waiting for him to follow my suggestion and edit XeTeX.engine and XeLaTeX.engine so they look like mine. I conjecture that the path at the top of his engines has /usr/texbin but not /Library/TeX/texbin.

Dick

I hope we are almost there. If this works, I'll let you take over the rest. He'll need the correct path to run TeX Live Utility.

Fingers crossed.

Dick
Post by Herb Schulz
Post by Herb Schulz
Post by Herb Schulz
Post by Christian Boitet
setenv PATH "$PATH":"/usr/local/texlive/2016"
If I understand well, it should solve the problem... but it does not at the moment.
Howdy,
NO. The path needs to point to the binaries not the base of the distribution tree.
Try doing
setenv PATH "/Library/TeX/texbin:$PATH"
and see if that works.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
The OP is using macOS, where the default user shell is bash. Normally, setenv is used with csh.
If the OP is using csh (not unexpected for a long-time TeX user) there may be some obscure
configuration glitches. Here, a tcsh user gets normal behaviour from MacTeX and macports' texlive.
Macports' also provides TeXShop (versions 3.75 or 2.47). Lots of moving parts and very little
hard data here.
--
Head of St. Margarets Bay, Nova Scotia
Howdy,
The two engine files that he was looking for actually use csh (they go back quite a long time---old macOS versions used csh as the default).
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
Howdy,
Sorry, that should have been tcsh, not csh.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Herbert Schulz
2016-11-14 15:44:44 UTC
Permalink
Post by Richard Koch
Herbert,
He straightened out the ~/Library/TeXShop/Engines issue. Now I'm waiting for him to follow my suggestion and edit XeTeX.engine and XeLaTeX.engine so they look like mine. I conjecture that the path at the top of his engines has /usr/texbin but not /Library/TeX/texbin.
Dick
I hope we are almost there. If this works, I'll let you take over the rest. He'll need the correct path to run TeX Live Utility.
Fingers crossed.
Dick
Post by Herb Schulz
Post by Herb Schulz
Post by Herb Schulz
Post by Christian Boitet
setenv PATH "$PATH":"/usr/local/texlive/2016"
If I understand well, it should solve the problem... but it does not at the moment.
Howdy,
NO. The path needs to point to the binaries not the base of the distribution tree.
Try doing
setenv PATH "/Library/TeX/texbin:$PATH"
and see if that works.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
The OP is using macOS, where the default user shell is bash. Normally, setenv is used with csh.
If the OP is using csh (not unexpected for a long-time TeX user) there may be some obscure
configuration glitches. Here, a tcsh user gets normal behaviour from MacTeX and macports' texlive.
Macports' also provides TeXShop (versions 3.75 or 2.47). Lots of moving parts and very little
hard data here.
--
Head of St. Margarets Bay, Nova Scotia
Howdy,
The two engine files that he was looking for actually use csh (they go back quite a long time---old macOS versions used csh as the default).
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
Howdy,
Sorry, that should have been tcsh, not csh.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
Howdy,

I'd agree with you assessment since he seems to have some rather old TeX Live installs as well as TeX Live 2016 and BasicTeX 2016.

I do wish he'd fix up his PATH variable setting for CLI work. It's all getting mixed up in helping him out.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Christian Boitet
2016-11-14 16:00:14 UTC
Permalink
Dear all, 14/11/16

my problem has been solved now with your help, in particular that of Richard Coch.

THANKS!!!

And, yes, I still use tcsh, simply because I used it when I began to do some programming on the Mac, still under Mac OS 9, and have a long .cshrc file...

The "trick" has been to use TeXlive to choose the texlive/2016 version, and to update 473 packages.
I also added in .cshrc
setenv PATH "/Library/TeX/texbin:$PATH"
as last instruction on PATH, and it seems to be the other element of the solution.

Best regards, I am happy to have joined tug.org and hope to be of help in the future.

Xan (Christian Boitet)
Post by Herb Schulz
Post by Herb Schulz
Post by Herb Schulz
Post by Christian Boitet
setenv PATH "$PATH":"/usr/local/texlive/2016"
If I understand well, it should solve the problem... but it does not at the moment.
Howdy,
NO. The path needs to point to the binaries not the base of the distribution tree.
Try doing
setenv PATH "/Library/TeX/texbin:$PATH"
and see if that works.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
The OP is using macOS, where the default user shell is bash. Normally, setenv is used with csh.
If the OP is using csh (not unexpected for a long-time TeX user) there may be some obscure
configuration glitches. Here, a tcsh user gets normal behaviour from MacTeX and macports' texlive.
Macports' also provides TeXShop (versions 3.75 or 2.47). Lots of moving parts and very little
hard data here.
--
Head of St. Margarets Bay, Nova Scotia
Howdy,
The two engine files that he was looking for actually use csh (they go back quite a long time---old macOS versions used csh as the default).
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
Howdy,
Sorry, that should have been tcsh, not csh.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mail

Herbert Schulz
2016-11-14 13:23:02 UTC
Permalink
Post by Christian Boitet
I did not find a place in TeXShop where I could specify which instance of TeXlive it should use.
Perhaps it is still using texlive/2011 or texlive/2015?
Tomorrow (too late now), I'll remove the older versions of TeXlive and the separate folder used to try to install semtex 0.99993 separately.
Howdy,

Take a look at the Console output; you should see some paths there to files in the distribution. You can easily change between the distributions by using the TeX Live Utility; click Configure->Change Default TeX Live Version… .

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
Herb Schulz
2016-11-13 23:53:18 UTC
Permalink
Howdy,

I'd expect that you TeX Live distribution installed by MacTeX is perfectly fine. I have no idea how you remove the one installed by MacPorts. Follow Dick Koch's advice to check the MacTeX installed version. If that is ok following my advice should fix things.

If the MacTeX version isn't there we'll need more information about how you installed it; e.g., is the install on a fresh version of Sierra or not, etc.

Good Luck,
Herb Schulz
G'day, 13/11/16
Vielen Dank Herb für die schnelle Antwort.
Ja zur Frage.
(Ich schrieb "I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
The message is always the same...")
Maybe I should try to uninstall all TeX-related files and reinstall, but it is too complex to do it by hand. The installers are supposed to replace what should be replaced, but obviously don't erase all what should be erased.
Any hint of a "total clean uninstaller" for TeX and related files/programs?
Best,
Xan (Grenoble)
Post by Herb Schulz
Howdy,
Sorry for the top post.
Have you installed MacTeX? It installs a full TeX Live distribution when includes xe(la)tex.
Good Luck,
Herb Schulz
Dear TeX fans, 13/11/16
it is the first time I post anything on this list: I have used LaTeX for lectures, slides, conference papers, etc. for many years, I have a complete reference book, and always found answers in it or on the Web.
This time, I am quite stuck! One Japanese colleague has used XeTeX on her Mac and passed me her files to do some debugging concerning the bibliography.
I am using TeXShop (latest version), I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
Or, tryi
--------------------------------------------------
Subscriptions, Archive, and List information,
George N. White III
2016-11-14 00:31:57 UTC
Permalink
Post by Herb Schulz
Howdy,
I'd expect that you TeX Live distribution installed by MacTeX is perfectly
fine. I have no idea how you remove the one installed by MacPorts. Follow
Dick Koch's advice to check the MacTeX installed version. If that is ok
following my advice should fix things.
Herb's advice should work in systems that are close to Apple standard
configuration, but some applications add strange stuff to the startup
scripts, so
it is highly advisable that users to read up on bash to understand why the
suggested change should work.

If it doesn't work, post the result from "echo $PATH" in a terminal.

Macports pulls in texlive during source installs if needed to format
documentation. The problem is that macports also adds itself to the front
of
the PATH in one of the bash startup files. so the macports vrsion of TeX
software get run by editors and IDE's that respect this setting. In most
cases the simple fix is to add the MacTeX bin directory before the macports
bin directory in this setting. This doesn't affect macports builds because
builds use an adjusted PATH, not the user's default. It should be
necessary or helpful to remove macorts' texlive as the problem will return
the next
time a package that formats documentation with a TeX program is installed
from source. There are other programs that mess with the PATH, so
it is best that the user learn a bit about the bash startup files so they
are able to manage this properly for their needs.
Post by Herb Schulz
If the MacTeX version isn't there we'll need more information about how
you installed it; e.g., is the install on a fresh version of Sierra or not,
etc.
Good Luck,
Herb Schulz
G'day, 13/11/16
Vielen Dank Herb fÃŒr die schnelle Antwort.
Ja zur Frage.
(Ich schrieb "I reinstalled MacLive, and then MacTeX-2016, which are
supposed to come with XeTeX. No way.
The message is always the same...")
Maybe I should try to uninstall all TeX-related files and reinstall, but
it is too complex to do it by hand. The installers are supposed to replace
what should be replaced, but obviously don't erase all what should be
erased.
Any hint of a "total clean uninstaller" for TeX and related
files/programs?
Best,
Xan (Grenoble)
Post by Herb Schulz
Howdy,
Sorry for the top post.
Have you installed MacTeX? It installs a full TeX Live distribution
when includes xe(la)tex.
Post by Herb Schulz
Good Luck,
Herb Schulz
On Nov 13, 2016, at 12:33 PM, Christian Boitet <
Dear TeX fans, 13/11/16
it is the first time I post anything on this list: I have used LaTeX
for lectures, slides, conference papers, etc. for many years, I have a
complete reference book, and always found answers in it or on the Web.
Post by Herb Schulz
This time, I am quite stuck! One Japanese colleague has used XeTeX on
her Mac and passed me her files to do some debugging concerning the
bibliography.
Post by Herb Schulz
I am using TeXShop (latest version), I reinstalled MacLive, and then
MacTeX-2016, which are supposed to come with XeTeX. No way.
Post by Herb Schulz
kpathsea: Running mktexfmt xelatex.fmt
warning: Configuration file texmf.cnf not found! Searched these
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/
texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/
share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/
opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/
local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/
opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/
local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/
texmf/web2c:/opt/local/share/texmf/web2c
Post by Herb Schulz
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or
directory
Post by Herb Schulz
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
Or, tryi
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--
George N. White III <***@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
George N. White III
2016-11-13 22:16:21 UTC
Permalink
Dear TeX fans, 13/11/16
it is the first time I post anything on this list: I have used LaTeX for
lectures, slides, conference papers, etc. for many years, I have a complete
reference book, and always found answers in it or on the Web.
This time, I am quite stuck! One Japanese colleague has used XeTeX on her
Mac and passed me her files to do some debugging concerning the
bibliography.
I am using TeXShop (latest version), I reinstalled MacLive, and then
MacTeX-2016, which are supposed to come with XeTeX. No way.
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/
texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/
share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/
opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/
local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/
opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/
local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/
texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
These messages are from macports' texlive. Macports somewhat selfishly
puts itself to the
front of the PATH variable. I routinely adjust this to put the MacTeX path
in front of the
macports' entry. Macports texlive is required to support building
docmentation of packages
installed from source, but when installing from source, the PATH variable
is set to ignore
MacTeX, so this works well form most users.
...Mutsuko-Cogalex-20161112-rvCB: xelatex CogCog-Alex-20161112-rvCB.tex
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/
texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/
share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/
opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/
local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/
opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/
local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/
texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
This is XeTeX, Version 3.141592-2.2-0.996-patch1 (Web2C 7.5.6)
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/
texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/
share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/
opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/
local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/
opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/
local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/
texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
I then tried to reinstall separately XeTeX (version 0.9993).
The build (using build.sh) was quite successful, and created after a quite
long process a directory named "build-x86_64" and apparently correctly
built.
But I DON'T FIGURE OUT HOW TO FINISH THE INSTALL, which should place the
files where expected.
INSTALL for XeTeX Snapshots
This distribution is essentially a stripped-down version of
the TeXlive distribution with some additional libraries.
All source code is in the directory source; the build.sh
scripts will generate and populate a directory build.
The actual code of XeTeX is in source/texk/web2c/xetexdir
and its subdirectories.
* build.sh builds a native xetex on your system
* build.sh --ppc crosscompiles for osx-ppx from osx-intel
* build.sh --mingw crosscompiles xetex for mingw32 on i686-linux
XeTeX does not need a run-time pool file, and it locates
texmf.cnf *based on its relative position in the TeX tree.*
*Post-compilation installation should be a simple matter *
*of copying the executable to a normal place for web2c *
*binaries and generating the desired formats.*
What is "the executable"? The complete directory (transformed in an .app
file -- a "package")? Some of the executables in the texk>kpathsea
directory?
And what is "a normal place for web2c" ???
I tried hard but did not find any tutorial or online discussion on that
matter. Please help!
Thanks in advance,
Xan
This all has to do with the bash shell configuration -- something many
macOS users
rarely encounter. You need to look into the startup configuration for bash
in a bash
manual. The macports changes are clearly marked, and the manual will
explain
how to adjust them for your needs.
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--
George N. White III <***@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
Herbert Schulz
2016-11-13 22:31:16 UTC
Permalink
Post by Christian Boitet
Dear TeX fans, 13/11/16
it is the first time I post anything on this list: I have used LaTeX for lectures, slides, conference papers, etc. for many years, I have a complete reference book, and always found answers in it or on the Web.
This time, I am quite stuck! One Japanese colleague has used XeTeX on her Mac and passed me her files to do some debugging concerning the bibliography.
I am using TeXShop (latest version), I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
These messages are from macports' texlive. Macports somewhat selfishly puts itself to the
front of the PATH variable. I routinely adjust this to put the MacTeX path in front of the
macports' entry. Macports texlive is required to support building docmentation of packages
installed from source, but when installing from source, the PATH variable is set to ignore
MacTeX, so this works well form most users.
...Mutsuko-Cogalex-20161112-rvCB: xelatex CogCog-Alex-20161112-rvCB.tex
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
This is XeTeX, Version 3.141592-2.2-0.996-patch1 (Web2C 7.5.6)
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
I then tried to reinstall separately XeTeX (version 0.9993).
The build (using build.sh) was quite successful, and created after a quite long process a directory named "build-x86_64" and apparently correctly built.
But I DON'T FIGURE OUT HOW TO FINISH THE INSTALL, which should place the files where expected.
INSTALL for XeTeX Snapshots
This distribution is essentially a stripped-down version of
the TeXlive distribution with some additional libraries.
All source code is in the directory source; the build.sh
scripts will generate and populate a directory build.
The actual code of XeTeX is in source/texk/web2c/xetexdir
and its subdirectories.
* build.sh builds a native xetex on your system
* build.sh --ppc crosscompiles for osx-ppx from osx-intel
* build.sh --mingw crosscompiles xetex for mingw32 on i686-linux
XeTeX does not need a run-time pool file, and it locates
texmf.cnf based on its relative position in the TeX tree.
Post-compilation installation should be a simple matter
of copying the executable to a normal place for web2c
binaries and generating the desired formats.
What is "the executable"? The complete directory (transformed in an .app file -- a "package")? Some of the executables in the texk>kpathsea directory?
And what is "a normal place for web2c" ???
I tried hard but did not find any tutorial or online discussion on that matter. Please help!
Thanks in advance,
Xan
This all has to do with the bash shell configuration -- something many macOS users
rarely encounter. You need to look into the startup configuration for bash in a bash
manual. The macports changes are clearly marked, and the manual will explain
how to adjust them for your needs.
Howdy,

If all this is true place the line

export PATH=/Library/TeX/texbin:$PATH

as the very last line in your ~/.profile (and/or ~/.bash_profile).

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Richard Koch
2016-11-13 23:27:41 UTC
Permalink
Let me add some remarks to Herb's comments.

The error message you reported mentions /opt/local/bin, etc. MacTeX doesn't install TeX Live in /opt. Thus you are running into trouble because your system is looking for TeX in the wrong place.

However, it is entirely possible that MacTeX did the correct thing. Please open Terminal in /Applications/Utilities and type

cd /Library/TeX/texbin
ls

Follow each line with RETURN. The second line contains el-ess.

You should see a big list of files, including xetex and xelatex. If you do, MacTeX is probably OK.

Next let's try to make TeXShop handle those files correctly. In TeXShop Preferences, under the Engine tab,
the first item should be

/Library/TeX/texbin

Change it to this if necessary. The Distiller preference is probably correct and also irrelevant.

Now try xetex or xelatex.

If they DO NOT work, go to the TeXShop menu and select the item "Open ~/Library/TeXShop." You'll find yourself inside a folder. Click on the "Engines" folder to open it. You'll see several files. These files can be opened and edited in TeXShop. Below are the correct contents. Edit if necessary so these files are as shown.

After this, xetex and xelatex should work in TeXShop. Write if this isn't true.

Dick Koch
***@uoregon.edu



xetex.engine
——————————

#!/bin/tcsh

set path= ($path /Library/TeX/texbin /usr/texbin /usr/local/bin)
xetex -file-line-error -synctex=1 "$1"



xelatex.engine
——————————

#!/bin/tcsh

set path= ($path /Library/TeX/texbin /usr/texbin /usr/local/bin)
xelatex -file-line-error -synctex=1 "$1"
Post by Herb Schulz
Post by Christian Boitet
Dear TeX fans, 13/11/16
it is the first time I post anything on this list: I have used LaTeX for lectures, slides, conference papers, etc. for many years, I have a complete reference book, and always found answers in it or on the Web.
This time, I am quite stuck! One Japanese colleague has used XeTeX on her Mac and passed me her files to do some debugging concerning the bibliography.
I am using TeXShop (latest version), I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
These messages are from macports' texlive. Macports somewhat selfishly puts itself to the
front of the PATH variable. I routinely adjust this to put the MacTeX path in front of the
macports' entry. Macports texlive is required to support building docmentation of packages
installed from source, but when installing from source, the PATH variable is set to ignore
MacTeX, so this works well form most users.
...Mutsuko-Cogalex-20161112-rvCB: xelatex CogCog-Alex-20161112-rvCB.tex
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
This is XeTeX, Version 3.141592-2.2-0.996-patch1 (Web2C 7.5.6)
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
I then tried to reinstall separately XeTeX (version 0.9993).
The build (using build.sh) was quite successful, and created after a quite long process a directory named "build-x86_64" and apparently correctly built.
But I DON'T FIGURE OUT HOW TO FINISH THE INSTALL, which should place the files where expected.
INSTALL for XeTeX Snapshots
This distribution is essentially a stripped-down version of
the TeXlive distribution with some additional libraries.
All source code is in the directory source; the build.sh
scripts will generate and populate a directory build.
The actual code of XeTeX is in source/texk/web2c/xetexdir
and its subdirectories.
* build.sh builds a native xetex on your system
* build.sh --ppc crosscompiles for osx-ppx from osx-intel
* build.sh --mingw crosscompiles xetex for mingw32 on i686-linux
XeTeX does not need a run-time pool file, and it locates
texmf.cnf based on its relative position in the TeX tree.
Post-compilation installation should be a simple matter
of copying the executable to a normal place for web2c
binaries and generating the desired formats.
What is "the executable"? The complete directory (transformed in an .app file -- a "package")? Some of the executables in the texk>kpathsea directory?
And what is "a normal place for web2c" ???
I tried hard but did not find any tutorial or online discussion on that matter. Please help!
Thanks in advance,
Xan
This all has to do with the bash shell configuration -- something many macOS users
rarely encounter. You need to look into the startup configuration for bash in a bash
manual. The macports changes are clearly marked, and the manual will explain
how to adjust them for your needs.
Howdy,
If all this is true place the line
export PATH=/Library/TeX/texbin:$PATH
as the very last line in your ~/.profile (and/or ~/.bash_profile).
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/list
Herbert Schulz
2016-11-13 22:29:15 UTC
Permalink
Post by Christian Boitet
I am using TeXShop (latest version), I reinstalled MacLive, and then MacTeX-2016, which are supposed to come with XeTeX. No way.
kpathsea: Running mktexfmt xelatex.fmt
/opt/local/bin:/opt/local:/opt:/opt/local/bin/share/texmf-local/web2c:/opt/local/share/texmf-local/web2c:/opt/share/texmf-local/web2c:/opt/local/bin/texmf-local/web2c:/opt/local/texmf-local/web2c:/opt/texmf-local/web2c:/opt/local/bin/share/texmf/web2c:/opt/local/share/texmf/web2c:/opt/share/texmf/web2c:/opt/local/bin/texmf/web2c:/opt/local/texmf/web2c:/opt/texmf/web2c:/.:/opt/local/share/texmf/web2c:/opt/local/share/texmf/web2c
Trying to proceed...
/opt/local/bin/mktexfmt: line 336: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `xelatex.fmt'!
Howdy,

You are NOT using the TeX Live installed by MacTeX. I don't know what MacLive is!? Did you install the MacPorts version of TeX Live? Could you tell me what

echo $PATH

returns? Either you or, if you did install the MacPorts TeX Live that installer, placed their position in the PATH before the trailing /Library/TeX/texbin.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Loading...