Introduction to LessTif

The LessTif package contains an Open Source version of OSF/Motif®.

Package Information

  • Download (HTTP): http://downloads.sourceforge.net/lesstif/lesstif-0.94.4.tar.bz2

  • Download (FTP):

  • Download MD5 sum: 3096ca456c0bc299d895974d307c82d8

  • Download size: 2.4 MB

  • Estimated disk space required: 160 MB (includes building and running the test suite)

  • Estimated build time: 2.89 SBU (includes building the test suite)

Additional Downloads

LessTif Dependencies


X Window System


Lynx-2.8.6 or Links-2.1pre23 (used to generate the INSTALL documentation file) and Dmalloc

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/lesstif

Installation of LessTif

Install LessTif by running the following commands:

patch -Np1 -i ../lesstif-0.94.4-testsuite_fix-1.patch &&
./configure --prefix=/usr --disable-debug \
    --enable-production --with-xdnd &&
make rootdir=/usr/share/doc/lesstif-0.94.4

This package requires that it be installed before the test suite is run. The commands to run the tests are located a bit later in the instructions.

Now, as the root user:

make rootdir=/usr/share/doc/lesstif-0.94.4 install

If your X Window System is XFree86 or Xorg-6.9 issue the following commands:

mv -v /usr/X11R6/lib/X11/mwm /etc/X11 &&
ln -v -s ../../../../etc/X11/mwm /usr/X11R6/lib/X11 &&

If your X Window System is Xorg-7.x issue these commands instead:

mv -v /usr/lib/X11/mwm /etc/X11 &&
ln -v -s ../../../etc/X11/mwm /usr/lib/X11 &&

Command Explanations

--disable-debug: Do not generate debugging information.

--enable-production: Build the release version of the LessTif libraries.

--with-xdnd: Enable XDND GNOME compatibility support.

rootdir=/usr/share/doc/lesstif-0.94.4: This installs the documentation into an appropriate directory instead of the non-FHS compliant /usr/LessTif directory.

mv -v /usr/X11R6/lib/X11/mwm /etc/X11: The mwm configuration directory is moved to its proper FHS location in /etc/X11.

ln -v -s ../../../../etc/X11/mwm /usr/X11R6/lib/X11: A symlink required by some legacy applications is created pointing to the mwm configuration directory moved in the previous command.

Testing LessTif

It is advisable to test the installation of LessTif using the included test suite. It is not required to install any of the resulting binaries to validate the installation. Issue the following commands to build the test suite:

cd test &&
./configure &&

To run the tests, issue the following commands:

cd Xm &&
./testall *

You'll need to manually close three of the test windows. The first one is from test28 in the list directory. The second one is from test10 in the menushell directory. You should click on the button in the window and choose “exit” (do it twice) to finish the test. The third test is from test24 in the scrolledwindow directory.

As many as 100 tests are known to fail. The patch applied at the beginning of the installation created a file used to compare known failures to the failures from the test run. This file was created from an installation using the current LFS book and should be a fairly accurate representation of the failures you'll encounter. You could see some minor variances, however.

Configuring LessTif

Config Files

/etc/X11/mwm/system.mwmrc and ~/.mwmrc

Configuration Information

The config files are used to customize the behavior of the mwm window manager. Information about customizing these files can be found in the mwmrc(5) man page.


Installed Programs: motif-config, mwm, mxmkmf, uil, and xmbind
Installed Libraries: libDtPrints.so, libMrm.so, libUil.so, and libXm.so
Installed Directories: /etc/X11/mwm, /usr/include/Xm, /usr/include/Mrm, /usr/include/uil, /usr/include/Dt, /usr/lib/LessTif, and /usr/share/doc/lesstif-0.94.4

Short Descriptions


is used to find out configuration information for packages needing to link to the LessTif libraries.


is a window manager that adheres largely to the Motif mwm specification.


is the LessTif version of xmkmf which creates a Makefile from an Imakefile.


is a user interface language compiler which translates a plain text description of the user interface of a Motif application into a machine-readable form.


configures the virtual key bindings of LessTif applications.


is an OSF/Motif® source code compatible library for the X Window System. You can download an excellent reference guide (mainly for programmers) for the Motif-2.1 specification from http://unc.dl.sourceforge.net/lesstif/6B_book.pdf.

Last updated on 2007-01-15 17:25:53 -0600