LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1183|回复: 2

请教SK11下的latex问题!

[复制链接]
发表于 2007-7-25 12:01:29 | 显示全部楼层 |阅读模式
偶在SK11下运行latex时碰到下面的问题:
有人碰到过么?

#log list below:
--------------------------------------------------------------------------------------
pdflatex refman.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./refman.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/book.cls
Document Class: book 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/bk10.clo))
(/usr/share/texmf/tex/latex/a4wide/a4wide.sty
(/usr/share/texmf/tex/latex/ntgclass/a4.sty))
(/usr/share/texmf/tex/latex/base/makeidx.sty)
(/usr/share/texmf/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/pdftex.def)))
(/usr/share/texmf/tex/latex/tools/multicol.sty)
(/usr/share/texmf/tex/latex/float/float.sty)
(/usr/share/texmf/tex/latex/base/textcomp.sty
(/usr/share/texmf/tex/latex/base/ts1enc.def))
(/usr/share/texmf/tex/latex/base/alltt.sty)
(/usr/share/texmf/tex/latex/psnfss/times.sty)
(/usr/share/texmf/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf/tex/latex/hyperref/hyperref.cfg)
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf/tex/latex/hyperref/backref.sty)
(/usr/share/texmf/tex/latex/url/url.sty))
*hyperref using driver hpdftex*
(/usr/share/texmf/tex/latex/hyperref/hpdftex.def
(/usr/share/texmf/tex/latex/psnfss/pifont.sty
(/usr/share/texmf/tex/latex/psnfss/upzd.fd)
(/usr/share/texmf/tex/latex/psnfss/upsy.fd))) (./doxygen.sty
(/usr/share/texmf/tex/latex/tools/calc.sty)
(/usr/share/texmf/tex/latex/tools/array.sty))
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/base/t1enc.def)kpathsea: Running mktextfm ecrm1000
mkdir: cannot create directory `././var/lib/texmf': Permission denied
mktextfm: mktexdir /var/lib/texmf/tfm/jknappen/ec failed.
kpathsea: Appending font creation commands to missfont.log.

! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not fou
nd.
<to be read again>
                   relax
l.100 \fontencoding\encodingdefault\selectfont
                                             
?
发表于 2007-7-25 16:27:36 | 显示全部楼层
Please forgive my English writing. I cannot input Chinese at the moment. I assumed that this is your first time to run LaTeX in Slackware 11.0. Welcome!
Post by fridman
偶在SK11下运行latex时碰到下面的问题:
有人碰到过么?

mkdir: cannot create directory `././var/lib/texmf': Permission denied
mktextfm: mktexdir /var/lib/texmf/tfm/jknappen/ec failed.
This is a bug in Slackware 11.0. /var/lib/texmf shoud be writable for all users. To fix it simply run as root
  1. # mkdir -p /var/lib/texmf
  2. # chmod a+w /var/lib/texmf
复制代码
The bug has been fixed in Slackware 12.0.

Reference:

http://www.slackware.com/changelog/current.php?cpu=i386
t/tetex-3.0-i486-5.tgz: An often-reported bug in the tetex package has been
       the missing /var/lib/texmf directory
. Some time ago, this was removed for
       security reasons, since it could possibly be used to overwrite system files
       by symlinking to them from "font names". The directory, to be useful, had
       to be world-writable, or at least writable to a tetex group.
       Then, Mikhail Ulanov suggested setting VARTEXFONTS = $TEXMFVAR, which
       causes fonts to be built in $HOME/.texmf-var instead. Now TeX is working
       again for non-root users. Thanks very much Mikhail! :-)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-26 11:38:15 | 显示全部楼层
Post by lchxr
Please forgive my English writing. I cannot input Chinese at the moment. I assumed that this is your first time to run LaTeX in Slackware 11.0. Welcome!


This is a bug in Slackware 11.0. /var/lib/texmf shoud be writable for all users. To fix it simply run as root
  1. # mkdir -p /var/lib/texmf
  2. # chmod a+w /var/lib/texmf
复制代码
The bug has been fixed in Slackware 12.0.

Reference:

http://www.slackware.com/changelog/current.php?cpu=i386
已经解决~ 谢谢lchxr.^^
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表