System Administration Guide: Wolfram Mathematica Tutorial Collection
System Administration Guide: Wolfram Mathematica Tutorial Collection
System Administration Guide: Wolfram Mathematica Tutorial Collection
MathLM
What Is MathLM? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Installing MathLM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Launching MathLM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Logging MathLM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Monitoring MathLM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Restricting and Reserving Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Troubleshooting MathLM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Mathematica
Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Unix and Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Mac OS X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Mathematica
Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Unix and Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Mac OS X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
System Administration for
Network Licenses
System Administration for Network Licenses 3
MathLM
What Is MathLM?
MathLM administers licenses for organizations running multiple instances of Mathematica with a
network license. Network licenses have two very important advantages:
MathLM is installed on a single machine, known as the license server. Once MathLM is running,
it acts as a gatekeeper for new Mathematica sessions. MathLM sets up the appropriate number
of process slots for each class of computer covered by your network license agreement. MathLM
monitors the number of copies of Mathematica in use and issues licenses to clients until all
available licenses are in use.
The number of concurrent processes that may run over the entire network is printed on your
license certificate. You can increase the number of processes allowed with a license upgrade
from Wolfram Research. See the Wolfram Mathematica Increment Request Form on the web at
wolfram.com/products/mathematica/processes for more information on increasing your process
increments.
Mathematica consists of two components, the kernel and the front end. The Mathematica kernel
performs computations. The Mathematica front end is the graphical notebook interface. MathLM
keeps track of kernel and front end processes separately.
4 System Administration for Network Licenses
† The number n of processes printed on your network license certificate generally gives you n
front end process slots and 4 n kernel process slots per increment. See the Increment
Request form on the web at wolfram.com/products/mathematica/processes for more infor-
mation on increasing your process increments.
† The gridMathematica network license certificate generally gives you 16 sub-kernel process
slots (sixteen worker kernels).
A client Mathematica process must request a license from MathLM before it starts taking user
input or performing calculations. In order for clients to run Mathematica, MathLM must be
running on the license server at all times. If the client machine making the request is not of a
type covered by the license, or if all the process slots are already in use, the client Mathematica
process cannot be started.
Installing MathLM
Requirements
MathLM is available for Windows, all Unix and Linux platforms on which Mathematica is sup-
ported, and Mac OS X. Visit www.wolfram.com/products/mathematica/platforms.html for a
complete list of platform availability. Each MathLM license server can support any combination
of client machines, regardless of the platform on which MathLM itself is running. MathLM auto-
matically supports both IPv4 and IPv6 environments.
The machine that you choose as a license server should be stable and should have a reliable
TCP/IP connection to the clients you want to serve. As MathLM requires minimal processor and
memory resources, an older machine with a reliable network connection would be an acceptable
license server. Ideally, there should not be any intervening firewalls between the license server
and the clients. If there is an intervening firewall, you will need to configure the network to
allow traffic to an appropriate port through the firewall. The license server must be located at
the physical site where your product is registered, as stipulated by your license agreement.
To install and run MathLM, you must register with Wolfram Research and receive a password.
See "Registration and Passwords" for further information.
2. The Wolfram Mathematica License Manager Setup dialog appears on your screen.
Click Next to begin the installation process.
6 System Administration for Network Licenses
4. Click Next to add MathLM shortcuts to the Start menu in the Wolfram Mathematica folder.
System Administration for Network Licenses 7
5. Select any previous MathLM installations you want to remove. Click Next to continue.
Note: If you are installing over a previous version of MathLM, your existing mathpass file,
custom settings, and MonitorLM configuration files will not be deleted.
7. Your MathID number is displayed in the next dialog box. To obtain your password, contact
Wolfram Research (see "Registration and Passwords" for details). You will need to provide
your license number (located on your electronic or printed license certificate) and your
MathID number.
8 System Administration for Network Licenses
Once you have your password, enter your license number and password in the dialog box.
Click Add to add the new password to the list of recognized passwords. Click Next to
continue.
8. The Wolfram Mathematica License Manager Setup dialog will tell you when it is
finished installing MathLM. Click Finish to quit the installer.
After the installation is completed, MathLM will start automatically. For information on configur-
ing MathLM with additional options, refer to "Launching MathLM".
System Administration for Network Licenses 9
2. Mount the CD. For information on mounting a CD, see "Mounting a CD or DVD on Unix
and Linux".
Note: This step is not required on Mac OS X and some Linux and Unix platforms, as the
operating system automatically handles mounting.
3. Change the directory to the appropriate subdirectory beneath the CD mount point. Note
that the exact location of the CD mount point might be different on Unix and Linux
platforms.
Unix:
cd /cdrom/Unix
Mac OS X:
cd /Volumes/MathLM/Macintosh
./MathLMInstaller
5. Your machine name and MathID number are displayed. To obtain your password, contact
Wolfram Research (see "Registration and Passwords" for details). You will need to provide
your license number (located on your electronic or printed license certificate) and your
MathID number.
Once you have your password, type the letter c and press Return to proceed with the
installation.
-----------------------------------------------------------------
MathLM 7.0 Installer
-----------------------------------------------------------------
You can use this installer to install MathLM for the first time, or to
install a new version when you already have a previous version installed.
-----------------------------------------------------------------
10 YouAdministration
System can use for this installer
to install MathLM for the first time, or to
Network Licenses
6. Enter your MathLM license number as it appears on your electronic or printed license
certificate. Then press Return.
8. The installer prompts you to specify the directory in which MathLM should be installed.
The default location is /usr/local/Wolfram/MathLM. Press Return to accept the default,
or type in a new location and then press Return.
Note: If you choose a directory that does not exist, the installer will create it for you. If a
copy of MathLM already exists in the directory you specify, the installer will inform you
before updating any files.
Note: If you are installing over a previous version of MathLM, your existing mathpass file,
custom settings, and MonitorLM configuration files will not be deleted.
System Administration for Network Licenses 11
9. The installer prompts you to specify the directory in which symbolic links will be created.
The default location is /usr/sbin. Press Return to accept the default, or type in a new
location and then press Return.
Note: If you choose a directory that does not exist, the installer will create it for you. If
symbolic links to an older copy of MathLM already exist in the directory you specify, the
installer will inform you before updating them.
10. The installer begins copying files from the CD. Each directory created is listed on your
screen, and the location of the password file is displayed. If any error messages are
generated during installation, they are logged to the installation directory.
11. Once the installation is complete, you must start MathLM manually. First, change direc-
tory to the location in which MathLM is installed (the default location is
/usr/local/Wolfram/MathLM). Then issue one of the following commands.
./mathlm
Only a few options are presented here. A full discussion of the command-line options for
MathLM is given in "Launching MathLM".
Launching MathLM
Launching MathLM on Windows
Launching MathLM Manually
Once installed, MathLM starts running automatically by default each time the machine is
rebooted. To start or stop MathLM manually, follow these instructions.
It is assumed here that MathLM is installed in the default location, C:\Program Files\Wolfram
Research\MathLM.
12 System Administration for Network Licenses
1. Open the Control Panel. (From the Start menu, choose Settings Control Panel.)
2. Double-click the Services icon located in the Administrative Tools folder. To change set-
tings for services, you will need administrative privileges.
4. Double-click the service name to open the Properties dialog box; then click Start.
Alternatively, in a command prompt window run the command net start mathlm.
1. Double-click the Services icon located in the Control Panel\Administrative Tools folder. To
change settings for services, you will need administrative privileges.
3. Double-click the service name to open the Properties dialog box; then click Stop.
Alternatively, in a command prompt window run the command net stop mathlm.
It is assumed here that MathLM is installed in the default location, C:\Program Files\Wolfram
Research\MathLM.
1. Open a command prompt window. (From the Start menu, choose Programs
Accessories Command Prompt.)
If MathLM is already installed as a service but was previously disabled, you can enable it again
using the following steps.
4. Double-click the Services icon located in the Control Panel\Administrative Tools folder. To
change settings for services, you will need administrative privileges.
5. Select Mathematica 7.0 License Manager from the list of services and double-click.
You can start or stop MathLM without rebooting the machine. The MathLM service will give no
indication that it has started, but the operating system will report if it fails to start.
To Prevent MathLM from Starting Each Time a Windows 2000/XP/Vista Machine Is Rebooted:
1. Double-click the Services icon located in the Control Panel\Administrative Tools folder. To
change settings for services, you will need administrative privileges.
2. Select Mathematica 7.0 License Manager from the list of services and double-click.
You can start MathLM manually at any time using the command-line options listed in
"Command-Line Options". However, it is typical to configure MathLM so it starts automatically
when the system is rebooted.
if [ -f /usr/local/Wolfram/MathLM/mathlm];
then /usr/local/Wolfram/MathLM/mathlm -logfile filename;
fi
14 System Administration for Network Licenses
1. Create a directory called /MathLM in /Library/StartupItems. You might need to create the
directory /Library/StartupItems first.
#!/bin/sh
. /etc/rc.common
##
# This script will start up the Mathematica License Manager, mathlm.
##
if [ "${MATHLM:=-YES-}" = "-YES-" ]; then
ConsoleMessage "Starting the Mathematica License Manager"
/usr/local/Wolfram/MathLM/mathlm
else
ConsoleMessage "The Mathematica License Manager was not started"
fi
{
Description = "Mathematica License Manager";
Provides = ("MathLM");
Requires = ("Core Services");
OrderPreference = "None";
Messages = {
start = "Starting Mathematica License Manager";
stop = "Stopping Mathematica License Manager";
};
}
6. Edit the /etc/hostconfig file, and add the following text in the Services section.
MATHLM=-YES-
The following additional command-line option is accepted on Unix, Linux, and Mac OS X.
With -install, any arguments given are stored as a part of the service and used when start-
ing MathLM automatically.
Possible values for lang in -language are English, French, German and Japanese.
The default format for log messages is the W3C common logfile format. MathLM log files can be
imported using the Import format "ApacheLog".
Note: On Windows, a slash (/) or a dash (-) may be used to indicate options.
System Administration for Network Licenses 17
Logging MathLM
Enabling Logging
You can enable logging in two ways.
† Log server messages to stdout by using the option -foreground to keep mathlm in the
foreground.
† Log server messages to a specific file using the option -logfile file.
The log file records messages as they occur, building up a detailed record of license activity
over a period of time.
Logging supports both IPv4 and IPv6 environments with no additional configuration required.
† var is a letter representing one of nine variables, such as the host, user, day, time, or
event.
For example, %y1 means that the year is displayed in two-digit format (e.g., 08), while %y2
displays the year in four-digit format (e.g., 2008).
In addition to the %var# commands, the string can also include plain text such as brackets,
dashes, quotation marks, and arbitrary comments. The text can be used to include comments
and separators in the server messages for formatting purposes. All text included in the string
appears literally in the server message with the following two exceptions: use %q to include a
double quote ("), and use %% to include a percentage sign (%).
You must specify the type of messages that should be logged using the option -loglevel, as
explained in "Launching MathLM".
18 System Administration for Network Licenses
Here is a list of variables that can be included in the string, along with their numeric values and
formats.
Note: All Windows clients on a network have the same user ID (set to the number 65535
by default). Hence, the user ID setting is only meaningful for clients running Unix, Linux,
or Mac OS X.
Note: To use the GMT offset format (%t3), you must also use the -localtime option
when starting MathLM.
The default format string, which mimics the Common Logfile Format, can be invoked by the
following.
To specify the Common Logfile Format manually, you must specify this string as the value of
the -logformat option, as in the following command. The messages generated by this com-
mand are in the same format as the previous example.
By default, time is displayed in GMT. If you want local time to be displayed instead, you must
use the -localtime command-line option with either the %t1 tag or the %t2 tag. The %t3 tag
should not appear in the format string if you want local time to be displayed.
Note: Server messages in IPv6 networks will display IPv6 addresses automatically, with
no additional configuration required.
Monitoring MathLM
What Is MonitorLM?
MonitorLM gives information on the total number of licenses available and checked out, the fully
qualified domain name and username of those who have them checked out, and so on. Moni-
torLM can send output to the terminal, open a web browser, or write to a file. The output for
MonitorLM is customizable by means of a configuration file. MonitorLM automatically supports
IPv4 and IPv6 environments.
Starting MonitorLM
To start MonitorLM, change directory to the location in which MathLM is installed, and type
.\monitorlm servername (on Windows) or ./monitorlm servername (on Unix, Linux, or Mac OS
X). The first argument of the monitorlm command specifies the name of the license server
running MathLM. If you do not specify a server name explicitly, the local machine name is
chosen as the default.
The cgi format is used when MonitorLM is launched directly by a web browser.
This shows what the output of MonitorLM looks like, with -format set to text.
Mathematica A 2 20
MathKernel A 4 40
Sub Mathematica A 0 80
Sub MathKernel A 0 80
Licenses in Use:
License
Program Version Class Username Hostname
Duration
---------------------------------------------------------------------------
-
Mathematica 6.0 A username client1.domain.com 08:49
Mathematica 7.0 A username client2.domain.com 06:33
MathKernel 6.0 A username client1.domain.com 08:44
MathKernel 7.0 A username client2.domain.com 06:52
MathKernel 7.0 A username client2.domain.com 06:52
MathKernel 7.0 A username client2.domain.com 06:30
22 System Administration for Network Licenses
This shows what the output of MonitorLM looks like in a web browser, with -format set to html.
Note that when -format is set to cgi, the output of MonitorLM is sent to stdout in HTML
format. This shows what that output looks like when displayed in a web browser.
System Administration for Network Licenses 23
† Constant tags~These tags represent data that is static during the execution of MonitorLM
and license-independent, such as the current date. Each of these tag names has the prefix
CONST.
† Variable tags~These tags act as wrappers to constant tags. They are useful in defining the
format for data to be output in series, such as a table of current MathLM users. They are
useful for improving readability of the template file. Each of these tag names has the prefix
VAR.
† Process-dependent tags~The value of these tags depends upon which Mathematica process
is being displayed and includes data like the process owner’s username and IP address.
Each of these tag names has the prefix PROC.
† Text wrappers~This is the text that a user can wrap around the tags, for presentation and
formatting.
Each tag in the template file has the form %var#, where
† # is a number defining a specific format for the display of the variable var.
In addition to the %var# commands, the template file can also include plain text such as brack-
ets, dashes, quotation marks, and arbitrary comments. The text can be used to include com-
ments and separators in the server messages for formatting purposes. All text included in the
string appears literally in the server message with the following two exceptions: use %q to
include a double quote ("), and use %% to include a percentage sign (%).
The following are Server and Process Constant Tags for MonitorLM.
Note: The strings provided in this section are examples of possible values, not default
settings. To use these tags, you must define them in your template.
Process-Dependent Tags
The following are Process-Dependent Tags for MonitorLM.
Repeated Tags
The following are Repeated Tags for MonitorLM.
Note: The strings provided in this section are examples of possible values, not default
settings. To use these tags, you must define them in your template.
Note: In the template file, the text wrappers and tags that make up the output to Moni-
torLM must follow a line containing only the keyword %TEXT with no whitespace before or
after it. Definitions for customized variable tags must precede the %TEXT line. If no vari-
able tags are customized, the %TEXT line can be the first line of the file.
%TEXT
Time/Date : [%CONST_DATE_T2] [%CONST_DATE_M3 %CONST_DATE_D, %CONST_DATE_Y2]
Front End Processes Authorized: %CONST_TOTAL_FE_AUTHORIZED
Kernel Processes Authorized: %CONST_TOTAL_KE_AUTHORIZED
Front End Processes Available: %CONST_TOTAL_FE_AVAILABLE
Kernel Processes Available: %CONST_TOTAL_KE_AVAILABLE
Front End Processes In Use: %CONST_TOTAL_FE_OUT
Kernel Processes In Use: %CONST_TOTAL_KE_OUT
30 System Administration for Network Licenses
Here is a slightly more sophisticated example. It is identical to the preceding example except
that it also lists the processes in use and customizes variable tags.
%TEXT
Time/Date : [%CONST_DATE_T2] [%CONST_DATE_M3 %CONST_DATE_D, %CONST_DATE_Y2]
Front End Processes Authorized: %CONST_TOTAL_FE_AUTHORIZED
Kernel Processes Authorized: %CONST_TOTAL_KE_AUTHORIZED
Front End Processes Available: %CONST_TOTAL_FE_AVAILABLE
Kernel Processes Available: %CONST_TOTAL_KE_AVAILABLE
Front End Processes In Use: %CONST_TOTAL_FE_OUT
Kernel Processes In Use: %CONST_TOTAL_KE_OUT
%VAR_TOTAL_CHECKEDOUT_HEADER
%REP_GENERAL_CHECKOUT_LINE
The following example demonstrates HTML output. This is useful, for example, if you want to
view the MonitorLM output in a web browser.
%TEXT
<HTML>
<HEAD> <TITLE> MathLM Status </TITLE> </HEAD>
<BODY>
<TABLE BORDER=1 CELLPADDING=5>
<TR><TD COLSPAN=2><B>MathLM Server</B></TD> <TD
COLSPAN=2><B>%CONST_SERVER_FQDN</B></TD> </TR>
<TR><TD COLSPAN=2>Time/Date</TD> <TD COLSPAN=2>[%CONST_DATE_T2]
[%CONST_DATE_M3 %CONST_DATE_D, %CONST_DATE_Y2]</TD> </TR>
<TR><TD COLSPAN=2>Authorized</TD> <TD>%CONST_TOTAL_FE_AUTHORIZED</TD>
<TD>%CONST_TOTAL_KE_AUTHORIZED</TD></TR>
<TR><TD COLSPAN=2>Available</TD> <TD>%CONST_TOTAL_FE_AVAILABLE</TD>
<TD>%CONST_TOTAL_KE_AVAILABLE</TD></TR>
<TR><TD COLSPAN=2>In Use</TD> <TD>%CONST_TOTAL_FE_OUT</TD>
<TD>%CONST_TOTAL_KE_OUT</TD></TR>
%VAR_TOTAL_CHECKEDOUT_HEADER
%REP_GENERAL_CHECKOUT_LINE
</TABLE>
</BODY>
</HTML>
Reserved licenses are always reserved. They are inaccessible to all other users or machines,
regardless of whether they are in use. Even if none of the specified users or machines are
running Mathematica, the license pool for all other users and machines is effectively reduced by
the number of reserved licenses.
The layout of a typical restriction script is as follows. Sample restriction scripts follow the
definitions.
AuthName Sample
AuthGroupFile mathlmgroup.txt
# Precedence
order ( allow,deny | deny,allow )
# Machine restriction
allow from ( all | machines ... )
allow hostgroup machinegroups ...
deny from ( all | machines ... )
deny hostgroup machinegroups ...
# User restriction
allow user ( all | users ... )
allow group usergroups ...
deny user ( all | users ... )
deny group usergroups ...
# License reservation
reserve [count] from machines ...
reserve [count] hostgroup machinegroups ...
System Administration for Network Licenses 33
Name Description
AuthName Sample Defines the name of the script.
AuthGroupFile mathlmgroup.txt Specifies the file containing definitions for groups of users
or machines. This line is only required in conjunction with
the group or hostgroup keywords.
order ( allow,deny | deny,allow Defines the precedence of these two directives. The latter
) term takes precedence over the former.
Also sets the default access state as the latter term. The
default access state is applied to requests that do not
match an explicit rule. The default value is order
deny,allow.
allow from ( all | machines ... ) Allows license requests from the listed hostnames,
domains, IP addresses, and ranges of IP addresses.
allow hostgroup machinegroups ... Allows license requests from members of the listed
machine groups.
deny from ( all | machines ... ) Denies license requests from the listed hostnames,
domains, IP addresses, and ranges of IP addresses.
deny hostgroup machinegroups ... Denies license requests from members of the listed
machine groups.
allow user ( all | users ... ) Allows license requests from the listed users.
allow group usergroups ... Allows license requests from members of the listed user
groups.
deny user (all | users ... ) Denies license requests from the listed users.
deny group usergroups ... Denies license requests from members of the listed user
groups.
reserve [count] from machines ... Reserves count front end licenses and count kernel licenses
for each of the listed hostnames, domains, IP addresses,
and ranges of IP addresses.
reserve [count] hostgroup machine - Reserves count front end licenses and count kernel licenses
groups ... for each member of the listed machine groups.
34 System Administration for Network Licenses
reserve [count] user users ... Reserves count front end licenses and count kernel licenses
for each user in the list.
reserve [count] group usergroups ... Reserves count front end licenses and count kernel licenses
for each user in the listed user groups.
reservesub [count] from machines Reserves count sub-front end licenses and count sub-kernel
... licenses for each of the listed hostnames, domains, IP
addresses, and ranges of IP addresses.
reservesub [count] hostgroup Reserves count sub-front end licenses and count sub-kernel
machinegroups ... licenses for each member of the listed machine groups.
reservesub [count] user users ... Reserves count sub-front end licenses and count sub-kernel
licenses for each user in the list.
reservesub [count] group usergroups Reserves count sub-front end licenses and count sub-kernel
... licenses for each user in the listed user groups.
All the restriction script directives above automatically support IPv4 and IPv6 environments
with no additional configuration required.
License Reservations
The reserve and reservesub directives allow you to guarantee license availability to particular
users or machines. It is important to note that reserved licenses are always reserved and are
inaccessible to all other users or machines.
In some situations, it may be necessary to reserve unequal numbers of front end and kernel
licenses. This can be accomplished by using the following additional directives: reservefe,
reservesubfe, reservekernel, and reservesubkernel. The syntax for reservefe and
reservekernel is identical to the syntax for reserve and the syntax for reservesubfe and
reservesubkernel is identical to the syntax for reservesub.
AuthName Sample1
order allow,deny
allow from all
deny from hostname1
allow user all
deny user user1
The following script will only allow license requests from users user1 through user5 in the
range of 192.168.2.1 to 192.168.2.12, as well as 192.168.0.1 and 192.168.0.5. License
requests from any other users or machines will be denied.
AuthName Sample2
order deny,allow
deny from all
allow from [192.168.2.1 192.168.2.12] 192.168.0.1 192.168.0.5
deny user all
allow user user1 user2 user3 user4 user5
AuthName Sample3
AuthGroupFile mathlmgroup1.txt
order deny,allow
deny from all
allow hostgroup group1
deny user all
allow group group2 group3
36 System Administration for Network Licenses
This is the file mathlmgroup1.txt. It defines one machine group and two user groups.
AuthName Sample4
order deny,allow
deny from host1
allow user user1
The value of the order directive is the only difference between the preceding script and the
following script, but the meaning of the script is reversed. This script only allows license
requests from user1. A license request from user1 logged on to host1 will be denied. Such a
request matches both rules, but the request is denied because the deny rule has precedence.
AuthName Sample5
order allow,deny
deny from host1
allow user user1
AuthName Sample6
order allow,deny
allow from all
allow user all
reservekernel 3 from 192.168.0.1
reserve user user1
System Administration for Network Licenses 37
The following script will allow all license requests. It reserves two front end licenses, two kernel
licenses, and four kernel subprocess licenses for user1. This will guarantee user1 the neces-
sary resources for parallel computations. For more information on parallel computing see the
"Parallel Computing Tools User Guide".
AuthName Sample7
order allow,deny
allow from all
allow user all
reservefe 2 user user1
reservekernel 2 user user1
reservesubkernel 4 user user1
The following script will only allow license requests from user1, user2, hostname1, hostÖ
name2, domain1.com, and addresses in the range 192.168.1.1 through 192.168.2.9. It
reserves three kernel licenses and three front end licenses for hostname2, another three kernel
licenses and three front end licenses for the addresses from 192.168.1.1 to 192.168.2.9,
one kernel license and one front end license for user1, and one kernel license and one front
end license for user2. In this script, a total of eight front end licenses and eight kernel licenses
are reserved.
AuthName Sample8
order deny,allow
deny from all
allow from hostname1 hostname2 .domain1.com [192.168.1.1 192.168.2.9]
deny user all
allow user user1 user2
It may be easier to visualize the number of licenses being restricted in Sample8 if you notice
that the first instance of reserve can also be written in the following form.
AuthName Sample9
AuthGroupFile mathlmgroup2.txt
order deny,allow
deny from all
allow hostgroup group1 group2
deny user all
allow group group3
This is the file mathlmgroup2.txt. It defines two machine groups and one user group.
Troubleshooting MathLM
Diagnostics
The following techniques are useful for debugging problems with client connections to the
license server.
† Launch MathLM with the option -foreground. This option allows you to see how requests
are handled by MathLM in real time.
System Administration for Network Licenses 39
† Log MathLM messages to a file with an increased level of verbosity by launching MathLM
with the options -logfile and -loglevel. This allows you to see how requests are handled
by MathLM over a certain period of time.
† From a command line on the client, run the Mathematica kernel with the option -lmverbose
and examine the messages produced. This option prints diagnostic information on connect-
ing to the license manager.
To successfully start MathLM, use the option -pwfile followed by the full pathname of the
mathpass file.
Enter Password~brings up the front end password dialog box. See "Entering a Single-
Machine Password" for details.
Quit~exits Mathematica. You are given the option of saving your work.
40 System Administration for Network Licenses
If you are running the kernel only, the following message will be displayed.
You can press Ctrl+C to quit, or follow the instructions in "Entering a Single-Machine Password"
to enter a single-machine password.
If these error messages are displayed, check that MathLM is running on the license server. If
MathLM quits, it must be restarted in order to serve licenses. If there is a firewall between the
license server and the client, verify that the firewall is configured to allow traffic through the
proper port.
The Client Can Connect to the License Server, but Is Denied a License
because the Process Limit Has Been Reached.
If this happens, the following dialog box appears to notify you of an error.
Enter Password~brings up the front end password dialog box. See "Entering a Single-
Machine Password" for details.
Quit~exits Mathematica.
System Administration for Network Licenses 41
If you are running the kernel only, the following message will be displayed.
You can press Ctrl+C to quit, or follow the instructions in "Entering a Single-Machine Password"
to enter a single-machine password.
The Client Can Connect to the License Server, but Is Denied a Kernel
because the Kernel Process Limit Has Been Reached.
Purchase~links to the Wolfram Mathematica Process Increment Request Form web page.
If you are running the kernel only, the following message will be displayed.
You can press Ctrl+C to quit, or follow the instructions in "Entering a Single-Machine Password"
to enter a single-machine password.
You can purchase additional licenses by contacting Wolfram Research. See the Increment
Request form on the web at wolfram.com/products/mathematica/processes for more informa-
tion on increasing your process increments.
If you are running Mathematica using a network license, see "Restricting and Reserving
Licenses" for more information on guaranteeing kernel availability to particular users.
42 System Administration for Network Licenses
MonitorLM Shows that There Are Available Licenses, but the Client Is
Denied a License because the Process Limit Has Been Reached.
If this happens, there are reserved licenses that are not in use. If necessary, you can reclaim
an unused reserved license by removing the relevant line from the restriction script and restart-
ing MathLM.
The Client Can Connect to the License Server, but Is Denied a License
Based on a Restriction Script.
If MathLM is configured to use a restriction script and an unauthorized client requests a license,
the following message will be displayed.
Enter Password~brings up the front end password dialog box. See "Entering a Single-
Machine Password" for details.
Quit~exits Mathematica.
If you are running the kernel only, the following message will be displayed.
You can press Ctrl+C to quit, or follow the instructions in "Entering a Single-Machine Password"
to enter a single-machine password.
System Administration for Network Licenses 43
If the client that was denied should be allowed to request a license, edit the restriction script
and restart MathLM.
If you are running the front end, the following dialog box appears.
Enter Password~brings up the front end password dialog box. See "Entering a Single-
Machine Password" for details.
Quit~exits Mathematica. You are given the option of saving your work.
If you are running the kernel only, you will receive the following prompt to indicate that the
connection has been lost.
You may attempt to connect to the license server again, or you may exit Mathematica.
Technical Support
For further assistance, check the Technical Support FAQs on the web at support.wolfram.com.
If you are a Site License Administrator, additional Site License Documentation is available at
site.wolfram.com. If you do not find the information you need, please contact Technical Support
by sending email to support@wolfram.com or by calling +1-217-398-6500. Include your license
number in all correspondence. Your license number is located on your electronic or printed
license certificate. It is also available after installation by going to the Help menu and clicking
About Mathematica. You must be a registered user in order to receive installation support.
You must have a current Premier Service subscription to receive Technical Support.
Mathematica
Windows
Installing Mathematica on Windows
Installing Mathematica for Network Licenses
Requirements
Mathematica is available for Windows, Unix, Linux, and Mac OS X. For a complete list of plat-
form availability, visit www.wolfram.com/products/mathematica/platforms.html. Any supported
machine can act as a client for running Mathematica, provided the following two conditions are
met:
† The client has access to the Mathematica files, either locally or from a file server on the
network.
A license server can also function as its own client. However, this is not recommended. If the
machine has to be rebooted for any reason, the serving of licenses to all other clients on the
network may be disrupted.
Before you install Mathematica as a license server client, MathLM should already be installed
and running on a license server on the network (see "Installing MathLM" for details). To com-
plete the Mathematica installation, you will need to know the name or IP address of the license
server running MathLM.
System Administration for Network Licenses 45
To Install Mathematica:
1. Insert the Mathematica DVD. The Wolfram Mathematica 7 window appears on your
screen. Click the button labeled Install Mathematica to a hard disk.
2. The Wolfram Mathematica Setup dialog appears on your screen. Click Next to begin
the installation process.
46 System Administration for Network Licenses
5. Click Next to add Mathematica shortcuts to the Start menu in the Wolfram Mathematica
folder. If you would like to select a different folder, click Browse.
8. Mathematica starts up and the following password dialog box appears. Select Network
License. Then enter the name or IP address of the license server running MathLM in the
text field provided.
To run Mathematica, you must register with Wolfram Research and receive a password. See
"Registration and Passwords" for further information.
1. Insert the Mathematica DVD. The Wolfram Mathematica 7 window appears on your
screen. Click the button labeled Install Mathematica to a hard disk.
2. The Wolfram Mathematica Setup dialog appears on your screen. Click Next to begin
the installation process.
50 System Administration for Network Licenses
5. Click Next to add Mathematica shortcuts to the Start menu under Wolfram Mathematica.
8. Mathematica starts up and the following password dialog box appears. Select Single
Machine. Then enter your name, the name of your organization, and your license num-
ber (located on your electronic or printed license certificate) in the text fields provided.
Click OK when you are done.
System Administration for Network Licenses 53
9. The following dialog box appears showing the MathID number for your machine. To obtain
your password, click the Web button, go to register.wolfram.com, or contact Wolfram
Research (see "Registration and Passwords" for further information). You will need to
supply your license number and your MathID number.
10. Enter your password and click OK. You are now ready to start using Mathematica.
Installing Mathematica from a file server requires first copying the installer executable and all
files in the Mathematica distribution from the DVD onto the file server.
1. Insert the Mathematica DVD into the drive on the file server. Open a My Computer
window, then right-click the DVD in the list and select Open.
2. An Explorer window appears showing the contents of the DVD. Select the Windows folder.
3. Copy the Windows folder from the DVD to a location on the file server accessible to exter-
nal users over the network.
Once this step is complete, you can install the Mathematica files on each client.
4. From the client, connect to the file server and open the Windows directory that was cre-
ated on the file server.
6. Follow the same steps as for installing from a DVD (see "Network License" and "Single-
Machine License").
54 System Administration for Network Licenses
The following instructions explain how to write a simple script to silently install Mathematica
from a file server. These instructions require that you have a mathpass file with a valid pass-
word. See "Registrations and Passwords" for more information on sitewide mathpass
configurations.
1. Follow the instructions in the first part of "Installing Mathematica from a File Server" to
copy the installer and files from the DVD to a file server.
2. Copy your mathpass file to the same directory on the file server as the installer and
Mathematica files.
3. Open Notepad (Start Menu Programs Accessories Notepad) and type the follow-
ing lines into a new file.
@echo off
echo Installing Mathematica...
\\server\math\setup.exe /silent /suppressmsgboxes /log="C:\Windows\Temp\install.log"
echo Creating password file...
copy \\server\math\mathpass "C:\Directory\Name"
echo Mathematica installation complete.
System Administration for Network Licenses 55
4. Change all instances of \\server\math to the pathname of the network share where the
Mathematica installation files and mathpass file were copied.
5. Change "C:\Directory\Name" to the directory listed here for your version of Windows.
Be sure to enclose the name of the directory in quotes.
Windows 2000/XP~
"C:\Documents and Settings\All Users\Application Data\Mathematica"
Windows Vista~"C:\ProgramData\Mathematica"
Note: These directories are the values of $BaseDirectory for different versions of Win-
dows. See "Configuration Files on Windows" for further information.
6. To save the file, choose File Save. Save the file in the same directory as the Mathemat-
ica installation files. Type the filename install.bat, and choose All Files from the Save as
type popup menu. Click Save, then quit Notepad.
1. On the client, open a Command Prompt window, type the pathname of the install.bat
file, and press Enter. For example, if the network share is called \\server\math, type:
\\server\math\install.bat
Installing Mathematica...
Creating password file...
Mathematica installation complete.
2. The installation is now complete. If you see any messages other than those printed here,
check the file C:\Windows\Temp\install.log on the client machine for further information.
Installing Mathematica in this way eliminates the need to take the DVD to each client machine,
and saves time by allowing you to run a simple script instead of responding to the installer
questions.
To Launch Mathematica:
Alternatively, you can open an Explorer window, go to the Program Files\Wolfram Research\
Mathematica\7.0 directory, and double-click the Mathematica icon.
From the Start menu, choose Programs Wolfram Mathematica Mathematica 7 Kernel.
Alternatively, you can open an Explorer window, go to the Program Files\Wolfram Research\
Mathematica\7.0 directory, and double-click the MathKernel icon.
Open a command prompt window and change directory to the top-level Mathematica installa-
tion directory. Type .\math and press Enter.
† The Mathematica fonts will not be available for use by other applications. It is therefore
required that you manually install the fonts on your system. The fonts are found in
SystemFiles\Fonts\Windows in the Mathematica layout. To install these fonts so they can be
used by all other Windows applications, open the Fonts control panel, choose Install New
Font under the File menu, and specify the location of the fonts in the Add Fonts dialog
box that appears.
† The MathLink libraries will not be available for use by other applications. Therefore, you
need to copy the MathLink libraries to the appropriate locations on your system. For 32-bit
Windows systems, the MathLink libraries consist of seven files: ml32i1.dll, ml32i2.dll,
ml32i3.dll, mlmap32.mlp, mlshm32.mlp, mltcp32.mlp, and mltcpip32.mlp, which are
located in SystemFiles\Links\MathLink\DeveloperKit\Windows\SystemAdditions in the Mathe-
matica layout. Copy these files to the WINNT\System32 folder on Windows 2000, or the
Windows\System32 folder on Windows XP/Vista. For 64-bit Windows platforms, the Math-
Link libraries consist of twelve files: ml32i1.dll, ml32i2.dll, ml32i3.dll, mlmap32.mlp,
mlshm32.mlp, mltcp32.mlp, and mltcpip32.mlp, which are located in SystemFiles\
Links\MathLink\DeveloperKit\Windows\SystemAdditions, and ml64i2.dll, ml64i3.dll,
mlshm64.mlp, mltcp64.mlp, mltcpip64.mlp, which are located in SystemFiles\Links\
MathLink\DeveloperKit\Windows-x86-64\SystemAdditions. Copy the first seven files to the
Windows\Syswow64 folder and the other five files to the Windows\System32 folder.
System Administration for Network Licenses 57
† The proper file associations will not be set up for Mathematica. You can set these associa-
tions manually by using the Folder Options dialog box under the Tools menu of the
Explorer window. You will need to specify the MIME type as application/mathematica and
the file extension as .nb.
† A Start menu entry for Mathematica will not be created automatically. You can add this
manually by editing the Start menu settings in the dialog box that appears when you
choose Settings Taskbar and Start Menu under the Start menu.
Command-Line Options
The option -lmverbose is usefull for debuggin problems related to the license server
The option -mathlink can also be used as a command-line option for the Mathematica front
end. See www.wolfram.com/solutions/mathlink for additional information about MathLink.
The mode set by -noprompt is useful for running a sequence of commands from a batch file.
The string for -password should have the form "!servername" or "machinename mathid licensenumber
password".
58 System Administration for Network Licenses
You should run these tests from a regular user account and not from an account with administra-
tive privileges.
To run Mathematica using a network license, both the client machine and the license server
must be on the network and MathLM must be running.
If you run into problems when doing these tests, see the troubleshooting tips in
"Troubleshooting on Windows". If you do not find the answer there, check the Technical Sup-
port website at support.wolfram.com/mathematica.
In[1]:=
2. Type N[Pi, 20] and press Enter. The number in the output should match the output
shown here.
Out[1]= 3.1415926535897932385
In[2]:=
A splash screen with initialization information appears briefly, after which an empty note-
book and the Welcome Screen appear.
2. Type N[Pi,20]. Then hold down the Shift key and press Enter to evaluate. This should
send the command to the kernel and return the same result as before. The In[1] and
Out[1] labels are prepended once the evaluation is completed.
System Administration for Network Licenses 59
In the notebook window, there should be a horizontal line across the notebook; this is the
horizontal insertion bar. If you do not see one, move the pointer until it becomes a horizon-
tal I-beam and click once to see the insertion bar.
3. Press the Esc key. You should see three small horizontal lines in a column (Ç). Type int
and press Esc again. You should see an integral sign (Ÿ ). As an additional font check,
typing î[CheckmarkedBox] and î[CirclePlus] should print the symbols and ⊕,
respectively. If the symbols show up correctly, the fonts have been properly installed.
4. From the Help menu, choose Documentation Center. The Mathematica Documentation
Center should appear.
Global settings that affect all users are stored in subdirectories of the directory
$BaseDirectory. The default value of $BaseDirectory for different versions of Windows is
shown in the following table. To redefine the location of global preference settings and initializa-
tion data, set the environment variable MATHEMATICA_BASE.
Settings that only affect a particular user are stored in subdirectories of the directory
$UserBaseDirectory. The default value of $UserBaseDirectory for different versions of Win-
dows is shown in the following table. To redefine the location of user preferences and initializa-
tion data, set the environment variable MATHEMATICA_USERBASE.
Settings in the directory $UserBaseDirectory override global settings defined in the directory
$BaseDirectory.
60 System Administration for Network Licenses
In the pathnames that follow, replace the variables $BaseDirectory and $UserBaseDirectory
with the appropriate directories for your system. To find their locations on your system, evalu-
ate the command $BaseDirectory (or $UserBaseDirectory) in a Mathematica notebook.
Kernel
The initialization files used by the kernel contain Mathematica commands that are evaluated at
startup, such as function definitions, packages to load, and kernel option settings. These com-
mands are also available to the Mathematica front end.
$BaseDirectory\Kernel\init.m
This file is used to initialize the kernel and therefore should store any kernel commands
that are appropriate for all users running the kernel.
$UserBaseDirectory\Kernel\init.m
Front End
Front end initialization files store preference settings such as the values of global options in the
Option Inspector. These files are automatically updated by Mathematica when you change a
setting in the front end. To make changes to this file, make your changes from within Mathemat-
ica rather than editing the file directly.
$BaseDirectory\FrontEnd\init.m
This file stores systemwide defaults used by all Mathematica front ends. The settings in
this file affect all users. "Systemwide Defaults on Windows" explains how to implement
changes to this global file.
$UserBaseDirectory\FrontEnd\init.m
This file defines settings within the front end that are specific to each user.
Passwords
Passwords are stored in the mathpass file, described in further detail in "Registration and Pass-
words". In the following pathname, replace the variable $InstallationDirectory with the
directory where you installed Mathematica. The default value of $InstallationDirectory on
Windows is C:\Program Files\Wolfram Research\Mathematica\7.0. To find the value of
$InstallationDirectory on your system, evaluate the command $InstallationDirectory
in a Mathematica notebook.
$BaseDirectory\Licensing\mathpass
$InstallationDirectory\Configuration\Licensing\mathpass
$UserBaseDirectory\Licensing\mathpass
While this is not normally the location for the password file, a user-specific mathpass file
can be stored here.
2. Quit Mathematica.
These settings will now be used by the front end unless overridden by the local init.m file stored
in the user’s $UserBaseDirectory\FrontEnd directory.
2. Add any Mathematica commands that should be evaluated on startup. For example, you
may want to add a function definition or display a message at startup. Enter all the com-
mands in the same cell, separating commands with semicolons.
3. Make this cell an initialization cell by selecting the cell bracket and then choosing Cell
Cell Properties Initialization Cell.
4. When you have finished making your changes, choose File Save and select Mathemat-
ica Package from the Save as type popup menu. Then save the file as
$BaseDirectory\Kernel\init.m.
These commands will be evaluated when users launch Mathematica. If you added a function
definition, that function will be available to all users.
If you have created systemwide defaults you want to carry over to new local installations, you
can add lines to an installation script to copy preconfigured init.m files as part of a new installa-
tion. For information about installation scripts, see "Installing Mathematica on Windows". To
copy systemwide defaults, add a line to the script similar to the line that copies the mathpass
file.
System Administration for Network Licenses 63
Troubleshooting on Windows
Passwords
If the front end password dialog box appears when you launch Mathematica, either
Mathematica could not locate the mathpass file or there was no valid password in the math-
pass file. To resolve this problem, first check that there is a mathpass file in one of these
directories: $BaseDirectory\Licensing, $InstallationDirectory\Configuration\Licensing,
or $UserBaseDirectory\Licensing. To find the exact location of these directories on your
machine, evaluate the command $BaseDirectory (or $InstallationDirectory or
$UserBaseDirectory) in a notebook. If you did not find a mathpass file in these locations,
follow the instructions in "Entering a Single-Machine Password" to reenter your password.
If there is a mathpass file in one of those directories, the password or passwords are invalid.
Make sure that your MathID number matches the MathID number used to issue your password.
If your MathID number changes, you will need to contact Customer Service to get a new pass-
word. Contact information is provided in "Registration and Passwords".
If you need to reset the front end preferences to their default values, hold down Shift+Ctrl
during startup. This will cause the initialization file to be rebuilt automatically.
Caches
Information about your Mathematica system layout, such as the locations of text resource files,
is stored in caches. These caches are located in C:\Documents and Settings\username\Local
Settings\Application Data\Mathematica\FrontEnd\7.0 Caches\ on Windows 2000/XP and in
C:\Users\username\AppData\Local\Mathematica\FrontEnd\7.0 Caches\ on Vista.
A corrupted cache may cause the front end to produce an error or quit immediately on startup.
The most convenient way to restore the caches to their default values is to hold down
64 System Administration for Network Licenses
Shift+Ctrl during startup. This will cause the Mathematica caches and the initialization file to be
rebuilt automatically. If you want to rebuild your caches but retain your preferences, hold down
Shift during startup. This will delete and rebuild the cache without rebuilding your front end
initialization file.
Technical Support
For further assistance, check the Technical Support FAQs on the web at support.wolfram.com.
If you are a Site License Administrator, additional Site License Documentation is available at
site.wolfram.com. If you do not find the information you need, please contact Technical Support
by sending email to support@wolfram.com or by calling +1-217-398-6500. Include your license
number in all correspondence. Your license number is located on your electronic or physical
copy of the license certificate. It is also available after installation by going to the Help menu
and clicking About Mathematica. You must be a registered user in order to receive installation
support. You must have a current Premier Service subscription to receive Technical Support.
Mathematica is available for Windows, Unix, Linux, and Mac OS X. For a complete list of plat-
form availability, visit www.wolfram.com/products/mathematica/platforms.html. Any supported
machine can act as a client for running Mathematica, provided the following two conditions are
met:
† The client has access to the Mathematica files, either locally or from a file server on the
network.
A license server can also function as its own client. However, this is not recommended. If the
machine has to be rebooted for any reason, the serving of licenses to all other clients on the
network may be disrupted.
Before you install Mathematica as a license server client, MathLM should already be installed
and running on a license server on the network (see "Installing MathLM on Windows", and
"Installing MathLM on Unix, Linux, and Mac OS X" for details). To complete the Mathematica
installation, you will need to know the name or IP address of the license server running MathLM.
System Administration for Network Licenses 65
To install Mathematica on Unix and Linux, you may need root privileges.
To Install Mathematica:
Note: This step may not be required on some Linux and Unix platforms, as some operat-
ing systems automatically handle mounting.
2. Change directory to /cdrom/Unix/Installer. Note that the exact location of the CD/DVD
mount point might be different for your platform.
cd /cdrom/Unix/Installer
./MathInstaller
--------------------------------------------------------------
Wolfram Mathematica 7 Installer
--------------------------------------------------------------
4. (Unix only) You are asked to select the platforms for which you are doing the installation.
Select one or more of the available options and press Enter to continue.
5. The installer prompts you to specify the directory in which Mathematica should be in-
stalled. The default location is /usr/local/Wolfram/Mathematica/7.0. Press Enter to
accept the default, or type in a new location and then press Enter.
Note: If you specify a directory that does not exist, the installer will give you the option
of creating the directory. If a copy of Mathematica already exists in the directory you
specify, the installer will inform you before overwriting the files.
66 System Administration for Network Licenses
Note: If you are installing over a previous version of Mathematica, your existing math-
pass file and custom settings will not be deleted.
6. Once you have answered all the questions, the installer begins copying files from the
CD/DVD to the directory you specified. The progress is indicated by a progress bar on the
screen.
Now installing...
[*************** ]
7. You are asked for the location in which to copy the executable scripts. You should choose
a directory that is present on each user’s PATH. The scripts are also installed in the ExeÖ
cutables subdirectory of the Mathematica installation directory. Type a location or accept
the default and press Enter.
Type the directory path in which the Mathematica scripts will be created,
or press ENTER to select /usr/local/bin:
Note: The installer checks to see if any other Mathematica scripts exist in the specified
directory. If they do, you are given the chance to rename the scripts.
8. You are given several options for configuring the password. Type 2 and press Enter to run
Mathematica using a network license.
Please choose how you want to configure the password for Mathematica 7.0.
9. Type the hostname of the server running MathLM, as given by the hostname command.
In some cases, this includes the domain name. Or, enter the IP address of the MathLM
server. Press Enter to continue.
Enter the hostname of the machine on which your MathLM license manager
is running:
System Administration for Network Licenses 67
Note: The installer does not attempt to verify the server name you type. If you prefer,
you may type any arbitrary text here and press Enter. This creates the mathpass file with
an invalid password entry. You may then edit the mathpass file manually to add a correct
password later. More information on the mathpass file is given in "Registration and
Passwords".
10. The installer creates the mathpass file and displays its location. The installation is now
complete.
Installation complete.
The installer also adds an additional menu folder named Wolfram to the desktop menu. Inside
the folder is an item named Mathematica that points to the most recently installed version of
Mathematica. File associations are also modified such that .nb files are now associated with the
most recently installed version of Mathematica.
To run Mathematica, you must register with Wolfram Research and receive a password. See
"Registration and Passwords" for further information.
To install Mathematica on Unix and Linux, you may need root privileges.
Note: This step may not be required on some Linux and Unix platforms, as some operat-
ing systems automatically handle mounting.
2. Change directory to /cdrom/Unix/Installer. Note that the exact location of the CD/DVD
mount point might be different for your platform.
cd /cdrom/Unix/Installer
./MathInstaller
68 System Administration for Network Licenses
--------------------------------------------------------------
Wolfram Mathematica 7 Installer
--------------------------------------------------------------
4. (Unix only) You are asked to select the platform for which you are doing the installation.
Select one of the available options and press Enter to continue.
5. The installer prompts you to specify the directory in which Mathematica should be in-
stalled. The default location is /usr/local/Wolfram/Mathematica/7.0. Press Enter to
accept the default, or type in a new location and then press Enter.
Note: If you specify a directory that does not exist, the installer will give you the option
of creating the directory. If a copy of Mathematica already exists in the directory you
specify, the installer will inform you before overwriting the files.
Note: If you are installing over a previous version of Mathematica, your existing math-
pass file and custom settings will not be deleted.
6. Once you have answered all the questions, the installer begins copying files from the
CD/DVD to the directory you specified. The progress is indicated by a progress bar on the
screen.
Now installing...
[*************** ]
7. You are asked for the location in which to copy the executable scripts. You should choose
a directory that is present on each user’s PATH. The scripts are also installed in the ExeÖ
cutables subdirectory of the Mathematica installation directory. Type a location or accept
the default and press Enter.
Type the directory path in which the Mathematica scripts will be created,
or press ENTER to select /usr/local/bin:
System Administration for Network Licenses 69
Note: The installer checks to see if any other Mathematica scripts exist in the specified
directory. If they do, you are given the chance to rename the scripts.
8. You are given several options for configuring the password. Type 1 and press Enter to run
Mathematica using a single-machine license.
Please choose how you want to configure the password for Mathematica 7.0.
9. Your machine name and MathID number are displayed. To obtain your password, contact
Wolfram Research (see "Registration and Passwords" for details). You will need to supply
your MathID number and the license number located on your electronic or physical copy
of the license certificate.
10. Enter your name, the name of your organization, your license number (located on your
electronic or physical copy of the license certificate), and your password, and press Enter
when you are done.
70 System Administration for Network Licenses
11. The installer creates the mathpass file and displays its location. The installation is now
complete.
See http://reference.wolfram.com/password if
Mathematica is installed on multiple machines
and you need to set up a single, sitewide
password file.
The installer also adds an additional menu folder named Wolfram to the desktop menu. Inside
the folder is an item named Mathematica that points to the most recently installed version of
Mathematica. File associations are also modified such that .nb files are now associated with the
most recently installed version of Mathematica.
To install Mathematica from a file server, you first must make the installer and Mathematica
files available to the clients. You can do this by copying the contents of the CD/DVD to the file
server and exporting the directory, or by exporting the CD/DVD mount point on the file server.
Then, mount the directory with the Mathematica distribution on the client and change to this
directory, and run MathInstaller to install Mathematica on the client machines. (Note that
you must run MathInstaller from the directory in which it is located.) If you are installing
Mathematica in a mixed-platform environment, you may need to use the MathInstaller
option -platform to ensure that the correct files for your platform are installed.
System Administration for Network Licenses 71
Note: Default values are used for any options that are not specified explicitly on the
command line.
Valid input for -createdir is y for yes or n for no. By default, this value is set to y.
The default directory for -execdir is /usr/local/bin. This option only works with an auto-
matic installation.
The values for -method may vary by product. When this option is applicable, the values can be
determined by running the installer. The default value for this option is Full.
72 System Administration for Network Licenses
Valid input for -overwrite is y for yes or n for no. By default, this value is set to y. This option
only works with an automatic installation.
The default for -platforms is the system you are installing on, if that information is available
to the installer. This option only works with an automatic installation.
Valid input for -selinux is y for yes or n for no. By default, this value is set to n.
The option -silent suppresses any output from being displayed on the screen. The output is
instead written to a file named InstallerLog-number. If the installation is unsuccessful, the log
file is saved in the /tmp directory. Otherwise, the file is moved to the target directory and
renamed InstallerLog.
The directory specified for -targetdir corresponds to the value of the global variable
$InstallationDirectory. The default value is /usr/local/Wolfram/Mathematica/7.0.
This option only works with an automatic installation.
To complete the installation in one step, run a command like the following.
This allows you to complete the installation automatically in one step, while still being able to
customize various details such as the directory to install to. You are not prompted to enter your
password using this method, so you will need to enter a password the first time Mathematica is
launched.
If you are doing many installations, you might find it convenient to include the MathInstaller
command with all the relevant options in a shell script. Running the shell script is then an easy
way to do an identical customized installation on multiple machines. You can further simplify
the installation process by including a line in your script that copies an existing mathpass file to
the appropriate location on the newly installed machine. Note that MathInstaller must be run
from the directory in which it is located, so your script may require a command to change
directory. See "Registrations and Passwords" for information on sitewide mathpass
configurations.
To Launch Mathematica:
Make sure that you are running MathLM. Then, from a shell, type mathematica and press Enter.
Alternatively, if you are running X, an additional menu folder named Wolfram has already been
added to the desktop menu. In the folder, an item named Mathematica points to the most
recently installed version of Mathematica. File associations have also been modified such that
.nb files now associate with the most recently installed version of Mathematica.
The math command starts the kernel from within a shell. The kernel is the part of Mathematica
that handles calculations. This is also used by the front end.
Command-Line Options
The option -lmverbose is usefull for debuggin problems related to the license server
The option -mathlink can also be used as a command-line option for the Mathematica front
end. See www.wolfram.com/solutions/mathlink for additional information about MathLink.
The string for -password should have the form "!servername" or "machinename mathid licensenumber
password".
mathematica
The mathematica command runs the X front end. In order for the front end to run, the DISÖ
PLAY environment variable must be set and the front end must be able to locate the fonts
included with Mathematica.
Command-Line Options
-backgroundTaskDelay n specify the time (in milliseconds) that the front end delays
background tasks while waiting for input
-cleanStart ignore stored caches and rebuild the front end preferences
file
-copyright display copyright information on the command line
-dontUpdatePrefs prevent changes to the user's preference settings
-font f specify the font used in menus, buttons, etc.
-help display a list of all command-line options
-lmverbose print diagnostic information to stderr when connecting to
MathLM
-mathlink make the front end run as a child process that is capable of
accepting MathLink packets
-nogui prevent the display of any kind of window or dialogs
-noSplashScreen prevent the splash screen from being displayed on startup
-noTrueTypeFont prevent the use of TrueType font in the display
-preferencesDirectory dir specify the location where preference settings are stored
-primaryModifierMask mask specify the primary mask to be used as the command key
-pwfile file specify a file in which to look for Mathematica passwords
-pwpath p specify the search path for a password file
-secondaryModifierMask mask specify the secondary mask to be used as the command
key
-singleLaunch allow only one copy of the front end per display
System Administration for Network Licenses 75
The option -cleanStart will ignore the caches stored in the directory
$UserBaseDirectory /FrontEnd/7.0_Caches, and will rebuild the front end preferences
file, $UserBaseDirectory /FrontEnd/init.m. This option can also be abbreviated as
-clean.
When using -font, a list of possible font names can be found by using xfontsel. The name
can be expressed either as an X Logical Font Description or as a valid font alias.
The option -lmverbose is usefull for debuggin problems related to the license server
The option -mathlink may be useful when the front end is used as a typesetting or graphics
rendering service. See www.wolfram.com/solutions/mathlink for additional information about
MathLink.
The option -singleLaunch will prohibit multiple front end launches only if the current front end
was launched with the -singleLaunch option.
Valid styles for -style are motif, motifplus, windows, cde, platinum, sgi, and compact.
You should run these tests from a regular user account and not from an account with administra -
tor privileges.
76 System Administration for Network Licenses
To run Mathematica using a network license, both the client machine and the license server
must be on the network and MathLM must be running.
If you run into problems when doing these tests, see the troubleshooting tips in "Trouble-
shooting on Unix and Linux". If you do not find the answer there, check the Technical Support
website at support.wolfram.com/mathematica.
In[1]:=
2. Type N[Pi, 20] and press Enter. The number in the output should match the output
shown here.
Out[1]= 3.1415926535897932385
In[2]:=
On Unix and Linux, you can test the kernel on a remote machine by using the command ssh
hostname /usr/local/bin/math. (The exact pathname could be different depending on how
Mathematica was installed.) This command will launch the kernel on the remote machine host-
name. When you see the In[1] label, follow step 2 and step 3 in the previous instructions.
Alternatively, you can select Mathematica from the menu folder Wolfram.
A splash screen with initialization information appears briefly, after which an empty note-
book and the Welcome Screen appear.
2. Type N[Pi,20]. Then hold down the Shift key and press Enter to evaluate. This should
send the command to the kernel and return the same result as before. The In[1] and
Out[1] labels are prepended once the evaluation is completed.
In the notebook window, there should be a horizontal line across the notebook; this is the
horizontal insertion bar. If you do not see one, move the pointer until it becomes a horizon -
tal I-beam and click once to see the insertion bar.
System Administration for Network Licenses 77
3. Press the Esc key. You should see three small horizontal lines in a column (Ç). Type int
and press Esc again. You should see an integral sign (Ÿ ). As an additional font check,
typing î[CheckmarkedBox] and î[CirclePlus] should print the symbols and ⊕,
respectively. If the symbols show up correctly, the fonts have been properly installed.
4. From the Help menu, choose Documentation Center. The Mathematica Documentation
Center should appear.
On Unix and Linux, you can test the X front end remotely, provided the ssh server on the
remote machine allows X forwarding. You must be running X on the local machine to do this. In
a shell, type ssh -X hostname /usr/local/bin/mathematica. (The exact pathname could be
different depending on how Mathematica was installed.) This command will launch Mathematica
on the remote machine hostname. When the splash screen appears on your screen, follow step 2
and step 3 in the previous instructions.
† Global settings that affect all users are stored in subdirectories of the directory
$BaseDirectory. The default value of $BaseDirectory on Unix and Linux is
/usr/share/Mathematica. To redefine the location of global preference settings and
initialization data, set the environment variable MATHEMATICA_BASE.
† Settings that only affect a particular user are stored in subdirectories of the directory
$UserBaseDirectory, which is typically a subdirectory of the user’s home directory. The
default value of $UserBaseDirectory on Unix and Linux is ~/.Mathematica. To redefine
the location of user preferences and initialization data, set the environment variable
MATHEMATICA_USERBASE.
Settings in the directory $UserBaseDirectory override global settings defined in the directory
$BaseDirectory.
In the pathnames that follow, replace the variables $BaseDirectory and $UserBaseDirectory
with the appropriate directories for your system. To find their locations on your system, evalu-
ate the command $BaseDirectory (or $UserBaseDirectory) in a Mathematica notebook.
Kernel
The initialization files used by the kernel contain Mathematica commands that are evaluated at
startup, such as function definitions, packages to load, or kernel option settings. These com-
mands are also available to the Mathematica front end.
78 System Administration for Network Licenses
$BaseDirectory /Kernel/init.m
This file is used to initialize the kernel and therefore should store any kernel commands
that are appropriate for all users running the kernel.
$UserBaseDirectory /Kernel/init.m
Front End
Front end initialization files store preference settings such as the values of global options in the
Option Inspector. These files are automatically updated by Mathematica when you change a
setting in the front end. To make changes to this file, make your changes from within Mathemat-
ica rather than editing the file directly.
$BaseDirectory /FrontEnd/init.m
This file stores systemwide defaults used by all Mathematica front ends. The settings in
this file affect all users. "Systemwide Defaults on Unix and Linux" explains how to imple-
ment changes to this global file.
$UserBaseDirectory /FrontEnd/init.m
This file defines settings within the front end that are specific to each user.
$UserBaseDirectory /FrontEnd/7.0_Caches/
This directory within the user’s home directory stores information on system settings that
are read by the front end.
Passwords
Passwords are stored in the mathpass file, described in further detail in "Registration and
Passwords". In the following pathname, replace the variable $InstallationDirectory with the
directory where you installed Mathematica. The default value of $InstallationDirectory on
Unix and Linux is /usr/local/Wolfram/Mathematica/7.0. To find the value of
$InstallationDirectory on your system, evaluate the command $InstallationDirectory
in a Mathematica notebook.
System Administration for Network Licenses 79
$BaseDirectory /Licensing/mathpass
$InstallationDirectory /Configuration/Licensing/mathpass
$UserBaseDirectory /Licensing/mathpass
While this is not normally the location for the password file, a user-specific mathpass file
can be stored here.
The following instructions assume that $BaseDirectory and $UserBaseDirectory have their
default values, /usr/share/Mathematica and ~/.Mathematica respectively.
2. Quit Mathematica.
These settings will now be used by the front end unless overridden by the local init.m file stored
in the user’s directory ~/.Mathematica/FrontEnd.
2. Add any Mathematica commands that should be evaluated on startup. For example, you
may want to add a function definition or display a message at startup. Enter all the com-
mands in the same cell, separating commands with semicolons.
80 System Administration for Network Licenses
3. Make this cell an initialization cell by selecting the cell bracket and then choosing Cell
Cell Properties Initialization Cell.
4. When you have finished making your changes, choose File Save and select
Mathematica Package from the Save as type popup menu. Then save the file as
/usr/share/Mathematica/Kernel/init.m.
These commands will be evaluated when users launch Mathematica. If you added a function
definition, that function will be available to all users.
Font Formats
The Mathematica front end supports BDF, TrueType, and Type1 fonts. These fonts are automati-
cally installed by MathInstaller during installation.
Font Installation
All machines that display the front end must have access to the fonts included with Mathemat-
ica. If the Mathematica process is running on a remote machine and the front end is displayed
on the local machine, the X server on the local machine must know where to find the Mathemat-
ica fonts. To do this, add the Mathematica fonts to the local font path by running a command
like the following on the local machine.
Be sure to execute xset fp rehash to make the fonts available to the local X server.
For optimal onscreen performance, Type1 fonts should appear before BDF fonts in the font
path. Hence, $InstallationDirectory/SystemFiles/Fonts/Type1 should appear before
$InstallationDirectory/SystemFiles/Fonts/BDF. You can check the order of the font
path by executing the command xset q.
Note: TrueType fonts are automatically loaded and do not require an xset command.
System Administration for Network Licenses 81
Font Servers
You may prefer not to install local copies of the Mathematica fonts on all machines. You can
instead set up a font server with all the necessary Mathematica fonts. The other machines on
the network can then find the fonts as needed by reading them from the Mathematica directory
on the font server. Consult your operating system’s documentation for further information.
GhostScript
If you want to view Mathematica graphics using GhostScript, you need to make GhostScript
aware of the Mathematica fonts. For more information, contact Technical Support by sending
email to support@wolfram.com, or visit support.wolfram.com/mathematica/graphics/export
/ghostscript.html.
82 System Administration for Network Licenses
CD or DVD
† Make sure the CD or DVD is properly mounted with the correct mount command (see
"Mounting a CD or DVD on Unix and Linux"). If the filenames on the CD/DVD appear in the
wrong case, it means the CD/DVD is mounted incorrectly.
Installation
Make sure to run the installer from the directory in which it is located.
Passwords
If the front end password dialog box appears when you launch Mathematica, either Mathemat-
ica could not locate the mathpass file or there was no valid password in the mathpass file.
To resolve this problem, first check that there is a mathpass file in one of these directories:
/usr/share/Mathematica/Licensing, $InstallationDirectory/Configuration/Licensing,
or ~/.Mathematica/Licensing. If you did not find a mathpass file in these locations, follow
the instructions in "Entering a Single-Machine Password" to reenter your password.
If there is a mathpass file in one of those directories, the password or passwords are invalid.
Make sure that your MathID number matches the MathID number used to issue your password.
If your MathID number changes, you will need to contact Customer Service to get a new pass-
word. Contact information is provided in "Registration and Passwords".
Paths
Caches
Information about your Mathematica layout, such as the locations of text resource files, is
stored in caches. These caches are located in the directory ~/.Mathematica/FrontEnd/
7.0_Caches. A corrupted cache may cause the front end to produce an error or quit immedi-
ately on startup. The most convenient way to reset the caches to their default values is to use
the option -cleanStart at startup. This will cause the Mathematica caches and the initializa-
tion file to be rebuilt automatically. If you want to rebuild your caches but retain your prefer-
ences, hold down Shift during startup. This will delete and rebuild the cache without rebuilding
the front end initialization file.
Fonts
† Make sure that the fonts are installed on the machine that displays the front end or on a
font server.
† If you see the error xset: bad font path element, either the fonts are not properly
installed on your machine, or your font path is too long and exceeds the allowable limit.
Make sure the fonts are properly installed, or copy the fonts to a directory that is already on
the font path.
Technical Support
For further assistance, check the Technical Support FAQs on the web at support.wolfram.com.
If you are a Site License Administrator, additional Site License Documentation is available at
site.wolfram.com. If you do not find the information you need, please contact Technical Support
by sending email to support@wolfram.com or by calling +1-217-398-6500. Include your license
number in all correspondence. Your license number is located on your electronic or printed
license certificate. It is also available after installation by going to the Help menu and clicking
About Mathematica. You must be a registered user in order to receive installation support.
You must have a current Premier Service subscription to receive Technical Support.
84 System Administration for Network Licenses
Mac OS X
Installing Mathematica on Mac OS X
Installing Mathematica for Network Licenses
Requirements
Mathematica is available for Windows, Unix, Linux, and Mac OS X. For a complete list of plat-
form availability, visit www.wolfram.com/products/mathematica/platforms.html. Any supported
machine can act as a client for running Mathematica, provided the following two conditions are
met:
† The client has access to the Mathematica files, either locally or from a file server on the
network.
A license server can also function as its own client. However, this is not recommended. If the
machine has to be rebooted for any reason, the serving of licenses to all other clients on the
network may be disrupted.
Before you install Mathematica as a license server client, MathLM should already be installed
and running on a license server on the network (see "Installing MathLM" for details). To com-
plete the Mathematica installation, you will need to know the name or IP address of the license
server running MathLM.
To Install Mathematica:
2. Drag the Mathematica icon from this window to the location on your hard drive where you
want to install Mathematica. In order for all users to have access to Mathematica, you
should install it in the systemwide Applications folder. You must have administrative
privileges to do this.
Note: If you are installing over a previous version of Mathematica, your existing math-
pass file and custom settings will not be deleted.
3. When all files have been copied, launch Mathematica by opening the folder where you
installed Mathematica and double-clicking the Mathematica icon.
4. Mathematica starts up and the following dialog box appears. Select Network license.
Then enter the name or IP address of the MathLM license server in the text field provided.
After you install Mathematica you can place the Mathematica icon into the Dock for easier
access. To do this, start Mathematica, and hold down the Ctrl key while clicking the Mathemat-
ica icon in the Dock. In the popup menu that appears, choose Keep in Dock.
To run Mathematica, you must register with Wolfram Research and receive a password. See
"Registration and Passwords" for further information.
86 System Administration for Network Licenses
2. Drag the Mathematica icon from the window to the location on your hard drive where you
want to install Mathematica.
Note: If you are installing over a previous version of Mathematica, your existing math-
pass file and custom settings will not be deleted.
3. When all files have been copied, launch Mathematica by opening the folder where you
installed Mathematica and double-clicking the Mathematica icon.
4. Mathematica starts up and the following dialog box appears. Select Single machine.
Enter your name, the name of your organization, and your license number (located on
your electronic or printed certificate) in the text fields provided. Click OK when you are
done.
System Administration for Network Licenses 87
5. The following dialog box appears showing the MathID number for your machine. To obtain
your password, click the Web button, go to register.wolfram.com, or contact Wolfram
Research (see "Registration and Passwords" for further information). You will need to
supply your license number and your MathID number.
6. Enter your password and click OK. You are now ready to start using Mathematica.
Before following these instructions, Mathematica should be installed on the file server according
to the instructions in "Network License" and "Single-Machine License".
2. In the dialog box that appears, choose a file server from the list or enter the machine
name or IP address of the file server in the text field. Then click Connect.
88 System Administration for Network Licenses
3. Enter your name and password in the dialog box that appears. Then click Connect.
4. A dialog box appears, showing a list of volumes on the file server. Select the volume in
which Mathematica is installed. Then click OK.
5. The volume you selected is mounted on the client machine. Double-click the icon represent-
ing the volume.
6. Navigate to the location where Mathematica is installed. Then drag the Mathematica
package from the file server to the location on the client machine where you want to
install Mathematica. In order for all users to have access to Mathematica, you should
install it in the Applications folder. You must log on as administrator to do this.
System Administration for Network Licenses 89
To Launch Mathematica:
Double-click the Mathematica icon in the directory where Mathematica is installed. Alterna-
tively, if you have placed the Mathematica icon in the dock, single-click the icon.
Open the Terminal application and type the full pathname of the MathKernel binary in the
window that appears. For example, if you installed Mathematica in the Applications folder,
type /Applications/Mathematica.app/Contents/MacOS/MathKernel in a Terminal win-
dow and press Return.
2. Double-click the icon representing the volume with the Mathematica files. Then navigate
to the location where Mathematica is installed.
MathKernel
The command MathKernel starts the kernel, which is the part of Mathematica that handles
calculations. This command is also used by the Mathematica front end.
90 System Administration for Network Licenses
Mathematica
The command Mathematica runs the Mathematica front end. In order to run Mathematica with
a command-line option, you must start it from the command line using the Terminal applica-
tion.
-cleanStart Tells the front end to ignore caches stored in the directory
~/Library/Mathematica/FrontEnd/7.0 Caches, and rebuilds
the front end preferences file,
~/Library/Mathematica/FrontEnd/init.m.
-mathlink Causes the front end to run in MathLink mode. In MathLink
mode, the front end runs as a child process that is capable
of accepting MathLink packets. This option may be useful
when the front end is used as a typesetting or graphics
rendering service.
-preferencesDirectory dir Specifies the location where preference settings are stored.
The default location is ~/Library/Mathematica.
-topDirectory dir Specifies the location of the Mathematica installation
directory.
You should run these tests from a regular user account and not from an account with administra-
tor privileges.
To run Mathematica using a network license, both the client machine and the license server
must be on the network and MathLM must be running.
If you run into problems when doing these tests, see the troubleshooting tips in "Trouble-
shooting on Mac OS X". If you do not find the answer there, check the Technical Support web-
site at support.wolfram.com/mathematica.
In[1]:=
2. Type N[Pi, 20] and press Return. The number in the output should match the output
shown here.
Out[1]= 3.1415926535897932385
In[2]:=
A splash screen with initialization information appears briefly, after which an empty note-
book and the Welcome Screen appear.
2. Type N[Pi,20]. Then hold down the Shift key and press Enter to evaluate. This should
send the command to the kernel and return the same result as before. The In[1] and
Out[1] labels are prepended once the evaluation is completed.
In the notebook window, there should be a horizontal line across the notebook; this is the
horizontal insertion bar. If you do not see one, move the pointer until it becomes a horizon-
tal I-beam and click once to see the insertion bar.
3. Press the Esc key. You should see three small horizontal lines in a column (Ç). Type int
and press Esc again. You should see an integral sign (Ÿ ). As an additional font check,
typing î[CheckmarkedBox] and î[CirclePlus] should print the symbols and ⊕,
respectively. If the symbols show up correctly, the fonts have been properly installed.
4. From the Help menu, choose Documentation Center. The Mathematica Documentation
Center should appear.
† Global settings that affect all users are stored in subdirectories of the directory
$BaseDirectory. The default value of $BaseDirectory on Mac OS X is
/Library/Mathematica. To redefine the location of global preference settings and initializa-
tion data, set the environment variable MATHEMATICA_BASE.
† Settings that only affect a particular user are stored in subdirectories of the directory
$UserBaseDirectory, which is typically a subdirectory of the user's home directory. The
default value of $UserBaseDirectory on Mac OS X is ~/Library/Mathematica. To redefine
the location of user preferences and initialization data, set the environment variable
MATHEMATICA_USERBASE.
System Administration for Network Licenses 93
Settings in the directory $UserBaseDirectory override global settings defined in the directory
$BaseDirectory.
In the pathnames that follow, replace the variables $BaseDirectory and $UserBaseDirectory
with the appropriate directories for your system. To find their locations on your system, evalu-
ate the command $BaseDirectory (or $UserBaseDirectory) in a Mathematica notebook.
Kernel
The initialization files used by the kernel contain Mathematica commands that are evaluated at
startup, such as function definitions, packages to load, or kernel option settings. These com-
mands are also available to the Mathematica front end.
$BaseDirectory/Kernel/init.m
This file is used to initialize the kernel and therefore should store any kernel commands
that are appropriate for all users running the kernel.
$UserBaseDirectory/Kernel/init.m
Front End
Front end initialization files store preference settings such as the values of global options in the
Option Inspector. These files are automatically updated by Mathematica when you change a
setting in the front end. To make changes to this file, make your changes from within Mathemat-
ica rather than editing the file directly.
$BaseDirectory/FrontEnd/init.m
This file stores systemwide defaults used by all Mathematica front ends. The settings in
this file affect all users. "Systemwide Defaults on Mac OS X" explains how to implement
changes to this global file.
$UserBaseDirectory/FrontEnd/init.m
94 System Administration for Network Licenses
This file defines settings within the front end that are specific to each user.
$UserBaseDirectory/FrontEnd/7.0 Caches/
This directory within the user's home directory stores information on system settings that
are read by the front end.
Passwords
Passwords are stored in the mathpass file, described in further detail in "Registration and Pass-
words". In the following pathname, replace the variable $InstallationDirectory with the
directory where you installed Mathematica. To find the value of $InstallationDirectory on
your system, evaluate the command $InstallationDirectory in a Mathematica notebook.
$BaseDirectory/Licensing/mathpass
$InstallationDirectory/Configuration/Licensing/mathpass
$UserBaseDirectory/Licensing/mathpass
While this is not normally the location for the password file, a user-specific mathpass file
can be stored here.
The following instructions assume that $BaseDirectory and $UserBaseDirectory have their
default values, /Library/Mathematica and ~/Library/Mathematica, respectively.
2. Quit Mathematica.
These settings will now be used by the front end unless overridden by the local init.m file stored
in the user's ~/Library/Mathematica/FrontEnd directory.
2. Add any Mathematica commands that should be evaluated on startup. For example, you
may want to add a function definition or display a message at startup. Enter all the com-
mands in the same cell, separating commands with semicolons.
3. Make this cell an initialization cell by selecting the cell bracket and then choosing Cell
Cell Properties Initialization Cell.
4. When you have finished making your changes, choose File Save and select
Mathematica Package from the Save as type popup menu. Then save the file as
/Library/Mathematica/Kernel/init.m.
These commands will be evaluated when users launch Mathematica. If you added a function
definition, that function will be available to all users.
Troubleshooting on Mac OS X
Passwords
If the front end password dialog box appears when you launch Mathematica, either Mathemat-
ica could not locate the mathpass file or there was no valid password in the mathpass file. To
resolve this problem, first check that there is a mathpass file in one of these directories:
/Library/Mathematica/Licensing, $InstallationDirectory/Configuration/Licensing, or
~/Library/Mathematica/Licensing. To find the exact location of $InstallationDirectory on
your machine, evaluate the command $InstallationDirectory in a notebook. If you did not
find a mathpass file in these locations, follow the instructions in "Entering a Single-Machine
Password" to reenter your password.
If there is a mathpass file in one of those directories, the password or passwords are invalid.
Make sure that your MathID number matches the MathID number used to issue your password.
If your MathID number changes, you will need to contact Customer Service to get a new pass-
word. Contact information is provided in "Registration and Passwords".
96 System Administration for Network Licenses
Caches
Information about your Mathematica system layout, such as the locations of text resource
files and help files, is stored in caches. These caches are located in the directory ~/Library/
Mathematica/FrontEnd/7.0/ Caches.
A corrupted cache may cause the front end to produce an error or quit immediately on startup.
The most convenient way to restore the caches to their default values is to hold down
Shift+Option during startup. This will cause the Mathematica caches and the initialization file to
be rebuilt automatically.
If you want to rebuild your caches but retain your preferences, hold down Shift during startup.
This will delete and rebuild the cache without rebuilding your front end initialization file.
Technical Support
For further assistance, check the Technical Support FAQs on the web at support.wolfram.com.
If you are a Site License Administrator, additional Site License Documentation is available at
site.wolfram.com. If you do not find the information you need, please contact Technical Support
by sending email to support@wolfram.com or by calling +1-217-398-6500. Include your license
number in all correspondence. Your license number is located on your electronic or printed
license certificate. It is also available after installation by going to the Help menu and clicking
About Mathematica. You must be a registered user in order to receive installation support.
You must have a current Premier Service subscription to receive Technical Support.
System Administration for
Single-Machine Licenses
System Administration for Single-Machine Licenses 99
Mathematica
Windows
Installing Mathematica on Windows
Installing Mathematica for Network Licenses
Requirements
Mathematica is available for Windows, Unix, Linux, and Mac OS X. For a complete list of plat-
form availability, visit www.wolfram.com/products/mathematica/platforms.html. Any supported
machine can act as a client for running Mathematica, provided the following two conditions are
met:
† The client has access to the Mathematica files, either locally or from a file server on the
network.
A license server can also function as its own client. However, this is not recommended. If the
machine has to be rebooted for any reason, the serving of licenses to all other clients on the
network may be disrupted.
Before you install Mathematica as a license server client, MathLM should already be installed
and running on a license server on the network (see "Installing MathLM" for details). To com-
plete the Mathematica installation, you will need to know the name or IP address of the license
server running MathLM.
To Install Mathematica:
1. Insert the Mathematica DVD. The Wolfram Mathematica 7 window appears on your
screen. Click the button labeled Install Mathematica to a hard disk.
2. The Wolfram Mathematica Setup dialog appears on your screen. Click Next to begin
the installation process.
System Administration for Single-Machine Licenses 101
5. Click Next to add Mathematica shortcuts to the Start menu in the Wolfram Mathematica
folder. If you would like to select a different folder, click Browse.
8. Mathematica starts up and the following password dialog box appears. Select Network
License. Then enter the name or IP address of the license server running MathLM in the
text field provided.
To run Mathematica, you must register with Wolfram Research and receive a password. See
"Registration and Passwords" for further information.
1. Insert the Mathematica DVD. The Wolfram Mathematica 7 window appears on your
screen. Click the button labeled Install Mathematica to a hard disk.
2. The Wolfram Mathematica Setup dialog appears on your screen. Click Next to begin
the installation process.
System Administration for Single-Machine Licenses 105
5. Click Next to add Mathematica shortcuts to the Start menu under Wolfram Mathematica.
8. Mathematica starts up and the following password dialog box appears. Select Single
Machine. Then enter your name, the name of your organization, and your license num-
ber (located on your electronic or printed license certificate) in the text fields provided.
Click OK when you are done.
108 System Administration for Single-Machine Licenses
9. The following dialog box appears showing the MathID number for your machine. To obtain
your password, click the Web button, go to register.wolfram.com, or contact Wolfram
Research (see "Registration and Passwords" for further information). You will need to
supply your license number and your MathID number.
10. Enter your password and click OK. You are now ready to start using Mathematica.
Installing Mathematica from a file server requires first copying the installer executable and all
files in the Mathematica distribution from the DVD onto the file server.
1. Insert the Mathematica DVD into the drive on the file server. Open a My Computer
window, then right-click the DVD in the list and select Open.
2. An Explorer window appears showing the contents of the DVD. Select the Windows folder.
3. Copy the Windows folder from the DVD to a location on the file server accessible to exter-
nal users over the network.
Once this step is complete, you can install the Mathematica files on each client.
4. From the client, connect to the file server and open the Windows directory that was cre-
ated on the file server.
6. Follow the same steps as for installing from a DVD (see "Network License" and "Single-
Machine License").
System Administration for Single-Machine Licenses 109
The following instructions explain how to write a simple script to silently install Mathematica
from a file server. These instructions require that you have a mathpass file with a valid pass-
word. See "Registrations and Passwords" for more information on sitewide mathpass
configurations.
1. Follow the instructions in the first part of "Installing Mathematica from a File Server" to
copy the installer and files from the DVD to a file server.
2. Copy your mathpass file to the same directory on the file server as the installer and
Mathematica files.
3. Open Notepad (Start Menu Programs Accessories Notepad) and type the follow-
ing lines into a new file.
@echo off
echo Installing Mathematica...
\\server\math\setup.exe /silent /suppressmsgboxes /log="C:\Windows\Temp\install.log"
echo Creating password file...
copy \\server\math\mathpass "C:\Directory\Name"
echo Mathematica installation complete.
110 System Administration for Single-Machine Licenses
Change all instances of \\server\math to the pathname of the network share where the
Mathematica installation files and mathpass file were copied.
5. Change "C:\Directory\Name" to the directory listed here for your version of Windows.
Be sure to enclose the name of the directory in quotes.
Windows 2000/XP~
"C:\Documents and Settings\All Users\Application Data\Mathematica"
Windows Vista~"C:\ProgramData\Mathematica"
Note: These directories are the values of $BaseDirectory for different versions of
Windows. See "Configuration Files on Windows" for further information.
6. To save the file, choose File Save. Save the file in the same directory as the Mathemat-
ica installation files. Type the filename install.bat, and choose All Files from the Save as
type popup menu. Click Save, then quit Notepad.
1. On the client, open a Command Prompt window, type the pathname of the install.bat
file, and press Enter. For example, if the network share is called \\server\math, type:
\\server\math\install.bat
Installing Mathematica...
Creating password file...
Mathematica installation complete.
2. The installation is now complete. If you see any messages other than those printed here,
check the file C:\Windows\Temp\install.log on the client machine for further information.
Installing Mathematica in this way eliminates the need to take the DVD to each client machine,
and saves time by allowing you to run a simple script instead of responding to the installer
questions.
To Launch Mathematica:
Alternatively, you can open an Explorer window, go to the Program Files\Wolfram Research\
Mathematica\7.0 directory, and double-click the Mathematica icon.
From the Start menu, choose Programs Wolfram Mathematica Mathematica 7 Kernel.
Alternatively, you can open an Explorer window, go to the Program Files\Wolfram Research\
Mathematica\7.0 directory, and double-click the MathKernel icon.
Open a command prompt window and change directory to the top-level Mathematica installa-
tion directory. Type .\math and press Enter.
† The Mathematica fonts will not be available for use by other applications. It is therefore
required that you manually install the fonts on your system. The fonts are found in
SystemFiles\Fonts\Windows in the Mathematica layout. To install these fonts so they can be
used by all other Windows applications, open the Fonts control panel, choose Install New
Font under the File menu, and specify the location of the fonts in the Add Fonts dialog
box that appears.
† The MathLink libraries will not be available for use by other applications. Therefore, you
need to copy the MathLink libraries to the appropriate locations on your system. For 32-bit
Windows systems, the MathLink libraries consist of seven files: ml32i1.dll, ml32i2.dll,
ml32i3.dll, mlmap32.mlp, mlshm32.mlp, mltcp32.mlp, and mltcpip32.mlp, which are
located in SystemFiles\Links\MathLink\DeveloperKit\Windows\SystemAdditions in the
Mathematica layout. Copy these files to the WINNT\System32 folder on Windows 2000, or
the Windows\System32 folder on Windows XP/Vista. For 64-bit Windows platforms, the
MathLink libraries consist of twelve files: ml32i1.dll, ml32i2.dll, ml32i3.dll, mlmap32.mlp,
mlshm32.mlp, mltcp32.mlp, and mltcpip32.mlp, which are located in
112 System Administration for Single-Machine Licenses
† The proper file associations will not be set up for Mathematica. You can set these associa-
tions manually by using the Folder Options dialog box under the Tools menu of the
Explorer window. You will need to specify the MIME type as application/mathematica and
the file extension as .nb.
† A Start menu entry for Mathematica will not be created automatically. You can add this
manually by editing the Start menu settings in the dialog box that appears when you
choose Settings Taskbar and Start Menu under the Start menu.
Command-Line Options
The option -lmverbose is usefull for debuggin problems related to the license server.
The option -mathlink can also be used as a command-line option for the Mathematica front
end. See www.wolfram.com/solutions/mathlink for additional information about MathLink.
The mode set by -noprompt is useful for running a sequence of commands from a batch file.
The string for -password should have the form "!servername" or "machinename mathid licensenumber
password ".
System Administration for Single-Machine Licenses 113
You should run these tests from a regular user account and not from an account with administra-
tive privileges.
To run Mathematica using a network license, both the client machine and the license server
must be on the network and MathLM must be running.
If you run into problems when doing these tests, see the troubleshooting tips in "Trouble-
shooting on Windows". If you do not find the answer there, check the Technical Support web-
site at support.wolfram.com/mathematica.
In[1]:=
2. Type N[Pi, 20] and press Enter. The number in the output should match the output
shown here.
Out[1]= 3.1415926535897932385
In[2]:=
A splash screen with initialization information appears briefly, after which an empty note-
book and the Welcome Screen appear.
2. Type N[Pi,20]. Then hold down the Shift key and press Enter to evaluate. This should
send the command to the kernel and return the same result as before. The In[1] and
Out[1] labels are prepended once the evaluation is completed.
114 System Administration for Single-Machine Licenses
In the notebook window, there should be a horizontal line across the notebook; this is the
horizontal insertion bar. If you do not see one, move the pointer until it becomes a horizon-
tal I-beam and click once to see the insertion bar.
3. Press the Esc key. You should see three small horizontal lines in a column (Ç). Type int
and press Esc again. You should see an integral sign (Ÿ ). As an additional font check,
typing î[CheckmarkedBox] and î[CirclePlus] should print the symbols and ⊕,
respectively. If the symbols show up correctly, the fonts have been properly installed.
4. From the Help menu, choose Documentation Center. The Mathematica Documentation
Center should appear.
Global settings that affect all users are stored in subdirectories of the directory
$BaseDirectory. The default value of $BaseDirectory for different versions of Windows is
shown in the following table. To redefine the location of global preference settings and initializa-
tion data, set the environment variable MATHEMATICA_BASE.
Settings that only affect a particular user are stored in subdirectories of the directory
$UserBaseDirectory. The default value of $UserBaseDirectory for different versions of Win-
dows is shown in the following table. To redefine the location of user preferences and initializa-
tion data, set the environment variable MATHEMATICA_USERBASE.
Settings in the directory $UserBaseDirectory override global settings defined in the directory
$BaseDirectory.
System Administration for Single-Machine Licenses 115
In the pathnames that follow, replace the variables $BaseDirectory and $UserBaseDirectory
with the appropriate directories for your system. To find their locations on your system, evalu-
ate the command $BaseDirectory (or $UserBaseDirectory) in a Mathematica notebook.
Kernel
The initialization files used by the kernel contain Mathematica commands that are evaluated at
startup, such as function definitions, packages to load, and kernel option settings. These com-
mands are also available to the Mathematica front end.
$BaseDirectory\Kernel\init.m
This file is used to initialize the kernel and therefore should store any kernel commands
that are appropriate for all users running the kernel.
$UserBaseDirectory\Kernel\init.m
Front End
Front end initialization files store preference settings such as the values of global options in the
Option Inspector. These files are automatically updated by Mathematica when you change a
setting in the front end. To make changes to this file, make your changes from within Mathemat-
ica rather than editing the file directly.
$BaseDirectory\FrontEnd\init.m
This file stores systemwide defaults used by all Mathematica front ends. The settings in
this file affect all users. "Systemwide Defaults on Windows" explains how to implement
changes to this global file.
$UserBaseDirectory\FrontEnd\init.m
This file defines settings within the front end that are specific to each user.
Passwords
Passwords are stored in the mathpass file, described in further detail in "Registration and Pass-
words". In the following pathname, replace the variable $InstallationDirectory with the
directory where you installed Mathematica. The default value of $InstallationDirectory on
Windows is C:\Program Files\Wolfram Research\Mathematica\7.0. To find the value of
$InstallationDirectory on your system, evaluate the command $InstallationDirectory
in a Mathematica notebook.
$BaseDirectory\Licensing\mathpass
$InstallationDirectory\Configuration\Licensing\mathpass
$UserBaseDirectory\Licensing\mathpass
While this is not normally the location for the password file, a user-specific mathpass file
can be stored here.
2. Quit Mathematica.
These settings will now be used by the front end unless overridden by the local init.m file stored
in the user’s $UserBaseDirectory\FrontEnd directory.
2. Add any Mathematica commands that should be evaluated on startup. For example, you
may want to add a function definition or display a message at startup. Enter all the com-
mands in the same cell, separating commands with semicolons.
3. Make this cell an initialization cell by selecting the cell bracket and then choosing Cell
Cell Properties Initialization Cell.
4. When you have finished making your changes, choose File Save and select Mathemat-
ica Package from the Save as type popup menu. Then save the file as
$BaseDirectory\Kernel\init.m.
These commands will be evaluated when users launch Mathematica. If you added a function
definition, that function will be available to all users.
If you have created systemwide defaults you want to carry over to new local installations, you
can add lines to an installation script to copy preconfigured init.m files as part of a new installa-
tion. For information about installation scripts, see "Installing Mathematica on Windows". To
copy systemwide defaults, add a line to the script similar to the line that copies the mathpass
file.
Troubleshooting on Windows
Passwords
If the front end password dialog box appears when you launch Mathematica, either Mathemat-
ica could not locate the mathpass file or there was no valid password in the mathpass file.
118 System Administration for Single-Machine Licenses
To resolve this problem, first check that there is a mathpass file in one of these
directories: $BaseDirectory\Licensing, $InstallationDirectory\Configuration\Licensing, or
$UserBaseDirectory\Licensing. To find the exact location of these directories on your
machine, evaluate the command $BaseDirectory (or $InstallationDirectory or
$UserBaseDirectory) in a notebook. If you did not find a mathpass file in these locations,
follow the instructions in "Entering a Single-Machine Password" to reenter your password.
If there is a mathpass file in one of those directories, the password or passwords are invalid.
Make sure that your MathID number matches the MathID number used to issue your password.
If your MathID number changes, you will need to contact Customer Service to get a new pass-
word. Contact information is provided in "Registration and Passwords".
If you need to reset the front end preferences to their default values, hold down Shift+Ctrl
during startup. This will cause the initialization file to be rebuilt automatically.
Caches
Information about your Mathematica system layout, such as the locations of text resource files,
is stored in caches. These caches are located in C:\Documents and Settings\username\Local
Settings\Application Data\Mathematica\FrontEnd\7.0 Caches\ on Windows 2000/XP and in
C:\Users\username\AppData\Local\Mathematica\FrontEnd\7.0 Caches\ on Vista.
A corrupted cache may cause the front end to produce an error or quit immediately on startup.
The most convenient way to restore the caches to their default values is to hold down
Shift+Ctrl during startup. This will cause the Mathematica caches and the initialization file to be
rebuilt automatically. If you want to rebuild your caches but retain your preferences, hold down
Shift during startup. This will delete and rebuild the cache without rebuilding your front end
initialization file.
System Administration for Single-Machine Licenses 119
Technical Support
For further assistance, check the Technical Support FAQs on the web at support.wolfram.com.
If you are a Site License Administrator, additional Site License Documentation is available at
site.wolfram.com. If you do not find the information you need, please contact Technical Support
by sending email to support@wolfram.com or by calling +1-217-398-6500. Include your license
number in all correspondence. Your license number is located on your electronic or physical
copy of the license certificate. It is also available after installation by going to the Help menu
and clicking About Mathematica. You must be a registered user in order to receive installation
support. You must have a current Premier Service subscription to receive Technical Support.
Mathematica is available for Windows, Unix, Linux, and Mac OS X. For a complete list of plat-
form availability, visit www.wolfram.com/products/mathematica/platforms.html. Any supported
machine can act as a client for running Mathematica, provided the following two conditions are
met:
† The client has access to the Mathematica files, either locally or from a file server on the
network.
A license server can also function as its own client. However, this is not recommended. If the
machine has to be rebooted for any reason, the serving of licenses to all other clients on the
network may be disrupted.
Before you install Mathematica as a license server client, MathLM should already be installed
and running on a license server on the network (see "Installing MathLM on Windows", and
"Installing MathLM on Unix, Linux, and Mac OS X" for details). To complete the Mathematica
installation, you will need to know the name or IP address of the license server running MathLM.
To install Mathematica on Unix and Linux, you may need root privileges.
120 System Administration for Single-Machine Licenses
To Install Mathematica:
Note: This step may not be required on some Linux and Unix platforms, as some operat-
ing systems automatically handle mounting.
2. Change directory to /cdrom/Unix/Installer. Note that the exact location of the CD/DVD
mount point might be different for your platform.
cd /cdrom/Unix/Installer
./MathInstaller
--------------------------------------------------------------
Wolfram Mathematica 7 Installer
--------------------------------------------------------------
4. (Unix only) You are asked to select the platforms for which you are doing the installation.
Select one or more of the available options and press Enter to continue.
5. The installer prompts you to specify the directory in which Mathematica should be in-
stalled. The default location is /usr/local/Wolfram/Mathematica/7.0. Press Enter to
accept the default, or type in a new location and then press Enter.
Note: If you specify a directory that does not exist, the installer will give you the option
of creating the directory. If a copy of Mathematica already exists in the directory you
specify, the installer will inform you before overwriting the files.
System Administration for Single-Machine Licenses 121
Note: If you are installing over a previous version of Mathematica, your existing math-
pass file and custom settings will not be deleted.
6. Once you have answered all the questions, the installer begins copying files from the
CD/DVD to the directory you specified. The progress is indicated by a progress bar on the
screen.
Now installing...
[*************** ]
7. You are asked for the location in which to copy the executable scripts. You should choose
a directory that is present on each user’s PATH. The scripts are also installed in the ExeÖ
cutables subdirectory of the Mathematica installation directory. Type a location or accept
the default and press Enter.
Type the directory path in which the Mathematica scripts will be created,
or press ENTER to select /usr/local/bin:
Note: The installer checks to see if any other Mathematica scripts exist in the specified
directory. If they do, you are given the chance to rename the scripts.
8. You are given several options for configuring the password. Type 2 and press Enter to run
Mathematica using a network license.
Please choose how you want to configure the password for Mathematica 7.0.
9. Type the hostname of the server running MathLM, as given by the hostname command.
In some cases, this includes the domain name. Or, enter the IP address of the MathLM
server. Press Enter to continue.
Enter the hostname of the machine on which your MathLM license manager
is running:
122 System Administration for Single-Machine Licenses
Note: The installer does not attempt to verify the server name you type. If you prefer,
you may type any arbitrary text here and press Enter. This creates the mathpass file with
an invalid password entry. You may then edit the mathpass file manually to add a correct
password later. More information on the mathpass file is given in "Registration and
Passwords".
10. The installer creates the mathpass file and displays its location. The installation is now
complete.
Installation complete.
The installer also adds an additional menu folder named Wolfram to the desktop menu. Inside
the folder is an item named Mathematica that points to the most recently installed version of
Mathematica. File associations are also modified such that .nb files are now associated with the
most recently installed version of Mathematica.
To run Mathematica, you must register with Wolfram Research and receive a password. See
"Registration and Passwords" for further information.
To install Mathematica on Unix and Linux, you may need root privileges.
Note: This step may not be required on some Linux and Unix platforms, as some operat-
ing systems automatically handle mounting.
2. Change directory to /cdrom/Unix/Installer. Note that the exact location of the CD/DVD
mount point might be different for your platform.
cd /cdrom/Unix/Installer
System Administration for Single-Machine Licenses 123
./MathInstaller
--------------------------------------------------------------
Wolfram Mathematica 7 Installer
--------------------------------------------------------------
4. (Unix only) You are asked to select the platform for which you are doing the installation.
Select one of the available options and press Enter to continue.
5. The installer prompts you to specify the directory in which Mathematica should be in-
stalled. The default location is /usr/local/Wolfram/Mathematica/7.0. Press Enter to
accept the default, or type in a new location and then press Enter.
Note: If you specify a directory that does not exist, the installer will give you the option
of creating the directory. If a copy of Mathematica already exists in the directory you
specify, the installer will inform you before overwriting the files.
Note: If you are installing over a previous version of Mathematica, your existing math-
pass file and custom settings will not be deleted.
6. Once you have answered all the questions, the installer begins copying files from the
CD/DVD to the directory you specified. The progress is indicated by a progress bar on the
screen.
Now installing...
[*************** ]
124 System Administration for Single-Machine Licenses
7. You are asked for the location in which to copy the executable scripts. You should choose
a directory that is present on each user’s PATH. The scripts are also installed in the ExeÖ
cutables subdirectory of the Mathematica installation directory. Type a location or accept
the default and press Enter.
Type the directory path in which the Mathematica scripts will be created,
or press ENTER to select /usr/local/bin:
Note: The installer checks to see if any other Mathematica scripts exist in the specified
directory. If they do, you are given the chance to rename the scripts.
8. You are given several options for configuring the password. Type 1 and press Enter to run
Mathematica using a single-machine license.
Please choose how you want to configure the password for Mathematica 7.0.
9. Your machine name and MathID number are displayed. To obtain your password, contact
Wolfram Research (see "Registration and Passwords" for details). You will need to supply
your MathID number and the license number located on your electronic or physical copy
of the license certificate.
10. Enter your name, the name of your organization, your license number (located on your
electronic or physical copy of the license certificate), and your password, and press Enter
when you are done.
11. The installer creates the mathpass file and displays its location. The installation is now
complete.
See http://reference.wolfram.com/password if
Mathematica is installed on multiple machines
and you need to set up a single, sitewide
password file.
The installer also adds an additional menu folder named Wolfram to the desktop menu. Inside
the folder is an item named Mathematica that points to the most recently installed version of
Mathematica. File associations are also modified such that .nb files are now associated with the
most recently installed version of Mathematica.
To install Mathematica from a file server, you first must make the installer and Mathematica
files available to the clients. You can do this by copying the contents of the CD/DVD to the file
server and exporting the directory, or by exporting the CD/DVD mount point on the file server.
Then, mount the directory with the Mathematica distribution on the client and change to this
directory, and run MathInstaller to install Mathematica on the client machines. (Note that
you must run MathInstaller from the directory in which it is located.) If you are installing
Mathematica in a mixed-platform environment, you may need to use the MathInstaller
option -platform to ensure that the correct files for your platform are installed.
Note: Default values are used for any options that are not specified explicitly on the
command line.
Valid input for -createdir is y for yes or n for no. By default, this value is set to y.
The default directory for -execdir is /usr/local/bin. This option only works with an auto-
matic installation.
The values for -method may vary by product. When this option is applicable, the values can be
determined by running the installer. The default value for this option is Full.
Valid input for -overwrite is y for yes or n for no. By default, this value is set to y. This option
only works with an automatic installation.
The default for -platforms is the system you are installing on, if that information is available
to the installer. This option only works with an automatic installation.
Valid input for -selinux is y for yes or n for no. By default, this value is set to n.
The option -silent suppresses any output from being displayed on the screen. The output is
instead written to a file named InstallerLog-number. If the installation is unsuccessful, the log
file is saved in the /tmp directory. Otherwise, the file is moved to the target directory and
renamed InstallerLog.
The directory specified for -targetdir corresponds to the value of the global variable
$InstallationDirectory. The default value is /usr/local/Wolfram/Mathematica/7.0.
This option only works with an automatic installation.
To complete the installation in one step, run a command like the following.
This allows you to complete the installation automatically in one step, while still being able to
customize various details such as the directory to install to. You are not prompted to enter your
password using this method, so you will need to enter a password the first time Mathematica is
launched.
If you are doing many installations, you might find it convenient to include the MathInstaller
command with all the relevant options in a shell script. Running the shell script is then an easy
way to do an identical customized installation on multiple machines. You can further simplify
the installation process by including a line in your script that copies an existing mathpass file to
128 System Administration for Single-Machine Licenses
the appropriate location on the newly installed machine. Note that MathInstaller must be run
from the directory in which it is located, so your script may require a command to change
directory. See "Registrations and Passwords" for information on sitewide mathpass
configurations.
To Launch Mathematica:
Make sure that you are running MathLM. Then, from a shell, type mathematica and press Enter.
Alternatively, if you are running X, an additional menu folder named Wolfram has already been
added to the desktop menu. In the folder, an item named Mathematica points to the most
recently installed version of Mathematica. File associations have also been modified such that
.nb files now associate with the most recently installed version of Mathematica.
math
The math command starts the kernel from within a shell. The kernel is the part of Mathematica
that handles calculations. This is also used by the front end.
System Administration for Single-Machine Licenses 129
Command-Line Options
The option -lmverbose is usefull for debuggin problems related to the license server.
The option -mathlink can also be used as a command-line option for the Mathematica front
end. See www.wolfram.com/solutions/mathlink for additional information about MathLink.
The string for -password should have the form "!servername" or "machinename mathid licensenumber
password".
mathematica
The mathematica command runs the X front end. In order for the front end to run, the DISÖ
PLAY environment variable must be set and the front end must be able to locate the fonts
included with Mathematica.
Command-Line Options
-backgroundTaskDelay n specify the time (in milliseconds) that the front end delays
background tasks while waiting for input
-cleanStart ignore stored caches and rebuild the front end preferences
file
-copyright display copyright information on the command line
-dontUpdatePrefs prevent changes to the user's preference settings
-font f specify the font used in menus, buttons, etc.
-help display a list of all command-line options
-lmverbose print diagnostic information to stderr when connecting to
MathLM
130 System Administration for Single-Machine Licenses
-mathlink make the front end run as a child process that is capable of
accepting MathLink packets
-nogui prevent the display of any kind of window or dialogs
-noSplashScreen prevent the splash screen from being displayed on startup
-noTrueTypeFont prevent the use of TrueType font in the display
-preferencesDirectory dir specify the location where preference settings are stored
-primaryModifierMask mask specify the primary mask to be used as the command key
-pwfile file specify a file in which to look for Mathematica passwords
-pwpath p specify the search path for a password file
-secondaryModifierMask mask specify the secondary mask to be used as the command
key
-singleLaunch allow only one copy of the front end per display
-stderrWindow send stderr to a popup window instead of a terminal
-style s specify the widget style used by the front end
-topDirectory dir specify the location of the Mathematica installation direc -
tory
-version print the current version of the front end on the command
line
The option -cleanStart will ignore the caches stored in the directory
$UserBaseDirectory /FrontEnd/7.0_Caches, and will rebuild the front end preferences
file, $UserBaseDirectory /FrontEnd/init.m. This option can also be abbreviated as
-clean.
When using -font, a list of possible font names can be found by using xfontsel. The name
can be expressed either as an X Logical Font Description or as a valid font alias.
The option -lmverbose is useful for debugging problems related to the license server.
The option -mathlink may be useful when the front end is used as a typesetting or graphics
rendering service. See www.wolfram.com/solutions/mathlink for additional information about
MathLink.
The option -singleLaunch will prohibit multiple front end launches only if the current front end
was launched with the -singleLaunch option.
System Administration for Single-Machine Licenses 131
Valid styles for -style are motif, motifplus, windows, cde, platinum, sgi, and compact.
You should run these tests from a regular user account and not from an account with administra-
tor privileges.
To run Mathematica using a network license, both the client machine and the license server
must be on the network and MathLM must be running.
If you run into problems when doing these tests, see the troubleshooting tips in
"Troubleshooting on Unix and Linux". If you do not find the answer there, check the Technical
Support website at support.wolfram.com/mathematica.
In[1]:=
2. Type N[Pi, 20] and press Enter. The number in the output should match the output
shown here.
Out[1]= 3.1415926535897932385
In[2]:=
On Unix and Linux, you can test the kernel on a remote machine by using the command ssh
hostname /usr/local/bin/math. (The exact pathname could be different depending on how
Mathematica was installed.) This command will launch the kernel on the remote machine host-
name. When you see the In[1] label, follow step 2 and step 3 in the previous instructions.
Alternatively, you can select Mathematica from the menu folder Wolfram.
A splash screen with initialization information appears briefly, after which an empty note-
book and the Welcome Screen appear.
2. Type N[Pi,20]. Then hold down the Shift key and press Enter to evaluate. This should
send the command to the kernel and return the same result as before. The In[1] and
Out[1] labels are prepended once the evaluation is completed.
In the notebook window, there should be a horizontal line across the notebook; this is the
horizontal insertion bar. If you do not see one, move the pointer until it becomes a horizon-
tal I-beam and click once to see the insertion bar.
3. Press the Esc key. You should see three small horizontal lines in a column (Ç). Type int
and press Esc again. You should see an integral sign (Ÿ ). As an additional font check,
typing î[CheckmarkedBox] and î[CirclePlus] should print the symbols and ⊕,
respectively. If the symbols show up correctly, the fonts have been properly installed.
4. From the Help menu, choose Documentation Center. The Mathematica Documentation
Center should appear.
On Unix and Linux, you can test the X front end remotely, provided the ssh server on the
remote machine allows X forwarding. You must be running X on the local machine to do this. In
a shell, type ssh -X hostname /usr/local/bin/mathematica. (The exact pathname could be
different depending on how Mathematica was installed.) This command will launch Mathematica
on the remote machine hostname. When the splash screen appears on your screen, follow step 2
and step 3 in the previous instructions.
† Global settings that affect all users are stored in subdirectories of the directory
$BaseDirectory. The default value of $BaseDirectory on Unix and Linux is
/usr/share/Mathematica. To redefine the location of global preference settings and
initialization data, set the environment variable MATHEMATICA_BASE.
† Settings that only affect a particular user are stored in subdirectories of the directory
$UserBaseDirectory, which is typically a subdirectory of the user’s home directory. The
default value of $UserBaseDirectory on Unix and Linux is ~/.Mathematica. To redefine
the location of user preferences and initialization data, set the environment variable
MATHEMATICA_USERBASE.
System Administration for Single-Machine Licenses 133
Settings in the directory $UserBaseDirectory override global settings defined in the directory
$BaseDirectory.
In the pathnames that follow, replace the variables $BaseDirectory and $UserBaseDirectory
with the appropriate directories for your system. To find their locations on your system, evalu-
ate the command $BaseDirectory (or $UserBaseDirectory) in a Mathematica notebook.
Kernel
The initialization files used by the kernel contain Mathematica commands that are evaluated at
startup, such as function definitions, packages to load, or kernel option settings. These com-
mands are also available to the Mathematica front end.
$BaseDirectory /Kernel/init.m
This file is used to initialize the kernel and therefore should store any kernel commands
that are appropriate for all users running the kernel.
$UserBaseDirectory /Kernel/init.m
Front End
Front end initialization files store preference settings such as the values of global options in the
Option Inspector. These files are automatically updated by Mathematica when you change a
setting in the front end. To make changes to this file, make your changes from within Mathemat-
ica rather than editing the file directly.
$BaseDirectory /FrontEnd/init.m
This file stores systemwide defaults used by all Mathematica front ends. The settings in
this file affect all users. "Systemwide Defaults on Unix and Linux" explains how to imple-
ment changes to this global file.
$UserBaseDirectory /FrontEnd/init.m
This file defines settings within the front end that are specific to each user.
$UserBaseDirectory /FrontEnd/7.0_Caches/
This directory within the user’s home directory stores information on system settings that
are read by the front end.
Passwords
Passwords are stored in the mathpass file, described in further detail in "Registration and
Passwords". In the following pathname, replace the variable $InstallationDirectory with the
directory where you installed Mathematica. The default value of $InstallationDirectory on
Unix and Linux is /usr/local/Wolfram/Mathematica/7.0. To find the value of
$InstallationDirectory on your system, evaluate the command $InstallationDirectory
in a Mathematica notebook.
$BaseDirectory /Licensing/mathpass
$InstallationDirectory /Configuration/Licensing/mathpass
$UserBaseDirectory /Licensing/mathpass
While this is not normally the location for the password file, a user-specific mathpass file
can be stored here.
The following instructions assume that $BaseDirectory and $UserBaseDirectory have their
default values, /usr/share/Mathematica and ~/.Mathematica respectively.
2. Quit Mathematica.
These settings will now be used by the front end unless overridden by the local init.m file stored
in the user’s directory ~/.Mathematica/FrontEnd.
2. Add any Mathematica commands that should be evaluated on startup. For example, you
may want to add a function definition or display a message at startup. Enter all the com-
mands in the same cell, separating commands with semicolons.
3. Make this cell an initialization cell by selecting the cell bracket and then choosing Cell
Cell Properties Initialization Cell.
4. When you have finished making your changes, choose File Save and select
Mathematica Package from the Save as type popup menu. Then save the file as
/usr/share/Mathematica/Kernel/init.m.
These commands will be evaluated when users launch Mathematica. If you added a function
definition, that function will be available to all users.
Font Formats
The Mathematica front end supports BDF, TrueType, and Type1 fonts. These fonts are automati-
cally installed by MathInstaller during installation.
Font Installation
All machines that display the front end must have access to the fonts included with Mathemat-
ica. If the Mathematica process is running on a remote machine and the front end is displayed
on the local machine, the X server on the local machine must know where to find the Mathemat-
ica fonts. To do this, add the Mathematica fonts to the local font path by running a command
like the following on the local machine.
136 System Administration for Single-Machine Licenses
Be sure to execute xset fp rehash to make the fonts available to the local X server.
For optimal onscreen performance, Type1 fonts should appear before BDF fonts in the font
path. Hence, $InstallationDirectory/SystemFiles/Fonts/Type1 should appear before
$InstallationDirectory/SystemFiles/Fonts/BDF. You can check the order of the font
path by executing the command xset q.
Note: TrueType fonts are automatically loaded and do not require an xset command.
Font Servers
You may prefer not to install local copies of the Mathematica fonts on all machines. You can
instead set up a font server with all the necessary Mathematica fonts. The other machines on
the network can then find the fonts as needed by reading them from the Mathematica directory
on the font server. Consult your operating system’s documentation for further information.
GhostScript
If you want to view Mathematica graphics using GhostScript, you need to make GhostScript
aware of the Mathematica fonts. For more information, contact Technical Support by sending
email to support@wolfram.com, or visit support.wolfram.com/mathematica/graphics/export/
ghostscript.html.
CD or DVD
† Make sure the CD or DVD is properly mounted with the correct mount command (see
"Mounting a CD or DVD on Unix and Linux"). If the filenames on the CD/DVD appear in the
wrong case, it means the CD/DVD is mounted incorrectly.
Installation
Make sure to run the installer from the directory in which it is located.
Passwords
If the front end password dialog box appears when you launch Mathematica, either Mathemat-
ica could not locate the mathpass file or there was no valid password in the mathpass file. To
resolve this problem, first check that there is a mathpass file in one of these directories:
/usr/share/Mathematica/Licensing, $InstallationDirectory/Configuration/Licensing,
or ~/.Mathematica/Licensing. If you did not find a mathpass file in these locations, follow
the instructions in "Entering a Single-Machine Password" to reenter your password.
If there is a mathpass file in one of those directories, the password or passwords are invalid.
Make sure that your MathID number matches the MathID number used to issue your password.
If your MathID number changes, you will need to contact Customer Service to get a new pass-
word. Contact information is provided in "Registration and Passwords".
Paths
By default, the front end runs the command math to start the kernel. If math is not on the path,
then you must use the Kernel Configuration Options command in the Kernel menu to spec-
ify the full pathname of the math command.
138 System Administration for Single-Machine Licenses
Caches
Information about your Mathematica layout, such as the locations of text resource files, is
stored in caches. These caches are located in the directory ~/.Mathematica/
FrontEnd/7.0_Caches. A corrupted cache may cause the front end to produce an error or quit
immediately on startup. The most convenient way to reset the caches to their default values is
to use the option -cleanStart at startup. This will cause the Mathematica caches and the
initialization file to be rebuilt automatically. If you want to rebuild your caches but retain your
preferences, hold down Shift during startup. This will delete and rebuild the cache without
rebuilding the front end initialization file.
Fonts
† Make sure that the fonts are installed on the machine that displays the front end or on a
font server.
† If you see the error xset: bad font path element, either the fonts are not properly
installed on your machine, or your font path is too long and exceeds the allowable limit.
Make sure the fonts are properly installed, or copy the fonts to a directory that is already on
the font path.
Technical Support
For further assistance, check the Technical Support FAQs on the web at support.wolfram.com.
If you are a Site License Administrator, additional Site License Documentation is available at
site.wolfram.com. If you do not find the information you need, please contact Technical Support
by sending email to support@wolfram.com or by calling +1-217-398-6500. Include your license
number in all correspondence. Your license number is located on your electronic or printed
license certificate. It is also available after installation by going to the Help menu and clicking
About Mathematica. You must be a registered user in order to receive installation support.
You must have a current Premier Service subscription to receive Technical Support.
System Administration for Single-Machine Licenses 139
Mac OS X
Installing Mathematica on Mac OS X
Installing Mathematica for Network Licenses
Requirements
Mathematica is available for Windows, Unix, Linux, and Mac OS X. For a complete list of plat-
form availability, visit www.wolfram.com/products/mathematica/platforms.html. Any supported
machine can act as a client for running Mathematica, provided the following two conditions are
met:
† The client has access to the Mathematica files, either locally or from a file server on the
network.
A license server can also function as its own client. However, this is not recommended. If the
machine has to be rebooted for any reason, the serving of licenses to all other clients on the
network may be disrupted.
Before you install Mathematica as a license server client, MathLM should already be installed
and running on a license server on the network (see "Installing MathLM" for details). To com-
plete the Mathematica installation, you will need to know the name or IP address of the license
server running MathLM.
To Install Mathematica:
2. Drag the Mathematica icon from this window to the location on your hard drive where you
want to install Mathematica. In order for all users to have access to Mathematica, you
should install it in the systemwide Applications folder. You must have administrative
privileges to do this.
Note: If you are installing over a previous version of Mathematica, your existing math-
pass file and custom settings will not be deleted.
3. When all files have been copied, launch Mathematica by opening the folder where you
installed Mathematica and double-clicking the Mathematica icon.
4. Mathematica starts up and the following dialog box appears. Select Network license.
Then enter the name or IP address of the MathLM license server in the text field provided.
After you install Mathematica you can place the Mathematica icon into the Dock for easier
access. To do this, start Mathematica, and hold down the Ctrl key while clicking the Mathemat-
ica icon in the Dock. In the popup menu that appears, choose Keep in Dock.
To run Mathematica, you must register with Wolfram Research and receive a password. See
"Registration and Passwords" for further information.
System Administration for Single-Machine Licenses 141
2. Drag the Mathematica icon from the window to the location on your hard drive where you
want to install Mathematica.
Note: If you are installing over a previous version of Mathematica, your existing math-
pass file and custom settings will not be deleted.
3. When all files have been copied, launch Mathematica by opening the folder where you
installed Mathematica and double-clicking the Mathematica icon.
4. Mathematica starts up and the following dialog box appears. Select Single machine.
Enter your name, the name of your organization, and your license number (located on
your electronic or printed certificate) in the text fields provided. Click OK when you are
done.
142 System Administration for Single-Machine Licenses
5. The following dialog box appears showing the MathID number for your machine. To obtain
your password, click the Web button, go to register.wolfram.com, or contact Wolfram
Research (see "Registration and Passwords" for further information). You will need to
supply your license number and your MathID number.
6. Enter your password and click OK. You are now ready to start using Mathematica.
Before following these instructions, Mathematica should be installed on the file server according
to the instructions in "Network License" and "Single-Machine License".
2. In the dialog box that appears, choose a file server from the list or enter the machine
name or IP address of the file server in the text field. Then click Connect.
System Administration for Single-Machine Licenses 143
3. Enter your name and password in the dialog box that appears. Then click Connect.
4. A dialog box appears, showing a list of volumes on the file server. Select the volume in
which Mathematica is installed. Then click OK.
5. The volume you selected is mounted on the client machine. Double-click the icon represent-
ing the volume.
6. Navigate to the location where Mathematica is installed. Then drag the Mathematica
package from the file server to the location on the client machine where you want to
install Mathematica. In order for all users to have access to Mathematica, you should
install it in the Applications folder. You must log on as administrator to do this.
144 System Administration for Single-Machine Licenses
To Launch Mathematica:
Double-click the Mathematica icon in the directory where Mathematica is installed. Alterna-
tively, if you have placed the Mathematica icon in the dock, single-click the icon.
2. Double-click the icon representing the volume with the Mathematica files. Then navigate
to the location where Mathematica is installed.
MathKernel
The command MathKernel starts the kernel, which is the part of Mathematica that handles
calculations. This command is also used by the Mathematica front end.
System Administration for Single-Machine Licenses 145
Mathematica
The command Mathematica runs the Mathematica front end. In order to run Mathematica with
a command-line option, you must start it from the command line using the Terminal applica-
tion.
-cleanStart Tells the front end to ignore caches stored in the directory
~/Library/Mathematica/FrontEnd/7.0 Caches, and rebuilds
the front end preferences file,
~/Library/Mathematica/FrontEnd/init.m.
-mathlink Causes the front end to run in MathLink mode. In MathLink
mode, the front end runs as a child process that is capable
of accepting MathLink packets. This option may be useful
when the front end is used as a typesetting or graphics
rendering service.
-preferencesDirectory dir Specifies the location where preference settings are stored.
The default location is ~/Library/Mathematica.
-topDirectory dir Specifies the location of the Mathematica installation
directory.
You should run these tests from a regular user account and not from an account with administra-
tor privileges.
To run Mathematica using a network license, both the client machine and the license server
must be on the network and MathLM must be running.
If you run into problems when doing these tests, see the troubleshooting tips in "Trouble-
shooting on Mac OS X". If you do not find the answer there, check the Technical Support web-
site at support.wolfram.com/mathematica.
In[1]:=
2. Type N[Pi, 20] and press Return. The number in the output should match the output
shown here.
Out[1]= 3.1415926535897932385
In[2]:=
A splash screen with initialization information appears briefly, after which an empty note-
book and the Welcome Screen appear.
System Administration for Single-Machine Licenses 147
2. Type N[Pi,20]. Then hold down the Shift key and press Enter to evaluate. This should
send the command to the kernel and return the same result as before. The In[1] and
Out[1] labels are prepended once the evaluation is completed.
In the notebook window, there should be a horizontal line across the notebook; this is the
horizontal insertion bar. If you do not see one, move the pointer until it becomes a horizon-
tal I-beam and click once to see the insertion bar.
3. Press the Esc key. You should see three small horizontal lines in a column (Ç). Type int
and press Esc again. You should see an integral sign (Ÿ ). As an additional font check,
typing î[CheckmarkedBox] and î[CirclePlus] should print the symbols and ⊕,
respectively. If the symbols show up correctly, the fonts have been properly installed.
4. From the Help menu, choose Documentation Center. The Mathematica Documentation
Center should appear.
† Global settings that affect all users are stored in subdirectories of the directory
$BaseDirectory. The default value of $BaseDirectory on Mac OS X is
/Library/Mathematica. To redefine the location of global preference settings and initializa-
tion data, set the environment variable MATHEMATICA_BASE.
† Settings that only affect a particular user are stored in subdirectories of the directory
$UserBaseDirectory, which is typically a subdirectory of the user's home directory. The
default value of $UserBaseDirectory on Mac OS X is ~/Library/Mathematica. To redefine
the location of user preferences and initialization data, set the environment variable
MATHEMATICA_USERBASE.
Settings in the directory $UserBaseDirectory override global settings defined in the directory
$BaseDirectory.
In the pathnames that follow, replace the variables $BaseDirectory and $UserBaseDirectory
with the appropriate directories for your system. To find their locations on your system, evalu-
ate the command $BaseDirectory (or $UserBaseDirectory) in a Mathematica notebook.
Kernel
The initialization files used by the kernel contain Mathematica commands that are evaluated at
startup, such as function definitions, packages to load, or kernel option settings. These com-
mands are also available to the Mathematica front end.
148 System Administration for Single-Machine Licenses
$BaseDirectory/Kernel/init.m
This file is used to initialize the kernel and therefore should store any kernel commands
that are appropriate for all users running the kernel.
$UserBaseDirectory/Kernel/init.m
Front End
Front end initialization files store preference settings such as the values of global options in the
Option Inspector. These files are automatically updated by Mathematica when you change a
setting in the front end. To make changes to this file, make your changes from within Mathemat-
ica rather than editing the file directly.
$BaseDirectory/FrontEnd/init.m
This file stores systemwide defaults used by all Mathematica front ends. The settings in
this file affect all users. "Systemwide Defaults on Mac OS X" explains how to implement
changes to this global file.
$UserBaseDirectory/FrontEnd/init.m
This file defines settings within the front end that are specific to each user.
$UserBaseDirectory/FrontEnd/7.0 Caches/
This directory within the user's home directory stores information on system settings that
are read by the front end.
Passwords
Passwords are stored in the mathpass file, described in further detail in "Registration and Pass-
words". In the following pathname, replace the variable $InstallationDirectory with the
directory where you installed Mathematica. To find the value of $InstallationDirectory on
your system, evaluate the command $InstallationDirectory in a Mathematica notebook.
$BaseDirectory/Licensing/mathpass
$InstallationDirectory/Configuration/Licensing/mathpass
System Administration for Single-Machine Licenses 149
$UserBaseDirectory/Licensing/mathpass
While this is not normally the location for the password file, a user-specific mathpass file
can be stored here.
The following instructions assume that $BaseDirectory and $UserBaseDirectory have their
default values, /Library/Mathematica and ~/Library/Mathematica, respectively.
2. Quit Mathematica.
These settings will now be used by the front end unless overridden by the local init.m file stored
in the user's ~/Library/Mathematica/FrontEnd directory.
2. Add any Mathematica commands that should be evaluated on startup. For example, you
may want to add a function definition or display a message at startup. Enter all the com-
mands in the same cell, separating commands with semicolons.
3. Make this cell an initialization cell by selecting the cell bracket and then choosing Cell
Cell Properties Initialization Cell.
4. When you have finished making your changes, choose File Save and select
Mathematica Package from the Save as type popup menu. Then save the file as
/Library/Mathematica/Kernel/init.m.
150 System Administration for Single-Machine Licenses
These commands will be evaluated when users launch Mathematica. If you added a function
definition, that function will be available to all users.
Troubleshooting on Mac OS X
Passwords
If the front end password dialog box appears when you launch Mathematica, either Mathemat-
ica could not locate the mathpass file or there was no valid password in the mathpass file. To
resolve this problem, first check that there is a mathpass file in one of these directories:
/Library/Mathematica/Licensing, $InstallationDirectory/Configuration/Licensing, or
~/Library/Mathematica/Licensing. To find the exact location of $InstallationDirectory on
your machine, evaluate the command $InstallationDirectory in a notebook. If you did not
find a mathpass file in these locations, follow the instructions in "Entering a Single-Machine
Password" to reenter your password.
If there is a mathpass file in one of those directories, the password or passwords are invalid.
Make sure that your MathID number matches the MathID number used to issue your password.
If your MathID number changes, you will need to contact Customer Service to get a new pass-
word. Contact information is provided in "Registration and Passwords".
Caches
Information about your Mathematica system layout, such as the locations of text resource
files and help files, is stored in caches. These caches are located in the directory ~/Library/
Mathematica/FrontEnd/7.0/ Caches.
A corrupted cache may cause the front end to produce an error or quit immediately on startup.
The most convenient way to restore the caches to their default values is to hold down
Shift+Option during startup. This will cause the Mathematica caches and the initialization file to
be rebuilt automatically.
System Administration for Single-Machine Licenses 151
If you want to rebuild your caches but retain your preferences, hold down Shift during startup.
This will delete and rebuild the cache without rebuilding your front end initialization file.
Technical Support
For further assistance, check the Technical Support FAQs on the web at support.wolfram.com.
If you are a Site License Administrator, additional Site License Documentation is available at
site.wolfram.com. If you do not find the information you need, please contact Technical Support
by sending email to support@wolfram.com or by calling +1-217-398-6500. Include your license
number in all correspondence. Your license number is located on your electronic or printed
license certificate. It is also available after installation by going to the Help menu and clicking
About Mathematica. You must be a registered user in order to receive installation support.
You must have a current Premier Service subscription to receive Technical Support.