Selected release:

Download the LXR tarball if you haven't already done that.

  1. Decide where you want LXR installed.
    • If you just want to see how LXR behaves against your user-private tree, you might as well install LXR in your home directory at ~/lxr/.
    • If you want to offer LXR service system-wide, you must install it in a public directory. In this guide, we will use /usr/local/share/lxr/.

      Access to this directory may require root privilege.

    This directory will be called LXR root directory.

  2. Expand the tarball We will suppose the tarball has been downloaded in your Download directory:
    • Private installation: $ cd $ tar -zxf ~/Download/lxr-x.y.z.tgz
    • System-wide installation: $ cd /usr/local/share $ tar -zxf ~/Download/lxr-x.y.z.tgz
  3. Enter the LXR root directory You might want to rename this directory to get rid of the release version in its name. $ mv lxr-x.y.z lxr From the commands above, you are one level above the LXR directory. To enter: $ cd lxr

The tools installation page mentioned version requirements for the auxiliary tools needed by LXR. Now that LXR has been copied, you can test them for Perl and ctags with:

$ ./genxref --checkonly ERROR: could not open configuration file lxr.conf [ OK ] Perl version ... 5.14.2 Parameter 'ectagsbin' not defined - trying to find ctags ctags found at /usr/bin/ctags [ OK ] ctags version ... 5.8 Parameter 'glimpsebin' not defined - trying to find glimpse glimpse found at /usr/local/bin/glimpse Checked: glimpse version ... 4.18.5 Parameter 'glimpseindex' not defined - trying to find glimpseindex glimpseindex found at /usr/local/bin/glimpseindexg Checked: glimpseindex version ... 4.18.5 Parameter 'swishbin' not defined - trying to find swish-e swish-e not found, `command -v swish-e` returned a null string genxref stopped without indexing by --checkonly option

You're done. You must now configure your copy.