auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] configure: error: LaTeX not found


From: Axel E. Retif
Subject: Re: [AUCTeX] configure: error: LaTeX not found
Date: Sun, 29 Jul 2012 22:52:43 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0

On 07/29/2012 11:34 AM, Andrea PIERRÉ wrote:


I'm trying to install AucTeX from source but I remain stuck at the
./configure step...

I have basically the same configuration as yours ---Ubuntu 12.04, Emacs 23.3 from distro repository, TeXLive 2012 and AUCTeX from CVS.

(The difference is that I also have TeXLive 2009 from Ubuntu ---Debian--- repository to satisfy dependencies and Emacs 24.1 from gnu.org, which I compiled in $HOME/bin. In both Emacs ---23 and 24--- I installed AUCTeX.)

Now ---from what I see here

[...]
    checking for tex... /usr/bin/tex
    checking for pdftex... /usr/bin/pdftex
    checking for dvips... /usr/bin/dvips

when you installed TeXLive 2012 you asked it to install symlinks in /usr/bin, which I don't do and I think is in general not a good practice. But anyway, the strange thing is that LaTeX is not found:

[...]
    checking for latex... NONE
    configure: error: LaTeX not found, aborting!

(it is the configuration of preview-latex that checks for LaTeX); and even stranger that the command line does indeed find LaTeX:

[...]
Which I don't understand because LaTeX seems to be working normally, for
example when I run latex sample2e.tex, I get:

    This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)

As I *prepend* TeXLive 2012 to my PATH (I don't use symlinks in /usr/bin), the config.log of AUCTeX has, for example,

    > configure:2841: checking for pdftex
    > configure:2859: found /usr/local/texlive/2012/bin/x86_64-linux/pdftex

and the config.log of preview-latex

    > configure:2612: checking for latex
    > configure:2630: found /usr/local/texlive/2012/bin/x86_64-linux/latex

So, what I think you should do is *prepend* /usr/local/texlive/2012/bin/<your-arch>-linux to your $PATH. I do it in /etc/environment:

PATH="/usr/local/texlive/2012/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

with the “disadvantage” that I have to `` sudo su '' to use tlmgr to update. The other way is to put TL 2012 path in your ~.bashrc, as suggested in Jim's link.

You have to log out or restart once you have set TL 2012 path as desired.

The equivs trick is to satisfy dependencies for packages (e.g, Kile) installed via apt-get or Synaptic, but it's not needed to install AUCTeX from CVS.


Best

Axel





reply via email to

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