Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tetex upgrade breakage [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rdd
n00b
n00b


Joined: 02 Sep 2004
Posts: 11

PostPosted: Wed Jan 25, 2006 3:01 pm    Post subject: tetex upgrade breakage [solved] Reply with quote

So i had just started getting into this whole LaTeX thing for writing reports, which I really enjoyed more than having to start openoffice (emacs is so much nicer :)). But after an upgrade of tetex nothing seems to work right, and I'm quite at a loss what to do to fix it. Running a simple
Code:
latex report.tex

which worked fine last week now results in
Code:

This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5)
---! Must increase the hyph_size
(Fatal format file error; I'm stymied)

Tried creating a very minimal TeX document and run latex on that which resulted in the same message.
Initially I googled after hyph_size and found the file that's supposed to define it and used the value i found for it but then it just complained about the value of another variable...

Tried to downgrade to the previous tetex, didn't change anything, but I did notice a message flashing by in the emerging process (unfortunately it was covered with enough unmerging to fill my screen scrollback...) saying
Code:

*
* tetex-3.0_p1-r1 makes changes in /etc/texmf/fmtutil/00fmtutil.cnf
* After you update this file, please run as root
* fmtutil-sys --missing && fmtutil-sys --byfmt etex
*

The 00fmtutil.cnf file is a symlink to /etc/texmf/web2c/fmtutil.cnf, but I'm really not sure which "updates" it wants me to do in this file.
Trying to fmtutil-sys just results in error messages. First
Code:

/usr/bin/fmtutil: line 331: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.

and after going to that line in the file and figuring out the problem and doing
Code:
export TEXMFMAIN=/var/lib/texmf

I get the message
Code:

tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.
fmtutil: config file `fmtutil.cnf' not found.

which REALLY doesn't make sense to me since after I set the $TEXMFMAIN variable the path $TEXMFMAIN/texconfig/tcfmgr.map is perfectly valid...

Any help would be greatly appreciated, like I said, I had just started liking LaTeX but at this point even M$ Word seems like an improvement...


---
UPDATE:
After being directed in another thread to bug 90915 I tried to close down X and reemerge tetex, and then it works... I assume the root environment needed to be properly set up which it wasn't when using sudo to emerge tetex.
Back to top
View user's profile Send private message
lord_hypno
n00b
n00b


Joined: 07 May 2004
Posts: 35

PostPosted: Sun Jan 29, 2006 3:43 pm    Post subject: Reply with quote

First: sorry 4 my poor English, I'm Italian..

I know that the post has been marked solved, I hope this is the right place to post.
I had exactly the same problem, I tried to stop X and (re-)emerge tetex from shell, but I had again the same error.
The solution 4 my case was to downgrade to tetex-3.0-r4 and to copy working config files from there: tetex-3.0_p1-r1: texmf-update corrupts multiple files.

Code:
emerge =tetex-3.0-r4
wget -O - http://bugs.gentoo.org/attachment.cgi?id=78272 > fmtutil.cnf
wget -O - http://bugs.gentoo.org/attachment.cgi?id=78273 > texmf.cnf
cp fmtutil.cnf /etc/texmf/web2c/
cp texmf.cnf /etc/texmf/web2c/

_________________
Hypno
Back to top
View user's profile Send private message
rfk
n00b
n00b


Joined: 19 Sep 2003
Posts: 13
Location: Melbourne, Australia

PostPosted: Tue Feb 07, 2006 4:18 am    Post subject: Reply with quote

I was experiencing similar problems after the upgrade to 3.0_p1-r1. Tried the hints found in this thread but nothing worked. Eventually I discovered the "texmf-update" command, which produced the necessary files and seems to have made everything work properly. Perhaps I should have known about this command already, but it was news to me...
Back to top
View user's profile Send private message
niebie
n00b
n00b


Joined: 01 Nov 2003
Posts: 56

PostPosted: Tue Feb 07, 2006 8:12 pm    Post subject: Reply with quote

Thanks, rfk, for pointing me to texmf-update! That just saved my day...

I had a different error message (latex.fmt doesn't match pdfetex.pool), then I emerged tetex again - without success. After the emerge I have also seen that message about fmtutil-sys (which didn't work either). But running texmf-update solved the problem. Maybe the message in the ebuild should be changed.

And maybe I should stop updating my system while doing important work on it. :roll:
Back to top
View user's profile Send private message
Nattfodd
Retired Dev
Retired Dev


Joined: 07 Feb 2006
Posts: 62
Location: Göteborg, Sweden

PostPosted: Tue Feb 07, 2006 11:26 pm    Post subject: Reply with quote

Actually, there was a mess with tetex-3 eclass involving symlinks of some configuration files. It was reverted a few days later but if you have emerged tetex in between, this can cause a lot of trouble. The current solution consists in :

Code:

emerge sync
rm -rf /etc/texmf
emerge -av tetex
texmf-update


If that still doesn't work, please report in https://bugs.gentoo.org/120515

Sorry for the inconvenience.
Back to top
View user's profile Send private message
dhurt
Apprentice
Apprentice


Joined: 14 May 2003
Posts: 278
Location: Davis, CA

PostPosted: Wed Feb 08, 2006 3:24 am    Post subject: Reply with quote

niebie wrote:
Thanks, rfk, for pointing me to texmf-update! That just saved my day...

I had a different error message (latex.fmt doesn't match pdfetex.pool), then I emerged tetex again - without success. After the emerge I have also seen that message about fmtutil-sys (which didn't work either). But running texmf-update solved the problem. Maybe the message in the ebuild should be changed.

And maybe I should stop updating my system while doing important work on it. :roll:


Same, thanks for pointing me to this tool. Got my install working when reinstalling etc did not work.
_________________
"And isn't sanity really just a one-trick pony, anyway? I mean, all you get is one trick, rational thinking, but when you're good and crazy, ooh ooh ooh, the sky's the limit!" -- The Tick
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Tue Nov 14, 2006 6:41 am    Post subject: Reply with quote

Hi,

This approach didn't do the trick and I even tried unintalling and reinstalling tetex with no success. Sigh... hopefully the posting to the bugtracker will get some notice, but, as it's 'resolved', I wonder...

Alex

Nattfodd wrote:
Actually, there was a mess with tetex-3 eclass involving symlinks of some configuration files. It was reverted a few days later but if you have emerged tetex in between, this can cause a lot of trouble. The current solution consists in :

Code:

emerge sync
rm -rf /etc/texmf
emerge -av tetex
texmf-update


If that still doesn't work, please report in https://bugs.gentoo.org/120515

Sorry for the inconvenience.
Back to top
View user's profile Send private message
meteozwh
n00b
n00b


Joined: 27 May 2003
Posts: 46

PostPosted: Fri Dec 01, 2006 7:54 pm    Post subject: Reply with quote

I have the same problem.

My tetex package is 3.0_p1-r3.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum