Re: [NTG-pdftex] Fwd: Rebuilding pdftex gives ---! Must increase the hyph_size (Fatal format file error; I'm stymied)
pdftex (and any program that uses kpathsea) can be run from any location, but one has to set TEXMFCNF to the right location (and probably edit texmf.cnf slightly). Personally I use TEXMFCNF=/opt/texlive/texmf-config/web2c:/opt/texlive/texmf-main/web2c where /opt/texlive/texmf-main/web2c/texmf.cnf is the original texlive texmf.cnf, and I put my changes /opt/texlive/texmf-config/web2c/texmf.cnf to override a few tl settings. Thanh On Tue, Aug 26, 2008 at 03:31:46PM +0300, Vasile Gaburici wrote:
Thanks, the patch is not the problem. The problem is that one cannot run pdftex from the build dir. It needs to sit in a TDS to be able to find the config files plus all the tex stuff required to build the fmt file. In my case it could not find texmf.cnf at all, so it used some defaults, hence the error.
On Tue, Aug 26, 2008 at 3:15 PM, Thanh Han The
wrote: you can try to compile pdftex from sources, but without your patch.
1. if it works, then the problem is likely with the patch.
2. if not, the problem is likely with your tex config.
Thanh
On Tue, Aug 26, 2008 at 02:34:45PM +0300, Vasile Gaburici wrote:
I'm not sure that anyone reads pdftex@tug.org, so I'm trying my luck on this list:
---------- Forwarded message ---------- From: Vasile Gaburici
Date: Tue, Aug 26, 2008 at 2:23 PM Subject: Rebuilding pdftex gives ---! Must increase the hyph_size (Fatal format file error; I'm stymied) To: "pdftex@tug.org" I've applied a small patch (unrelated to hyphenation) to pdftex 1.40.9 sources and I've successfully recompiled it. But when I try to use it against the TeXLive 2008 tree (without overwriting the old binary), I'm getting this:
fmtutil: /home/vga/.texlive2008/texmf-var/web2c/pdftex/pdflatex.fmt installed. ---! Must increase the hyph_size (Fatal format file error; I'm stymied)
Changing the hyph_size in texmf.cnf doesn's help. Any hints what could be wrong? _______________________________________________ ntg-pdftex mailing list ntg-pdftex@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-pdftex
ntg-pdftex mailing list ntg-pdftex@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-pdftex
My solution was to drop the pdftex binary I've compiled in
/usr/local/bin. Unfortunately from there it thought that it "belonged"
to Fedora's RPM-installed TeXLive 2007 instead of my separate 2008
installation. This is due the kpathsea's compile-time defaults for CNF
locations (paths.h), which eventually finds TL 2007's texmf.cnf in
/usr/share/texmf/web2c. But at least I know that my patched pdftex
works with TL2007.
I'm unable to make it work with 2008 however. Han, what TeXLive are
you using? In 2008 there's no texmf-main anymore, and texmf-config is
empty... If I just do:
export TEXMFCNF=/fc5/tl/2008/texmf/web2c
then pdftex barely works, it cannot even find its pdftex.map file:
pdfTeX warning: pdftex (file pdftex.map): cannot open font map file
Anything beyond CM fonts, even LaTeX's minimal.cls cannot be found.
TL 2008 user guide suggests in section 3.4.5 to set
TEXMFCNF=/usr/local/texlive/2008/texmf-var/web2c
But there's no texmf.cnf in texmf-var/web2c, only a fmtutil.cnf
On Tue, Aug 26, 2008 at 3:59 PM, Thanh Han The
pdftex (and any program that uses kpathsea) can be run from any location, but one has to set TEXMFCNF to the right location (and probably edit texmf.cnf slightly). Personally I use
TEXMFCNF=/opt/texlive/texmf-config/web2c:/opt/texlive/texmf-main/web2c
where /opt/texlive/texmf-main/web2c/texmf.cnf is the original texlive texmf.cnf, and I put my changes /opt/texlive/texmf-config/web2c/texmf.cnf to override a few tl settings.
Thanh
On Tue, Aug 26, 2008 at 03:31:46PM +0300, Vasile Gaburici wrote:
Thanks, the patch is not the problem. The problem is that one cannot run pdftex from the build dir. It needs to sit in a TDS to be able to find the config files plus all the tex stuff required to build the fmt file. In my case it could not find texmf.cnf at all, so it used some defaults, hence the error.
On Tue, Aug 26, 2008 at 3:15 PM, Thanh Han The
wrote: you can try to compile pdftex from sources, but without your patch.
1. if it works, then the problem is likely with the patch.
2. if not, the problem is likely with your tex config.
Thanh
On Tue, Aug 26, 2008 at 02:34:45PM +0300, Vasile Gaburici wrote:
I'm not sure that anyone reads pdftex@tug.org, so I'm trying my luck on this list:
---------- Forwarded message ---------- From: Vasile Gaburici
Date: Tue, Aug 26, 2008 at 2:23 PM Subject: Rebuilding pdftex gives ---! Must increase the hyph_size (Fatal format file error; I'm stymied) To: "pdftex@tug.org" I've applied a small patch (unrelated to hyphenation) to pdftex 1.40.9 sources and I've successfully recompiled it. But when I try to use it against the TeXLive 2008 tree (without overwriting the old binary), I'm getting this:
fmtutil: /home/vga/.texlive2008/texmf-var/web2c/pdftex/pdflatex.fmt installed. ---! Must increase the hyph_size (Fatal format file error; I'm stymied)
Changing the hyph_size in texmf.cnf doesn's help. Any hints what could be wrong? _______________________________________________ ntg-pdftex mailing list ntg-pdftex@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-pdftex
ntg-pdftex mailing list ntg-pdftex@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-pdftex
ntg-pdftex mailing list ntg-pdftex@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-pdftex
There's no web2c under texmf-dist. The texmf.cnf from 2008/texmf/web2c does get loaded, it just doesn't work properly, probably due the $SELFAUTOPARENT business. The one that Fedora provides has hardcoded paths. On Tue, Aug 26, 2008 at 9:06 PM, Philip TAYLOR (Ret'd)
Vasile Gaburici wrote:
export TEXMFCNF=/fc5/tl/2008/texmf/web2c
Possibly TEXMFCNF=/fc5/tl/2008/texmf-dist/web2c ?
Philip TAYLOR
My solution was to drop the pdftex binary I've compiled in /usr/local/bin Please don't expect a random TeX binary to work with a random TeX tree. If you want to use TL'08, install TL'08. If you have TL'08 installed /some/where, then put your new pdftex into its tree: /some/where/bin/i386-linux/pdftex (move the original aside, of course). Your original message was about .fmt file mismatches. Delete your .fmt files created with previous versions of TL'08 and let them be recreated. We had to make changes that changed the .fmt's during the last round of bug fixes. Hope this helps. karl
It works if you use this script: http://www.cs.umd.edu/~gaburici/setup-tl
No need to move anything aside. Feel free to include the script it in TL :)
On Tue, Aug 26, 2008 at 11:17 PM, Karl Berry
My solution was to drop the pdftex binary I've compiled in /usr/local/bin
Please don't expect a random TeX binary to work with a random TeX tree.
If you want to use TL'08, install TL'08. If you have TL'08 installed /some/where, then put your new pdftex into its tree: /some/where/bin/i386-linux/pdftex (move the original aside, of course).
Your original message was about .fmt file mismatches. Delete your .fmt files created with previous versions of TL'08 and let them be recreated. We had to make changes that changed the .fmt's during the last round of bug fixes.
Hope this helps.
karl
On Tue, Aug 26, 2008 at 2:55 PM, Vasile Gaburici
My solution was to drop the pdftex binary I've compiled in /usr/local/bin. Unfortunately from there it thought that it "belonged" to Fedora's RPM-installed TeXLive 2007 instead of my separate 2008 installation. This is due the kpathsea's compile-time defaults for CNF locations (paths.h), which eventually finds TL 2007's texmf.cnf in /usr/share/texmf/web2c. But at least I know that my patched pdftex works with TL2007.
A simple approach for testing is to create parallel
".../texlive/YYYY/bin/<arch>-t" directories and put one before the
".../texlive/YYYY/bin/<arch>"directory in the path on the test
system(s). Thay way SELFAUTOPARENT is the same as for the
standard binaries.
--
George N. White III
participants (5)
-
George N. White III
-
karl@freefriends.org
-
Philip TAYLOR (Ret'd)
-
Thanh Han The
-
Vasile Gaburici