Linux HOWTOs

About | Home | Search


ERROR: Slooooow dooooown... this page load was delayed.

HOWTO: lesstif
Description: The hungry programmers' version of OSF/Motif(R)®
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# LessTif 0.94.4
# ==============
# Slackware 9.0's 'lesstif' package includes version 0.93.40, 9.1's includes
# 0.93.91, 10.0's includes 0.93.94, 10.1's includes 0.93.96, 10.2's includes
# 0.94.4

# Prerequisites:
# gawk
# grep
# sed
# bison
# flex
# ctags
# XFree86 or X.org
# lynx
# man's man2html
# freetype

cd
test -f installed/lesstif-0.94.4.tar.bz2 &&
 mv installed/lesstif-0.94.4.tar.bz2 .
test ! -f lesstif-0.94.4.tar.bz2 &&
 wget http://download.sf.net/lesstif/lesstif-0.94.4.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "lesstif-*" -exec rm -r {} \;
tar xjvf ~/lesstif-0.94.4.tar.bz2
cd lesstif-0.94.4
test $UID = 0 && chown -R root:root .
./configure \
  --enable-shared \
  --enable-static \
  --enable-build-21 \
  --enable-build-Xlt \
  --enable-build-Xbae \
  --enable-xbae-24bit \
  --enable-xbae-row-heights \
  --disable-debug \
  --prefix=/usr/X11R6
make

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg lesstif
test -d /etc/X11/mwm && rm -r /etc/X11/mwm
test -d /usr/X11R6/lib/X11/mwm && rm -r /usr/X11R6/lib/X11/mwm
( cd /usr/X11R6/lib ; rm -f libDtPrint.* libMrm.* libUil.* libXm.* )
make install
mkdir -p /usr/X11R6/lib/X11/config
( cd /usr/X11R6/lib/LessTif/config
  cp -a LessTif.rules LessTif.tmpl /usr/X11R6/lib/X11/config/
  cp -a host.def /usr/X11R6/lib/X11/config/host.def-lesstif )
( cd /usr/X11R6/lib/X11
  cp -a ./mwm /etc/X11/
  rm -r ./mwm
  ln -sf /etc/X11/mwm )

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/lesstif-*.tar.*
mv lesstif-0.94.4.tar.bz2 installed/

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>