AUCTeX configure blocked by memory of old TL2011 installation

View: New views
6 Messages — Rating Filter:   Alert me  

AUCTeX configure blocked by memory of old TL2011 installation

by Haines :: Rate this Message:

| View Threaded | Show Only this Message

I'm running Debian Squeeze, emacs-23.2, TL2011, auctex-11.85-1.

In removing an old intallation of TeXLive to reinstall it in a new
location, user's home directory, I made the sad mistake of removing it
by deleting files and directories rather than use tlmgr.

The new TL2011 works fine from command line, but AUCTeX ceased to
function. I purged it and reinstalled it. However, its present status
is "partially configured." The installation returned this:

  ...
  Setting up auctex (11.85-1) ...
  install/auctex: Setting up for emacs23 (log file:
    /usr/share/emacs23/site-lisp/auctex//CompilationLog)...
    emacs-package-install:
    /usr/lib/emacsen-common/packages/install/auctex emacs23 emacs23
    failed at /usr/lib/emacsen-common/emacs-package-install line 30,
    <TSORT> line 1.
  dpkg: error processing auctex (--configure):
   subprocess installed post-installation script returned error exit
        status 1
  configured to not write apport reports
             Errors were encountered while processing:
   auctex
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  A package failed to install.  Trying to recover:
  Setting up auctex (11.85-1) ...
  install/auctex: Setting up for emacs23 (log file:
        /usr/share/emacs23/site-lisp/auctex//CompilationLog)...
        emacs-package-install:
        /usr/lib/emacsen-common/packages/install/auctex emacs23
        emacs23 failed at /usr/lib/emacsen-common/emacs-package-install
        line 30, <TSORT> line 1.
  dpkg: error processing auctex (--configure):
   subprocess installed post-installation script returned error exit
        status 1
  Errors were encountered while processing: auctex

The CompilationLog has:

  ...
  checking what file to use for auctex startup...
    /usr/share/emacs23/site-lisp//auctex.el
  ...
  config.status: creating auctex.el
  === configuring in preview
    (/usr/share/emacs/site-lisp/auctex/preview)
  configure: running /bin/bash ./configure '--prefix=/usr/'
    '--disable-build-dir-test' 'GS=gs' 'LATEX=/bin/true' 'P$
  configure: WARNING: unrecognized options: --with-auto-dir
  checking whether make sets $(MAKE)... yes
  ...
  checking for latex... /bin/true
  checking for pdflatex... /bin/true
  sed: can't read latex/preview.dtx: No such file or directory
  checking for tex... /bin/true
  configure: error: --with-texmf-dir="/usr/share/texmf/":
        Directory does not exist
  configure: error: ./configure failed for preview
  checking for make... make
  ...
  checking for latex... /bin/true
  checking for pdflatex... /bin/true
  sed: can't read latex/preview.dtx: No such file or directory
  checking for tex... /bin/true
  configure: error: --with-texmf-dir="/usr/share/texmf/": Directory
        does not exist
  configure: error: ./configure failed for preview


It seems AUCTeX wants to use the old location of TeXLive. I have a
~/texlive/2011/texmf, but no /usr/share/texmf. In /usr/share/ there is
only tex-common, texinfo, texlive base, texlive-bin, texmf-texlive,
texpower. How do I tell AUCTeX the present location of texmf?

Haines Brown



_______________________________________________
auctex mailing list
auctex@...
https://lists.gnu.org/mailman/listinfo/auctex

Parent Message unknown Re: AUCTeX configure blocked by memory of old TL2011 installation

by Haines :: Rate this Message:

| View Threaded | Show Only this Message

On Sat, May 05, 2012 at 11:53:57PM +1000, Jeffrey Spencer wrote:
> Can you run ./configure --prefix=$HOME ?? I reckon that should do the
> trick. Not sure on Debian but if trying to install from the package manager
> I believe it will always try in /usr/local first even if your PATH is set
> to the user's home directory prior to system directories.

Jeff, I tried that, but it can't be done as user (permission denied), and if
done as root, the value of $HOME is /root. If done with $ sudo, the value of
$HOME is user's home, but I get:

  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... 2008-02-10
  checking for release in ChangeLog... 11.85
  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... configure: error: Build directory inside
        load-path!  Aborting!

There was a Debian bug/AUCTeX design issue back in ca. 2004-6 that
produced this error. The AUCTeX developer (Davide Salvetti) noted that
in Debian AUCTeX must be installed in a directory in the load path
while AUCTeX elisp byte-compiled objects are required to be installed
in another (emacsen flavor dependent) directory also contained in
"load-path", though of course this last occurring first of the other.
I get the impression he fixed this problem in the debian AUCTeX. I'm
afraid I don't understand any of this.

> On Sat, May 5, 2012 at 11:34 PM, Haines Brown <haines@...> wrote:

> > The new TL2011 works fine from command line, but AUCTeX ceased to
> > function. I purged it and reinstalled it. However, its present status
> > is "partially configured." The installation returned this:

> > The CompilationLog has:

> >  ...
> >  checking for pdflatex... /bin/true
> >  sed: can't read latex/preview.dtx: No such file or directory
> >  checking for tex... /bin/true
> >  configure: error: --with-texmf-dir="/usr/share/texmf/":
> >        Directory does not exist
> >  configure: error: ./configure failed for preview
> >
> > It seems AUCTeX wants to use the old location of TeXLive. I have a
> > ~/texlive/2011/texmf, but no /usr/share/texmf. In /usr/share/ there is
> > only tex-common, texinfo, texlive base, texlive-bin, texmf-texlive,
> > texpower. How do I tell AUCTeX the present location of texmf?

Haines Brown

_______________________________________________
auctex mailing list
auctex@...
https://lists.gnu.org/mailman/listinfo/auctex

Re: AUCTeX configure blocked by memory of old TL2011 installation

by Haines :: Rate this Message:

| View Threaded | Show Only this Message

Jeff, sorry to follow up on myself, but I just realized that I have
both /usr/bin/emacs and /usr/bin/emacs23. Not sure if this is the
source of the problem and, if so, how to fix it.

Haines

_______________________________________________
auctex mailing list
auctex@...
https://lists.gnu.org/mailman/listinfo/auctex

Re: AUCTeX configure blocked by memory of old TL2011 installation

by Davide G. M. Salvetti :: Rate this Message:

| View Threaded | Show Only this Message

If I understood correctly what you did, which I'm not at all sure I did,
you installed TeXLive under your home directory by hand; you didn't use
the Debian TeXLive packages.

If this is the case, be aware that the Debian AUCTeX package won't work
for you, as it is designed to work with the Debian TeXLive packages, not
with hand made TeXLive installations.  If this is the case, you should
install AUCTeX by hand as well (just follow the instructions, after
purging the Debian package).

--
Regards, Davide
(Debian AUCTeX package maintainer)


_______________________________________________
auctex mailing list
auctex@...
https://lists.gnu.org/mailman/listinfo/auctex

Re: AUCTeX configure blocked by memory of old TL2011 installation

by Haines :: Rate this Message:

| View Threaded | Show Only this Message

On Sun, May 06, 2012 at 07:46:36PM +0200, Davide G. M. Salvetti wrote:
> If I understood correctly what you did, which I'm not at all sure I did,
> you installed TeXLive under your home directory by hand; you didn't use
> the Debian TeXLive packages.
>
> If this is the case, be aware that the Debian AUCTeX package won't work
> for you, as it is designed to work with the Debian TeXLive packages, not
> with hand made TeXLive installations.  If this is the case, you should
> install AUCTeX by hand as well (just follow the instructions, after
> purging the Debian package).

Aha! I believe you have spotted the problem. I installed TL2011 from
CTAN rather than the debian package because the latter is only TL2010.
And I did install AUCTeX from the debian archive.

I just downloaded the XeTeX version of AUCTeX from the website and
asssume that installation instructions are included in the tarball.
I assume that using it will solve the problem.

Thank you.

Haines Brown

_______________________________________________
auctex mailing list
auctex@...
https://lists.gnu.org/mailman/listinfo/auctex

Re: AUCTeX configure blocked by memory of old TL2011 installation

by Haines :: Rate this Message:

| View Threaded | Show Only this Message

On Mon, May 07, 2012 at 06:21:14AM -0400, Haines Brown wrote:
> On Sun, May 06, 2012 at 07:46:36PM +0200, Davide G. M. Salvetti wrote:

> > If this is the case, be aware that the Debian AUCTeX package won't work
> > for you, as it is designed to work with the Debian TeXLive packages, not
> > with hand made TeXLive installations.  If this is the case, you should
> > install AUCTeX by hand as well (just follow the instructions, after
> > purging the Debian package).
>
> Aha! I believe you have spotted the problem. I installed TL2011 from
> CTAN rather than the debian package because the latter is only TL2010.
> And I did install AUCTeX from the debian archive.
>
> I just downloaded the XeTeX version of AUCTeX from the website and
> asssume that installation instructions are included in the tarball.
> I assume that using it will solve the problem.

I tested the result using latex, xelatex and biber. Everything went well.

The only issue remaining is that now that I'm using xelatex, my output defaults
to PDF rather than DVI, and so AUCTeX needs to be told to make xpdf rather than xdvi
its default viewer. I searched on line and fiddled with some code in my .emacs init
file, but so far no luck.

Haines Brown

_______________________________________________
auctex mailing list
auctex@...
https://lists.gnu.org/mailman/listinfo/auctex