[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#748271: marked as done ([latex-cjk-common] latex command did not work until I ran it once under superuser!?)



Your message dated Tue, 20 May 2014 12:04:59 +0900
with message-id <20140520030459.GP30691@auth.logic.tuwien.ac.at>
and subject line Re: Bug#748271: [latex-cjk-common] latex command did not work until I ran it once under superuser!?
has caused the Debian Bug report #748271,
regarding [latex-cjk-common] latex command did not work until I ran it once under superuser!?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
748271: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748271
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: latex-cjk-common
Version: 4.8.3+git20120914-2
Severity: grave

--- Please enter the report below this line. ---

I had a very strange issue.

My installation of TexLive and for that matter other TeX packages
did not run very well.
It failed to produce proper output encountering many errors
which is sometimes as simple as ptex.fmt not found, etc.
(This is the case of ptex-base, which is superceded by texlive-*
packages.)


[ I picked up latex-cjk-common for reporting this issue
since the particular
command, latex,  when it was run under superuser account
miraculously caused the command to work properly subsequently
under root and ordinary user account.]

Maybe using TESTING is not a good idea with regard to TeXlive, etc.

Anyway, after struggling to see if smaller packages could be found to work,
 I hoped that installing texlive-lang-cjk package which installs almost
1.5GB of files (including the dependency) into my computer would solve this strange problem.
(ptex-base is subsequently removed because it conflicts with texlive-lang-cjk and
friends.)

Unfortunately, installing the large group of packages referenced by texlive-lang-cjk did not cure the problem.

So here, I was stuck with a seemingly successful installation of
TeX family of packages consisting of commands, and necessary fonts, but still
commands like `latex' encountered strange errors such as latex.fmt not found, etc. all the time!

I could not produce a single .dvi file at all.

However, something changed tos evening on my PC
when I ran one TeX command (latex)
under superuser. The execution must have changed something (symlink, file/directory mode bits, or whatever)
and suddenly tex commands work much further to the point
I get proper .dvi output for test sample.
Once it succeeded to run, I could run 'latex' under an ordinary user account,
and still the command ran to completion successfully!

Something was definitely wrong.


Here is a script by script narration of what happened this evening.

Note the strange error in the following.

First, I ran as ordinary user:

env TEXINPUTS="./:EXINPUTS" latex   sigproc-sp-copy.tex

sigproc-sp-coy.tex is my input file.
The setting of TEXINPUTS has some room for improvement. I forgot to
quote the $TEXINPUTS as $${TEXINPUTS} in makefile, but it does not matter here.

This produced "LaTeX Error: File `epsfig.sty' not found".

Let us look the script recorded in Emacs shell buffer.
I changed username to protect the innocent.

username@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR$ make
:  #env TEXINPUTS="./:EXINPUTS" latex  sigproc-sp-copy.tex
env TEXINPUTS="./:EXINPUTS" latex   sigproc-sp-copy.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.
entering extended mode
(./sigproc-sp-copy.tex
LaTeX2e <2011/06/27>
Babel <3.9k> and hyphenation patterns for 11 languages loaded.
(./acm_proc_article-sp.cls

! LaTeX Error: File `epsfig.sty' not found.   <=== system-wide file
                                              not found???
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.
<read *>
        
l.49 \usepackage
                {amssymb}^^M
No pages of output.
Transcript written on sigproc-sp-copy.log.
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 1


***** COMMENT
***** However, after using apt-file epsfig.sty, I learned that
***** epsfig.sty is already installed correctly!
***** Why couldn't the latex command find it?
*****

username@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR$ grep epsfig.sty *.cls
username@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR$ apt-file search epsfig.sty
latexml: /usr/share/perl5/LaTeXML/Package/epsfig.sty.ltxml
texlive-latex-base: /usr/share/texlive/texmf-dist/tex/latex/graphics/epsfig.sty


*****
***** Since I saw the mention of "texlive-latex-base" as containing epsfig.sty, I re-installed it
***** just in case. to see if it may fix the issue of latex command's not finding
***** epsfig.sty
*****

username@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR$ su
password:

**** Sorry, I ran the following command under Japanese locale.
**** It basically said there were no packages installed/removed/upgraded.

root@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR# aptitude install texlive-latex-base
インストール・削除・更新されるパッケージがありません。
更新: 0 個、新規インストール: 0 個、削除: 0 個、保留: 43 個。
0  バイトのアーカイブを取得する必要があります。展開後に 0  バイトのディスク領域が新たに消費されます。
                                    
**** The package was not re-installed since it was obviously already
**** successfully installed.
****  Stumped I re-ran 'make', but this time under superuser account.
**** I re-ran 'make' after trying to see if changing TEXMF to include
**** the /usr/share/texlive/texmf-dist/tex/latex/ would work.  TEXMF
**** was incorrectly set, but again it was not a big deal.  Note that
**** running latex under superusers seems to have been a lucky
**** mistake. Note the creation of latex.fmt by
**** mktexfmt latex.fmt command below.

root@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR# make
:  #env TEXINPUTS="./:EXINPUTS" latex  sigproc-sp-copy.tex
env TEXMF=".:EXMF:/usr/share/texlive/texmf-dist/tex/latex/" /usr/TEXINPUTS="./:EXINPUTS" latex   sigproc-sp-copy.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.

kpathsea: Running mktexfmt latex.fmt  <==== See that it tries to create latex.fmt!
                             <==== my TEXMF was messed up on
                             the command line. So I re-run the
                             command after fixing TEXMF.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
I can't find the format file `latex.fmt'!
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 1

******* Note the running of 'make' again under superuser
        account. after TEXMF=... was removed from the command line.   ******


root@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR# make
:  #env TEXINPUTS="./:EXINPUTS" latex  sigproc-sp-copy.tex
env /usr/TEXINPUTS="./:EXINPUTS" latex   sigproc-sp-copy.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.
entering extended mode
(./sigproc-sp-copy.tex
LaTeX2e <2011/06/27>
Babel <3.9k> and hyphenation patterns for 11 languages loaded.
(./acm_proc_article-sp.cls
   <==== Note the next line. Somehow epsfig.sty suddenly was found and
        other files were read correctly.
(/usr/share/texlive/texmf-dist/tex/latex/graphics/epsfig.sty 
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/dvips.def))))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
Document Class 'acm_proc_article-sp' <22nd. April '09>. Modified by G.K.M. Tobi
n
Based in part upon document Style `acmconf' <22 May 89>. Hacked 4/91 by
shivers@cs.cmu.edu, 4/93 by theobald@cs.mcgill.ca
Excerpts were taken from (Journal Style) 'esub2acm.cls'.
****** Bugs/comments/suggestions to Gerry Murray -- murray@hq.acm.org ******
Document Class: acm_proc_article-sp 2009/04/22 - V3.2SP - based on esub2acm.sty
 <23 April 96>
(/usr/share/texlive/texmf-dist/tex/latex/base/latexsym.sty)
Using 'Abbrev' bibliography style
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/ae/t1aer.fd)))
No file sigproc-sp-copy.aux.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/share/texlive/texmf-dist/tex/latex/base/ulasy.fd)
Overfull \hbox (2.10674pt too wide) in paragraph at lines 131--131
 []\eaddfnt k.moessner@surrey.ac.uk|

Overfull \hbox (1.26794pt too wide) in paragraph at lines 139--140
\T1/aer/m/n/9 H.4 [\T1/aer/bx/n/9 Information Sys-tems Ap-pli-ca-tions\T1/aer/m
/n/9 ]: Mis-cel-la-neous;
[1] [2] [3] (./sigproc-sp-copy.aux) )
(see the transcript file for additional information)
Output written on sigproc-sp-copy.dvi (3 pages, 14536 bytes).
Transcript written on sigproc-sp-copy.log.

************* Here: Success!  So I got an output finally which I
************* should have for the last few days ! But then I notice I
************* did it under superuser account.  I had a hunch that the
************* running of latex command under superuser changed
************* something in root-owned installation directory.
************* So I tried to verify it by
************* running the command again under ordinary
************* account.

root@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR# exit
exit
username@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR$ su
password:

***** OK, before I forget.  First I had to change the ownership of
***** root-created log and other miscellaneous output files.
*****

root@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR# chown -R  username ./
root@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR# exit
exit

*** Run `make' again under ordinary user account to see if it works.
*** Below, it worked!

username@vm-debian-amd64:/home/username/Dropbox/CONFERENCE-DIR$ make
:  #env TEXINPUTS="./:EXINPUTS" latex  sigproc-sp-copy.tex
env /usr/TEXINPUTS="./:EXINPUTS" latex   sigproc-sp-copy.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.
entering extended mode
(./sigproc-sp-copy.tex
LaTeX2e <2011/06/27>
Babel <3.9k> and hyphenation patterns for 11 languages loaded.
(./acm_proc_article-sp.cls  

***
***   Originally under ordinary account (before latex was run under
***   superuser account, that is), the following file, epsfig.sty
****   was not found and
***   the command aborted, ! LaTeX Error: File `epsfig.sty' not found. 
***   This time, the command keeps on running!

(/usr/share/texlive/texmf-dist/tex/latex/graphics/epsfig.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/dvips.def))))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
Document Class 'acm_proc_article-sp' <22nd. April '09>. Modified by G.K.M. Tobi
n
Based in part upon document Style `acmconf' <22 May 89>. Hacked 4/91 by
shivers@cs.cmu.edu, 4/93 by theobald@cs.mcgill.ca
Excerpts were taken from (Journal Style) 'esub2acm.cls'.
****** Bugs/comments/suggestions to Gerry Murray -- murray@hq.acm.org ******
Document Class: acm_proc_article-sp 2009/04/22 - V3.2SP - based on esub2acm.sty
 <23 April 96>
(/usr/share/texlive/texmf-dist/tex/latex/base/latexsym.sty)
Using 'Abbrev' bibliography style
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/ae/t1aer.fd))) (./sigproc-sp-copy.aux)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/share/texlive/texmf-dist/tex/latex/base/ulasy.fd)
Overfull \hbox (2.10674pt too wide) in paragraph at lines 131--131
 []\eaddfnt k.moessner@surrey.ac.uk|

Overfull \hbox (1.26794pt too wide) in paragraph at lines 139--140
\T1/aer/m/n/9 H.4 [\T1/aer/bx/n/9 Information Sys-tems Ap-pli-ca-tions\T1/aer/m
/n/9 ]: Mis-cel-la-neous;
[1] [2] [3] (./sigproc-sp-copy.aux) )
(see the transcript file for additional information)
Output written on sigproc-sp-copy.dvi (3 pages, 14536 bytes).
Transcript written on sigproc-sp-copy.log.

****
**** OK, success under ordinary user account.
****

Here I am reporting this strange problem.

I think it is a problem, maybe, related to installation-time checking
of the installation file system.  (Maybe a symlink or something under
/usr/share, /usr/share/doc, etc.  may have interfered. I read in pTeX
document something about /usr/share/doc/texmf/ and
/usr/share/texmf/doc reversing the contents. (Or was it a font
directory?).
Some installation may have a symlink or two for TeX directories pointing to another file system to
let the big font/doc files be stored when TeX-related packages are
installed.

The following is a pure guess: Maybe such symlinks were not properly handled by installation.  Running `latex` under superuser account may have
CREATED/REMOVED/RE-LINKED such directories in-place and fix the broken
behavior (that plagued me for the last several days).  The symlinks
are in system installation directories and thus cannot be modified by
ordinary user. This is a pure-guess and may not be trusted.

Suggestion:

In any case, after this experience, I think the installers of
TeX-related packages ought to run a simple test sample file
to run a simple input file
(sample-test.tex) through the TeX processor and see if it
produces a dvi file that mathes to an expected
sampl-test-expected.dvi supplied in the package.
If the match fails, the installer should abort telling the user
that something is not quite right (this may be overlooked dependencies, i.e., missing font files, style files and class files, and misconfigured
setting, etc.).
At least such an error failure could have saved me a few days because
I would have talked to others to see why my installation failed
instead of trying to find out if I have not installled
some packages that are referenced my own input files (which were NOT), etc..

TIA


--- System information. ---
Architecture: amd64
Kernel:       Linux 3.12-1-amd64

Debian Release: jessie/sid <=== Whoa? I thought I was using Wheezy?!
  500 testing         ftp.jp.debian.org
  500 stable-updates  ftp.jp.debian.org
  500 stable          security.debian.org
  500 stable          ftp.jp.debian.org
  500 sid             linux.dropbox.com

--- Package information. ---
Depends                         (Version) | Installed
=========================================-+-===================
texlive-latex-base                        | 2013.20140408-1
texlive-font-utils     (>= 2007.dfsg.2-1) | 2013.20140408-1
tex-common                         (>= 4) | 4.04
dpkg                         (>= 1.14.18) | 1.17.9
libc6                            (>= 2.7) |
libkpathsea6                              |


Package's Recommends field is empty.

Package's Suggests field is empty.

--- End Message ---
--- Begin Message ---
Hi

> As far as my needs for tex commands, the system is fine (it healed
> mysteriously when latex was run under root, maybe some missing .fmt files
> were created at that instant under root and
> copied into the installation directory.)

Since we have no way to check now what has really happened without
a time machine, I close this bug.

In case you see similar cases again, please make 100% sure to 
send us the output of the apt-get update/install run, 
together with eventually mentioned files ...

There should be messages like
	baba failed, a log file was created in
	/tmp/foobar...
	please send this together with ...
In this case please make sure to check these files and send
them.

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------

--- End Message ---

Reply to: