Hi,

Thanks for your answer and sorry for the late feedback.

In fact I still had the same problem even with adding TeX Live to my PATH.

$ echo $PATH
>
> /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/texlive/2012/bin/x86_64-linux
>

$ sudo ./configure
> [sudo] password for andrea:
> checking for make... make
> checking whether make sets $(MAKE)... yes
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for date in ChangeLog... 2010-02-21
> checking for release in ChangeLog... 11.86
> checking for emacs... /usr/bin/emacs
> checking if /usr/bin/emacs is XEmacs... no
> checking for Emacs prefix... "/usr"
> checking if Emacs is recent enough... yes
> checking for MULE support... yes
> checking if build directory is valid... yes
> checking where lisp files go... ${datadir}/emacs/site-lisp
> checking what file to use for auctex startup...
> ${datadir}/emacs/site-lisp/auctex.el
> checking where the package lisp files go...
> ${datadir}/emacs/site-lisp/auctex
> checking where the data files go... ${datadir}/emacs/site-lisp/auctex
> checking where the info files go... ${datarootdir}/info
> checking where automatically generated global style hooks go...
> ${localstatedir}/auctex
> checking for tex... /usr/bin/tex
> checking for pdftex... /usr/bin/pdftex
> checking for dvips... /usr/bin/dvips
> checking for perl... /usr/bin/perl
> checking for makeinfo... :
> checking for texi2html... :
> checking for texi2dvi... :
> checking for texi2pdf... :
> checking for install-info... /usr/sbin/install-info
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating tex-site.el.out
> config.status: creating doc/Makefile
> config.status: creating auctex.el
> === configuring in preview (/usr/local/src/auctex/auctex-11.86/preview)
> configure: running /bin/bash ./configure --disable-option-checking
> '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
> checking whether make sets $(MAKE)... yes
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for /usr/bin/emacs... /usr/bin/emacs
> checking if /usr/bin/emacs is XEmacs... no
> checking for Emacs prefix... "/usr"
> checking if Emacs is recent enough... yes
> checking if build directory is valid... yes
> checking where lisp files go... ${datadir}/emacs/site-lisp
> checking what file to use for preview startup...
> ${datadir}/emacs/site-lisp/preview-latex.el
> checking where the package lisp files go...
> ${datadir}/emacs/site-lisp/auctex
> checking where the data files go... ${datadir}/emacs/site-lisp/auctex
> checking for the location of AUCTeX's tex-site.el... ..
> checking for gs... gs
> checking for latex... NONE
> configure: error: LaTeX not found, aborting!
> You must install LaTeX for preview to work.
> configure: error: ./configure failed for preview
>


About symlinks, I didn't explicitly ask TeX Live to install this way, I
just ran the default install-tl Perl script.

Anyway I finally solved the problem using the equivs package as explained
here:
http://blogs.ethz.ch/ubuntu/2011/03/14/tex-live-2010-installation/

- Andrea



2012/7/30 Axel E. Retif <[email protected]>

> 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
>
>
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to