Due to Alan, Julien and others I finally got the installation of LyX 2 done. 
Thanks.

I was using Debian sid under Linux.

There were several hurdles (at least for me) I had to jump over.

###Texlive####
For the installation of texlive I used the description of Rolf Nipraschk 
(Dante 2/2009 pg 57ff) and the DVD "TeX Collection" 2009 which contains the 
TexLive distribution.
It boils down to

cd /media/TeXCol2009/texlive (or adjust path)
./install-tl
D
2
instead of the shown default path 
/usr/local/texlive/texmf-local
enter
/usr/local/share/texmf

R (back to start menu)
I  (begin of installation)

Alternatively one can install texlive via the internet

cd /tmp
wget http://mirror.ctan.org/systems/texlive/tlnet/2009/install-tl-unx.tar.gz

and start the installation prg:

cd install-tl
./install.tl

can take 1-2 hours; if net connection broken, automatic continuation after a 
new trial

remove install programms:
cd ..
rm -r install-tl-unx.tar.gz install-tl

Setting the pathes after installation:
create new file /etc/profile.d/zzz-texlive.sh
(or, as I did, since debian has  /etc/profile only, I added the following 
lines to the end of the profile file)
with the following lines:

#for Texlive 
export PATH=/usr/local/texlive/2009/bin/i386-linux:$PATH
export MANPATH=/usr/local/texlive/2009/texmf/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2009/texmf/doc/info:$INFOPATH
unset TEXINPUTS
unset TEXMFCONFIG
(the last two lines ensure the use of the texlive pathes and not the one of an 
old tex installation)

where i386-linux:$PATH in the first line was according to the proposal of 
Nipraschk 
export PATH=/usr/local/texlive/2009/bin/´uname -i´-linux:$PATH
or, as he corrected in the next edition of Dante:
export PATH=/usr/local/texlive/2009/bin/$´uname -m | sed -e 
´s/i.86/i386/)-linux:$PATH

briefly: you have to tell for the path the Linux/unix variant you are using

As an alternative, the pathes can be given also in a local 
~/.profile 
or
~/.bashrc
file, e.g. if you have no root access

In this way the OS system finds the newly installed prgs 

I did furthermore a texhash as user and as root. Not sure its necessary.

You can test after restarting your Linux system by

which tex
should give
/usr/local/texlive/2009/bin/x86-64-linux/tex

and
kpsewhich article.cls
should give
/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls

might be worth to wait for the new texlive 2010 or update to it via (as root)
tlmgr option location http:/mirror.ctan.org/systems/texlive/tlnet/2010
tlmgr update bin-texlive texlive.infra
tlmgr update --all
with
getnonfreefonts-sys --all (as root) one gets fonts which are not part of the 
texlive 

###lyx20###
I used the instructions of Julien Rioux (Mail this list of 05.07.2010), but 
with stow.

My debian (I used a minimal version for installing it) did not contain some 
prgs needed such as qt4 and qt4-devel and some libs. This turned up during 
the steps. 
build-dep is in build-essentials in the debian synaptic manager
stow 
automake
autoconf
autogen

The steps:
(root or user) 
1 - 
svn co svn://svn.lyx.org/lyx/lyx-devel/branches/TRUNK lyx20
2- 
cd lyx20
3-
./autogen.sh
4-
./configure --with-version-suffix=20 --enable-build-type=release
5-
make (takes quite some time)
6-
(as root or sudo)
make install prefix=/usr/local/stow/lyx20

###sudo###
I did not have sudo installed. One has to use visudo (as root) to edit the 
file sudowers and add at the end for not needing the password
wolfgang ALL=NOPASSWD: ALL
where wolfgang is the user

I have, however, used root so far, not sudo

Thanks again who helped me.

Wolfgang

Reply via email to