Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

CompileFromSVN

<< | Page list | >>

Notes on compiling LyX from Subversion

1.  Log for compiling lyx-devel on RHEL4

What I did in order to be able to compile LyX from SVN.

The machine is RHEL release 4 (update 5).

  • Checking out LyX from SVN to /nobackup/chr/lyx-devel/
    cd /nobackup/chr
    svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel
    
Note that if you wish to commit, you should use the following command instead:
cd /nobackup/chr
svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel
  • Reading the file INSTALL
    • Checking that I have a useable version of automake
      automake --version
      I have 1.9.2 (>= 1.5), ok.
    • Checking that I have a useable version of autoconf
      autoconf --version
      I have 2.59 (>= 2.52), ok
    • Checking that I have a useable version of gettext
      gettext --version
      I have 0.14.1 (>= 0.12), ok
    Side note: I have gcc version 3.4.6
    • Running ./autogen.sh in .../lyx-devel/
    • Running ./configure in .../lyx-devel/
      ./configure --prefix=/nobackup/chr
      where I intend to install it under /nobackup/chr/ rather than /usr/local/.

Sheesh, I get the error: qt 4 library not found. See separate section on installing QT 4 below.

  • Running ./configure once more, after installing Qt 4.
    ./configure --prefix=/nobackup/chr --with-qt4-dir=/nobackup/chr
  • Making 'LyX'
    make

Wait a long time... started at 15:27. Make ended before 16:07.

2.  Installing QT4

  • Read http://trolltech.com/developer/downloads/qt/x11
  • Retrieved Qt 4.3.1 using
    wget 'http://ftp.silug.org/mirrors/ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.1.tar.gz'
  • Extracted it
    tar xzf qt-x11-opensource-src-4.3.1.tar.gz
  • Configure
    cd qt-x11-opensource-src-4.3.1
    ./configure -prefix /nobackup/chr
    
    and accept the license.
Make
gmake
Sigh... takes a long time.
Install
gmake install
Installs to /nobackup/chr/
Note that someone changed 'gmake' and 'gmake install' to 'make' and 'make install' without commenting, maybe indicating that that was what worked for him.

3.  Log for compiling on Ubuntu (6?)

  • svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel
  • Checking for 'automake' etc, someone recommended doing
    sudo apt-get install libtool
    but that didn't help. Trying
    sudo apt-get install automake

Sigh... it gives me a too recent version of automake. Giving up on this.

4.  Log for building LyX on Ubuntu (7.04)

This is with a almost fresh installation of Ubuntu 7.04. The instructions below should hopefully work, but were not verified on a completely fresh system. (These instructions worked for me on Ubuntu 8.04 also).

  • Install packages that will be needed
sudo apt-get install build-essential libqt4-dev gettext
sudo apt-get install libc6-dev  # This may already have been installed
sudo apt-get install automake   # This may already have been installed
  • mkdir -p ~/lyx; cd ~/lyx; 
    svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel
    cd ~/lyx/lyx-devel; ./autogen.sh
    mkdir -p ~/lyx/build; cd ~/lyx/build; ../lyx-devel/configure
    make
    

4.1  Build times

revision 20759

  • make
real    22m24.971s
user    20m27.441s
sys     1m35.558s
  • make -j 2
real    12m4.663s
user    20m36.377s
sys     1m32.110s
  • make -j 4
real    11m47.978s
user    20m48.434s
sys     1m32.278s

5.  Log for building LyX on Ubuntu (8.10)

This is with a almost fresh installation of Ubuntu 8.10.

  • Install packages that will be needed
sudo apt-get install build-essential subversion libqt4-dev gettext automake
  • mkdir -p ~/lyx; cd ~/lyx; 
    svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel
    cd ~/lyx/lyx-devel; ./autogen.sh
    mkdir -p ~/lyx/build; cd ~/lyx/build; ../lyx-devel/configure
    make
    

6.  Installing local LaTeX classes and styles in Ubuntu

My freshly compiled LyX doesn't find the classes it should find.

Here's a partial work around for locally installed classes:

  • Place the class files etc in ~/mylatex
  • Set the variable TEXINPUTS, e.g.
    export TEXINPUTS=~/mylatex/:
  • Start LyX and do a recompile. This time LyX should have found the classes in ~/mylatex

7.  Categories

Category: Development, Compile LyX

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2009-03-31 22:50 UTC