auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Unprivileged install


From: Philipp Haselwarter
Subject: [AUCTeX] Unprivileged install
Date: Wed, 05 Oct 2011 06:04:44 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Hi,

I'm trying to install auctex as unprivileged user but can't quite get
the preview feature to work. For testing, I downloaded the auctex-11.86
tarball, extracted it and ran

./configure --prefix=/tmp/auctex/
make && make install

which fails with

/bin/install: cannot create regular file 
`/usr/share/emacs/site-lisp/tex-site.el: Permission denied


So I changed the parameters to

./configure --prefix=/tmp/auctex --with-texmf-dir=/tmp/auctex/tex 
--with-lispdir=/tmp/auctex/elisp

which fails with

configure: error: --with-texmf-dir="/tmp/auctex/tex": Directory does not exist
configure: error: ./configure failed for preview


Finally,

mkdir -p /tmp/auctex-install/tex
./configure --prefix=/tmp/auctex --with-texmf-dir=/tmp/auctex/tex 
--with-lispdir=/tmp/auctex/elisp
make && make install

which now succeeds. When I start emacs (GNU Emacs 24.0.90.1), evaluate

(push "/tmp/auctex/elisp" load-path)
(load "tex-site.el" nil t t)
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)

I open circ.tex and run preview-buffer I get the following backtrace



Running `Preview-LaTeX' on `circ' with ``latex -ini -interaction=nonstopmode 
"&latex" prv_circ.ini   
"\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}"
 "\input" circ.tex''
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2012/dev/Arch Linux) 
(INITEX)
 restricted \write18 enabled.
entering extended mode
(./prv_circ.ini
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
 icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
 lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/usr/share/texmf-dist/tex/latex/carlisle/mylatex.ltx)
(/usr/share/texmf-dist/tex/latex/tools/.tex File ignored))
No auxiliary output files.

(./circ.tex (/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texmf-dist/tex/generic/babel/germanb.ldf
(/usr/share/texmf-dist/tex/generic/babel/babel.def)))
(/usr/share/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texmf-dist/tex/latex/base/t1enc.def))
(/usr/share/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texmf-dist/tex/latex/base/latin1.def))

! LaTeX Error: File `preview.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
         
l.6 \newbox
           \chaos^^M
No pages of output.
Transcript written on prv_circ.log.

Preview-LaTeX exited abnormally with code 1 at Wed Oct  5 05:51:30
Running `Preview-LaTeX' on `_region_' with ``latex  
"\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}"
 "\input" _region_.tex''
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2012/dev/Arch Linux)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
 icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
 lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.

No auxiliary output files.

(./_region_.tex  !name(circ.tex)
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texmf-dist/tex/generic/babel/germanb.ldf
(/usr/share/texmf-dist/tex/generic/babel/babel.def)))
(/usr/share/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texmf-dist/tex/latex/base/t1enc.def))
(/usr/share/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texmf-dist/tex/latex/base/latin1.def))

! LaTeX Error: File `preview.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
         
l.6 \newbox
           \chaos^^M
No pages of output.
Transcript written on _region_.log.

Preview-LaTeX exited as expected with code 1 at Wed Oct  5 05:51:30
LaTeX: LaTeX found no preview images

I also tried replacing --with-texmf-dir=/tmp/auctex/tex by
--without-texmf-dir which results in the following backtrace:

Attachment: backtrace2.txt.gz
Description: Zip archive


The problem does not seem to stem from emacs, because when I install
auctex through the package manager (pacman/archlinux) everything works
just fine. The package uses /usr as prefix, but I'd need this to work on
machines where I can't write to /usr.

I guess there's some problem with how texlive sees (or rather does not
see) the the auctex/latex directory.


thanks for ideas how to solve this,

-- 
Philipp Haselwarter

reply via email to

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