Section H.2 Installing from source
While the
python3-louis system package appears to be updated frequently, if you need a more recent version of liblouis or simply feel a little more adventurous, you may wish to install liblouis directly from source following these instructions:-
Download the
liblouis-X.YY.0.tar.gzarchive from the downloads page. Releases are tracked at the GitHub release page. Theliblouisutdmlpackage is not necessary. -
In your terminal run
# ./configure --enable-ucs4 # make # make install
The “ucs4” flag enables 32-bit Unicode support, which is necessary for running tests later. -
Read
/tmp/liblouis-X.YY.0/python/README.mdand perform two steps, still as root, from within the directory structure in/tmp: install the bindings into your Python distribution and run the Python tests. Instructions for setting up a Python virtual environment are also available in that file. -
I do not do anything special to clean-up afterwards, and of course, my
/tmpgoes away on the next reboot. I also do not do anything special when installing the next version, I just follow the same procedure as a fresh install.
