Mathematica 5.0 Linux version can not be installed in Ubuntu 7.10

Asked by Pentti Mannonen

If someone has Mathematica 5.0 Linux, try to install it in Ubuntu 7.10 and tell me how it can be done. <email address hidden> does not help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Pentti Mannonen
Solved:
Last query:
Last reply:
Revision history for this message
Murat Gunes (mgunes) said :
#1

I'm converting this into a question. Please use the support tracker (https://answers.launchpad.net/ubuntu) for support questions.

Revision history for this message
Bhavani Shankar (bhavi) said :
#2

Hello

These articles might help you out..

http://ubuntuforums.org/showthread.php?t=348002
https://help.ubuntu.com/community/Mathematica

Hope that helps

Bhavani Shankar.

Revision history for this message
Pentti Mannonen (pentti-mannonen) said :
#3

They did not work with Mathematica 5.0. Maybe with other versions.

Revision history for this message
Vojtěch Trefný (vojtech.trefny) said :
#4

I have installed it without problems...

Revision history for this message
Pentti Mannonen (pentti-mannonen) said :
#5

I have a normal PC. The Mayhematica 5.0 installs, but in startup it gives a long list of varnings, like:
Warning:translation table syntax error: Unknown keysym name :
osfActivate found while
parsing'<key>osfActivate:PrimitiveParentActivate()' and does not work.

Revision history for this message
Bhavani Shankar (bhavi) said :
#6
Revision history for this message
reyungoo (reyungoo) said :
#7

I had the same problems and found a solution.
copy the locale directory in /usr/share/X11 and XKeysymDB to
/usr/X11R6/lib/X11 or make symbolic links.

that's it
it works properly

Niko

Revision history for this message
Pentti Mannonen (pentti-mannonen) said :
#8

This worked with Lineox Enterprice LInux, which i now use with Mathematica, but not with Ubuntu and Kubuntu.
I get the message: An illegal right-hand side value was specified for the cell style option ´Font Color´ , etc.

Revision history for this message
Pentti Mannonen (pentti-mannonen) said :
#9

The problem is solved. I had to download the video driver for ATI Radeon 9200 from:http://ati.amd.com/support/driver.html.
I got the following instructions from Wolfram representative in Finland to correct the font-system for Mathematica 5.0 .I t corrected the font system.

Please try the following:

% xlsfonts | grep wri

which will list the available Mathematica fonts. If no Mathematica fonts
are available, this command will return nothing.

Mathematica front end displayed on your local computer requires the local X
server to provide the necessary fonts.
You will need to install fonts on your local machine, or tell the X server
where to access them.

I. Install fonts locally and tell the X server where to find them.

1. Install fonts to your local directory

a) the fonts are available from

http://support.wolfram.com/mathematica/systems/windows/general/latestfonts.
html
http://support.wolfram.com/mathematica/systems/macintosh/general/latestfont
s.html
http://support.wolfram.com/mathematica/systems/unix/general/latestfonts.htm
l
http://support.wolfram.com/mathematica/systems/linux/general/latestfonts.ht
ml

you will need the linux/unix fonts

b) unpack the fonts to the directory of your choice. For linux, the
standard font directory is /usr/lib/X11/fonts. Create a directory
/usr/lib/X11/fonts/Mathematica, and place fonts in that directory. You will
have Type1 and BDF subdirectories
/usr/lib/X11/fonts/Mathematica/Type1, /usr/lib/X11/fonts/Mathematica/BDF.

c) Make sure that each newly created directory has a file fonts.dir. If
there is no such file, do
% cd /usr/lib/X11/lib/fonts/Mathematica/Type1; mkfontsdir

Now, you have three ways to make these fonts available on your system.

Option 1. Use xset command.

The following commands will add the corresponding directories to the font
path that X server uses.

% xset fp+ /usr/lib/X11/fonts/Mathematica/Type1
% xset fp+ /usr/lib/X11/fonts/Mathematica/BDF

After that the command

% xset fp rehash

will cause the X server to reread font databases. This will make the fonts
available to the X server.

Please note that the xset command is executed in Mathematica start-up
script. However, the script fails to find fonts in the following standard
location

${TopDirectory}/SystemFiles/Fonts/Type1
${Topdirectory}/SystemFiles/Fonts/BDF

Thus, another alternative is to create an exact same directory structure on
your local computer
and place the fonts there. Even if you do not have Mathematica installed
locally, they will be found and used.
Here, ${TopDirectory} is the path to the directory where Mathematica is
installed on the _remote_ computer,
usually /usr/local/Wolfram/Mathematica/x.y/ for version x.y

One simple way to create the necessary directory structure and copy the
fonts from another unix machine to your local one would be to run the
following command:

% mkdir -p ${TopDirectory}/SystemFiles/
% scp -r user@remotemachine:${TopDirectory}/SystemFiles/Fonts/
${TopDirectory}/SystemFiles/

Option 2. Modify configuration of your local X server.

The standard X server configuration file may be either /etc/X11/XF86Config
or /etc/X11/xorg.conf depending on your X server. In this file, search for
the section "Files" and find the following lines

RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"

Add one line for each of the newly created fonts directory:

      RgbPath "/usr/X11R6/lib/X11/rgb"
      FontPath "/usr/lib/X11/fonts/Mathematica/Type1"
      FontPath "/usr/lib/X11/fonts/Mathematica/BDF"
      FontPath "unix/:7100"

Log out and restart the X server. Note that logging out is not sufficient
as you still continue to run the same X server.
To restart the X server without restarting the computer, press
++.

Once the X server is restarted, you may check if the fonts are available by
using the xlsfonts command

% xlsfonts | grep wri

Option 3. Make fonts available through the local X font server (xfs,
xfs-xtt,..)

In the X server configuration file, /etc/X11/XF86Config, you can see the
line

FontPath "unix/:7100"

This line tells the X server that any additional fonts, besides those
listed in other FontPath directives, can be
obtained from the font server. The "unix" keyword specifies that connection
to the font server is done using
the standard unix socket, and "7100" is the standard port.

Besides the standard xfs server, there are alternative servers like xfstt,
xfs-xtt etc. You will need to check the documentation
for the specific server you are using. For xfs, the configuration file is
usually /etc/X11/fs/config

In the xfs config file, you will need to append the paths to each of the
newly added font directories to the value assigned to the
variable catalogue:

catalogue = other_font_paths,
/usr/lib/X11/fonts/Mathematica/Type1,
/usr/lib/X11/fonts/Mathematica/BDF

Once you have added the paths to the new fonts, you need to restart the
font server. To do that, run the same script that is
used to start the font server when the computer boots up, with a keyword
"restart". For example:

In RedHat or Fedora, /etc/rc.d/init.d/xfs restart
In Debian: /etc/init.d/xfs restart

After the font server is restarted, the availaility of fonts can be checked
using xlsfonts command.

II. Get the fonts served by X font server from another computer.

Instead of installing fonts on your local computer, you may use the fonts
available on another computer, usually the one
that has Mathematica installed. In order to do that, repeat the steps
explained in Option 3 above, with one addition.
In the font server config file, /etc/X11/fs/config, make sure that the
option

# no-listen = tcp

is commented out (i.e. has a # mark before it). This will make sure that
the font server will accept font requests both from its
local computer, and from the network. Restart the font server on the remote
computer.

On your local computer, edit the X server config file, /etc/X11/XF86config
or /etc/X11/xorg.conf
In the section "Files", in addition to the line

FontPath "unix/:7100"

add another line pointing to the computer running the font server:

FontPath "192.121.1.1/:7100"

where 192.121.1.1 must be replaced with the actual IP address of the remote
computer.
The port number, 7100, in the local config file must be the same as the
port that the remote font server uses.

-- Pertti
<email address hidden>