bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] preview-latex 0.9.1 compilation error


From: David Kastrup
Subject: Re: [Bug-AUCTeX] preview-latex 0.9.1 compilation error
Date: Wed, 08 Feb 2006 11:18:08 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ulrich Meyle <address@hidden> writes:

> I had problems with latex, so I decided to re-compile it again.
>
> During compilation, I got an error message which you'll find
> below. The error message told me to send the config.log-file. I
> attached it.
> I added my make-config.
>
> Thanks for any help!
>
> PS: I postet this yesterday in the gentoo-bugzilla, too.

Probably a good idea: after all, the problem can be avoided with
proper options to configure.

> This is what I got:

[Cutting parts out.]

> hek216 ulrich # emerge preview-latex
> Calculating dependencies ...done!

>>>> Compiling source in 
>>>> /var/tmp/portage/preview-latex-0.9.1/work/preview-latex-0.9.1 ...
> ./configure --prefix=/usr --host=i386-pc-linux-gnu --mandir=/usr/share/man
> --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
> --localstatedir=/var/lib --with-emacs
> --with-lispdir=/var/tmp/portage/preview-latex-0.9.1/image//usr/share/emacs/site-lisp/preview-latex

This "lispdir" looks bad: paths should be just the paths used at
runtime.  There is support of the $(DESTDIR) variable for relocated
building.

> Startup file relative directories:
> checking where the package lisp files go... preview
> checking where the icon files go... ${packagelispdir}/images
>
> checking Where the info files go... /usr/share/info
> checking for the location of AUCTeX's tex-site.el... 
> /usr/share/emacs/site-lisp
> checking for gs... gs
> checking for latex... /usr/bin/latex
> checking for pdflatex... /usr/bin/pdflatex
> checking for tex... /usr/bin/tex
> checking for texhash... /usr/bin/texhash
> checking for prefix from kpsepath... "/usr"
> checking for TDS-compliant directory... no
> checking for TeX directory hierarchy... no
> checking for TeX input directory... no
> configure: error: Cannot find the texmf directory!
> Please use --with-texmf-dir=dir to specify where the preview tex files go

Hmmm.  A bit strange.  The condition mostly is that a directory
hierarchy be TDS-compliant and under prefix.

> hek216 ulrich # emerge info

[...]

> configure:2441: checking for prefix from kpsepath
> /usr/bin/emacs -batch -no-site-file -eval (let* ((cmd(pop
> command-line-args-left))(x (condition-case nil (let*
>     ((prefix (directory-file-name (file-name-directory (executable-find 
> cmd))))
>      (parent (directory-file-name (file-name-directory prefix))))
>     (if (string= (file-name-nondirectory prefix) "bin")
>         (setq prefix parent)
>       (if (string= (file-name-nondirectory parent) "bin")
>          (setq prefix (directory-file-name (file-name-directory parent)))))
>     prefix) (error NONE)))) (write-region (if (stringp x) x (prin1-to-string
> x)) nil "./conftest-11206")) kpsepath
> Wrote
> /var/tmp/portage/preview-latex-0.9.1/work/preview-latex-0.9.1/conftest-11206
> => dummy
> configure:2465: result: "/usr"

Ok.

> configure:2468: checking for TDS-compliant directory
> /usr/bin/emacs -batch -no-site-file -eval (let* ((prefix(pop
> command-line-args-left)) (expanded(pop command-line-args-left)) 
> (pathoutput(pop
> command-line-args-left))(x (catch 22
>        (let (reldir (dirs (mapcar (lambda(x)
>               (and (string-match "\\`!*\\(.*\\)/tex/latex//+\\'" x)
>                    (match-string 1 x)))
>       (append (split-string pathoutput ";")
>              (split-string pathoutput ":")))))
>           (dolist (name (list nil) "NONE")
>             (dolist (dir dirs)
>               (when (and dir
>                          (setq dir (directory-file-name dir))
>                          (file-name-absolute-p dir)
>                          (file-directory-p dir)
>                          (not (string-match "\\`\\.\\."
>                            (setq reldir (file-relative-name dir expanded))))
>                          (let ((name name) (dir dir))
>                            (while (and dir name
>                                        (string= (file-name-nondirectory dir)
>                                                 (file-name-nondirectory name))
>                               (setq dir (file-name-directory dir)
>                                    name (file-name-directory name))
>                               (if (and dir name)
>                                  (setq dir (directory-file-name dir)
>                                       name (directory-file-name name)))))
>                             (null name))
>                    (throw 22
>                       (if (string= reldir ".") (directory-file-name prefix)
>                         (concat (file-name-as-directory prefix)
>                                 reldir))))))))))) (write-region (if (stringp 
> x)
> x (prin1-to-string x)) nil "./conftest-11206")) ${datadir}/texmf
> /usr/share/texmf
> .:/var/lib/texmf/tex/latex//:/var/lib/texmf/tex/generic//:/var/lib/texmf/tex///

Uh WHAT?  What is the output of

  kpsepath -n latex tex

on your system?  This looks wrong or misconfigured.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]