Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

LyX /

LyXOnUbuntu

Categories: compiling, Linux, packages, Linux
<< | Page list | >>

How to correctly install LyX on Ubuntu. (Debian users should check LyXOnDebian.)

Installation

Ubuntu official repos

The version of LyX provided by the official repositories is often out of date, but unless you need features or bug fixes from more recent versions, that may be fine.

For Hebrew issues, see Hebrew On Linux.

Ubuntu PPA

The stable PPA, set up by Liviu Andronic, contains the latest stable release of LyX for the Ubuntu distributions.

Installing

If you already have a repository version of LyX installed, you should remove it:

  1. sudo apt-get remove lyx (remove your repository version)
  2. sudo apt-get autoremove (remove repository dependencies)

If you don't do this, the fourth step that follows may fail.

Do the following:

  1. sudo add-apt-repository ppa:lyx-devel/release
  2. sudo apt-get update (update so that apt is aware of the new PPA)
  3. sudo apt-get install lyx (install from the PPA)
  4. lyx (run LyX)

You will probably have to press "Enter" after step 1 (adding the PPA).

Uninstallation

To uninstall the package, do as you would for any package with apt-get.

You may want to stop using a PPA for various reasons. One way to "pause" the PPA is to do the following:

Open Ubuntu Software Center and go to Edit > Software Sources > Other Software and uncheck the two entries corresponding to the PPA of interest.

Manual compilation

As a last resort, you can always compile LyX from source. Simply:

  1. Get the sources either as a tarball (see http://www.lyx.org/Download) or fresh from the SVN.
  2. Use this amazing facility to get all the right dependencies for development: Build dependencies do not change that quickly, so you will meet most (or all) of them with sudo apt-get build-dep lyx
  3. Follow instructions in the folder you downloaded (i.e. "./configure" then "make" then "sudo make install")

compiling

FAQ

Tip: Use MPM with Ubuntu

MPM is the MiKTeX Package Manager (MiKTeX being the most popular LaTeX distribution for the Windows platform). It has been ported to Unix and descendants, albeit command-line only (so far). One nice feature of MiKTeX is that LaTeX packages are provided for download individually, rather than in large bundles.

A blog entry by Stefan Kottwitz gives concise instructions on how to install MPM in Ubuntu Hardy. Once it's installed, you can easily download and install individual LaTeX packages. For instance, I installed xypic.sty using the line

 sudo mpm --install=xypic

/Paul

Creating documents in other languages

Hindi

Please follow guide at http://wiki.lyx.org/UbuntuLinux/Hindi Linux, packages

Categories

Linux

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2021-01-07 12:26 CET