Linux HOWTOs

About | Home | Search


ERROR: Slooooow dooooown... this page load was delayed.

HOWTO: lyx
Description: Document processor
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# LyX
# ===
# FYI, I had trouble building LyX 1.3.5 and .6 with gcc 3.4.4 but did
# not have any trouble with 1.3.7 and gcc 3.4.5  I built 1.4.2 with gcc
# 4.0.3

# Prerequisites (for both versions, most of them optional):
# gawk
# m4
# grep
# aiksaurus
# pspell
# XFree86 or X.org
# Either XForms and libXpm (part of X) or Qt
# libjpeg
# libiconv
# bison
# tex (optional; Slackware includes a 'tetex' package)
# imagemagick
# gs
# gv (Slackware includes a 'gv' package)
# Adobe Acrobat Reader
# mozilla or netscape
# groff
# ispell
# KDE's kdeprintfax or kdesendfax
# sgml-tools (Slackware includes a 'sgml-tools' package)
# lpr or cups
# transfig's fig2dev (Slackware includes a 'transfig' package)
# libtiff
# perl
# Python (to import older LyX files)


# LyX 1.4.2
# =========
cd
test -f installed/lyx-1.4.2.tar.bz2 && mv installed/lyx-1.4.2.tar.bz2 .
test ! -f lyx-1.4.2.tar.bz2 &&
 wget ftp://ftp.lyx.org/pub/lyx/stable/lyx-1.4.2.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "lyx-*" -exec rm -r {} \;
tar xjvf ~/lyx-1.4.2.tar.bz2
cd lyx-1.4.2
test $UID = 0 && chown -R root:root .

# Add --with-frontend=qt to configure if you want to use the Qt version
# instead of the XForms version.  There's a gtk one too, but it's
# experimental.

./configure --disable-nls --with-frontend=qt
make
su -c "make install-strip"
cd
mkdir -p -m 0700 installed
rm -f installed/lyx-*.tar.*
mv lyx-1.4.2.tar.bz2 installed/


# If you ever want to uninstall LyX, this should do it:
cd
su
test -d src/lyx-* && ( cd src/lyx-* ; make uninstall )
( cd /usr/local/bin ; rm -f lyx lyxclient tex2lyx )
( cd /usr/local/man/man1 ; rm -f lyx.1 lyxclient.1 tex2lyx.1 )
test -d /usr/local/share/lyx && rm -r /usr/local/share/lyx
exit
find ~/src -maxdepth 1 -type d -name "lyx-*" -exec rm -r {} \;
rm -f ~/installed/lyx-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>