Mathematica 4.2 under Ubuntu

The purpose of this page is to explain how to get Mathematica 4.2 up and running under Ubuntu Linux. Mathematica 4.2 is somewhat tricky to get running under newer versions of Linux. Since it took me some time to figure out all the necessary workarounds, I have decided to describe them here to help others avoid the trouble in the future.

The first problem is that Mathematica 4.2 is apparently not compatible with the newest versions of glibc. Thus, when I tried installing Mathematica under Ubuntu Linux 7.04 (Feisty Fawn) I couldn't make it work. So, I installed Ubuntu 6.06 (Dapper Drake) instead, since this uses libc 2.3.6. These notes will explain how to get Mathematica 4.2 running under Ubuntu Dapper Drake.

First, install Mathematica 4.2 from the CD. In order to do this, the installer may demand that you first create the directory /usr/tmp. After the install finishes, if you try to run Mathematica it will crash. This is because by default, the version installed uses statically linked libraries rather than dynamically linked libraries. Fortunately, a version of Mathematica using dynamically linked libraries is present on the install CD. You just have to install it manually.

To do this, cp -r the directories:

Files/SystemFiles/Kernel/Binaries/Linux-dyn
Files/SystemFiles/Kernel/SystemResources/Linux-dyn
Files/SystemFiles/Frontend/Binaries/Linux-dyn
Files/SystemFiules/Converters/Binaries/Linux-dyn

from the CD to their corresponding Mathematica install directory.

(By default this is /usr/local/Wolfram/Mathematica/4.2/)

Then go into /usr/local/bin and edit the following startup scripts:

math
mathematica
MathKernel
Mathematica

everywhere sysid=Linux appears, change it to sysid=Linux-dyn

Then do the same in under the /Executables/Linux/ subdirectory of whatever your top Mathematica directory is.

This is described at Wolfram Support.

However, after this, Mathematica still gives translation table errors. To fix this do (as root):

cd /usr/X11R6/lib/X11
ln -s /usr/share/X11/XKeysymDB XKeySymDB
export LD_ASSUME_KERNEL=2.4.1

This is explained at LinuxQuestions.org

After this it should work once you enter your password.


Back to Stephen Jordan's homepage.