Mathematica
Last Modified: 10/05 10:45
Description
Mathematica is the tool of choice at the frontiers of scientific research, in engineering analysis and modeling, in technical education from high school to graduate school, and wherever quantitative methods are used.
Version
- 7.0
Authorized Users
- circe account holders
- Students doing valid research
- Faculty
Platforms
- circe cluster
- Workstation/PC
Installation
Contents
Installing Mathematica On Windows
Installing Mathematica On Linux
Installing Mathematica On Solaris8
Installing Mathematica On Windows
- Log into https://rc.usf.edu/isos using your NetID and password. Change to the directory /Mathematica/current and download the file named ISO file(s) to a temporary directory on your PC. Once the file has finished downloading you may disconnect from the FTP server.
- Burn a CD with this iso. Note: You cannot just copy the file to a CD, you must use a software program that allows you to create a CD from an image file. If you need help with recording CDs please see our guide at CDBurning.
Alternatively, you could mount the ISO without burning a CD. Read our guide at WindowsISO.
- Insert the CD from step 2 into your CD-ROM drive.
- When the Mathematica installation program starts, click on "Install Mathematica to a hard disk."
- On the next screen, make sure the installation type is set to "Full" and click "Install"
- When the files are finished copying, the Installer will ask you about a license or a password. Please select the "Enter license information now" option and enter license0.rc.usf.edu in the license server field on the next screen.
- Click OK.
Installing Mathematica On Linux
- Log into https://rc.usf.edu/isos using your NetID and password. Change to the directory /Mathematica/current and download the file named mathematica5.1-win-mac-linux-single.iso to a temporary directory on your PC. Once the file has finished downloading you may disconnect from the FTP server.
- Next, become root user by using the su command. Then change to the temporary directory where you downloaded the iso file. Inside the temporary directory create a new directory called cd1 by using the following command:
# mkdir cd1
Then mount the ISO image you downloaded into this new directory using the next command:
# mount -o loop mathematica5.1-win-mac-linux-single.iso cd1/
The installation CD should now be mounted and ready for you to begin the installation process.
- Issue the command ./cd1/Unix/Installer/MathInstaller from the current directory to start the installation.
- For the first question, select (1) for a full installation or hit ENTER.
- For the second question regarding the installation path we recommend using the default directory. Press ENTER to continue or enter a different installation directory now. The installation should now start. Please be patient as files are copied over.
- For the last question about executable scripts, just press enter. if the installer says files already exist, select (1) or press ENTER to overwrite the old files.
- The next question asks if you would like to install a password. Please enter 2 for Network License. When the installer asks for a license server, please enter license0.rc.usf.edu and press enter.
- Once the installation is complete, you should be able to type in mathematica at the command line to start the program. If this does not work, you will have to add '/usr/local/bin' to your path. Please edit your .bashrc file and add the line
PATH=$PATH:/usr/local/bin.
Re-login to your computer and issue the mathematica command.
Installing Mathematica On Solaris 8
- Log into https://rc.usf.edu/isos using your NetID and password. Change to the directory /Mathematica/current and download the file named mathematica5.1-hpux-aix-solaris.iso to a temporary directory on your PC. Once the file has finished downloading you may disconnect from the FTP server.
- Insert the Mathematica UNIX CD in your CD-ROM drive.
- A file manager window for CDE should pop up. Close it and open up a console instead. Use su to log in as root. Type in cd /cdrom/cdrom0/Installers/Solaris/ where /cdrom/cdrom0 is the path where your CD-ROM is mounted.
- Issue the command ./MathInstall to start the installation.
- For the first question, "Enter top Mathematica directory", just hitting enter will be fine. If you wish to install to a different path, please enter that path here and hit enter.
- For the second question regarding your system type, please hit enter for Solaris.
- For the next question about the installation method, just press enter for a Full installation.
- The next question asks if you would like to install a password. Please enter 2 for Network License. When the installer asks for a license server, please enter license0.rc.usf.edu and press enter.
- For the last question about executable scripts, just press enter. The installation should now start. Please be patient as files are copied over.
Once the installation is complete, you should be able to type in mathematica at the command line to start the program. If this does not work, you will have to add '/usr/local/bin' to your path. Please edit your .cshrc file and add the line
PATH=$PATH:/usr/local/bin
Re-login to your computer and issue the mathematica command.
Once installation is complete, just type in cd ~ ; umount /cdrom/cdrom0; eject; to eject the CD-ROM.
Running Mathematica on Circe
Modules
Mathematica requires the following module file and some prerequisites to run:
- apps/mathematica/7.0
To run Mathematica on the cluster, ensure that you use module initadd to make the changes persistent. See Modules for more information.
Submitting a Job
There are two ways to run Mathematica on Circe depending on the runtime of your particular job.
Jobs Shorter than 20 Minutes in Length (most jobs)
Simply type mathematica at the command line. If you have properly configured an X11 session, you should see the full Mathematica interface. If you haven't configured X11, you will be able to use the console interface. For users wishing to use the graphical interface over X11, please see our XWin32 Installation documentation.
Jobs Longer than 20 Minutes in Length
To run Mathematica jobs on Circe, users will need to submit their jobs to the scheduling environment if their jobs take more than 20 minutes to run on a standard PC.
If, for example, you have a Mathematica script file named example.math with all your functions defined in it, you would set up a submit script to use the Mathematica kernel like this:
#!/bin/bash #$ -cwd #$ -l h_rt=00:20:00 #$ -j y #$ -N matlab_test #$ -o output.$JOB_ID source /etc/apps.d/mathematica.sh math < test.math