Notes for compiling and running e93 under Apple OS X. X11 --------------------------------------------------------------------- Install Apple's X11 for Mac OS X. DVD installer disk or http://www.apple.com/downloads/macosx/apple/x11formacosx.html Tcl/Tk --------------------------------------------------------------------- The Tcl/Tk that Apple includes with OS X will not work for X11-based apps because it was made for Aqua. You must download and compil e Tcl/Tk for X11. It will be installed in an alternate path so as to not conflict with Aqua Tcl/Tk. Download Tcl and Tk source packages from http://tcl.tk. Compile and install: % tar xzf tcl8.4.10-src.tar.gz % tar xzf tk8.4.10-src.tar.gz % cd tcl8.4.10/unix % ./configure --prefix=/usr/X11R6 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-threads % make % sudo make install % cd ../../tk8.4.10/unix % ./configure --prefix=/usr/X11R6 --enable-threads --with-x --with-tcl=/usr/X11R6/lib % make % sudo make install e93 --------------------------------------------------------------------- The e93 Makefile needs to be modified to link with our newly compiled Tcl/Tk libraries instead of the default Apple libraries. In machdef.mk, change TCL_LIB to: TCL_LIB=-L/usr/X11R6/lib and uncomment/add: TCL_VERSION=8.4 Compile and install: % make % sudo make install-strip ======================= NOTE: from Andrew Pines: "sudo make install-strip" failed on mine because it got confused by the file INSTALL. Either rename INSTALL to INSTALL.TXT or add this line to the Makefile: .PHONY: install ======================= .Xmodmap --------------------------------------------------------------------- Apple's version of X11 comes with a default keymap that swaps the modifier keys so that X11 shortcuts won't interfere with OS X shortcuts. To put the modifier keys back to the way they should be, first create '.Xmodmap' in your home directory. Add the following lines to this file: clear Mod1 clear Mod2 keycode 63 = Alt_L keycode 66 = Meta_L add Mod1 = Alt_L add Mod2 = Meta_L Start X11 and select 'Preferences'. Under 'Input' make sure all the options are unchecked. You must restart X11 after making these changes. Now the Alt/Command key works the wa y e93 expects it to.