7.3. Building from source

7.3.1. Prerequisites

At the very least, you will need to download and install the xapian core package and the qt run-time and development packages. Check the Recoll download page for up to date version information.

You will most probably be able to find a binary package for qt for your system. You may have to compile Xapian but this is not difficult (if you are using FreeBSD, there is a port).

You may also need libiconv. Recoll currently uses version 1.9 (this should not be critical). On Linux systems, the iconv interface is part of libc and you should not need to do anything special.

7.3.2. Building

Recoll has been built on Linux, FreeBSD, macosx, and Solaris, most versions after 2005 should be ok, maybe some older ones too (Solaris 8 is ok). If you build on another system, and need to modify things, I would very much welcome patches.

Depending on the qt configuration on your system, you may have to set the QTDIR and QMAKESPECS variables in your environment:

On many Linux systems, QTDIR is set by the login scripts, and QMAKESPECS is not needed because there is a default link in mkspecs/. Neither should be needed with Qt 4.

Configure options:

  • --without-aspell will disable the code for phonetic matching of search terms.

  • --with-fam or --with-inotify will enable the code for real time indexing. Inotify support is enabled by default on recent Linux systems.

  • --enable-xattr will enable code to fetch data from file extended attributes. This is only useful is some application stores data in there, and also needs some simple configuration (see comments in the fields configuration file).

  • --enable-camelcase will enable splitting camelCase words. This is not enabled by default as it has the unfortunate side-effect of making some phrase searches quite confusing: ie, "MySQL manual" would be matched by "MySQL manual" and "my sql manual" but not "mysql manual" (only inside phrase searches).

  • --with-file-command Specify the version of the 'file' command to use (ie: --with-file-command=/usr/local/bin/file). Can be useful to enable the gnu version on systems where the native one is bad.

  • --without-gui Disable the Qt interface, and auxiliary uses of X11, and compile the command line version.



Normal procedure:

        cd recoll-xxx
        configure
        make
        (practices usual hardship-repelling invocations)
     

There is little auto-configuration. The configure script will mainly link one of the system-specific files in the mk directory to mk/sysconf. If your system is not known yet, it will tell you as much, and you may want to manually copy and modify one of the existing files (the new file name should be the output of uname -s).

7.3.3. Installation

Either type make install or execute recollinstall prefix, in the root of the source tree. This will copy the commands to prefix/bin and the sample configuration files, scripts and other shared data to prefix/share/recoll.

If the installation prefix given to recollinstall is different from what was specified when executing configure, you will have to set the RECOLL_DATADIR environment variable to indicate where the shared data is to be found.

You can then proceed to configuration.