Date: Wed, 2 Mar 2005 17:58:40 +0100 From: Boris Hollas <hollas@informatik.uni-ulm.de> To: freebsd-doc@freebsd.org Subject: Mathematica 5 installation - updated Message-ID: <20050302175840.06b4031f.hollas@informatik.uni-ulm.de> In-Reply-To: <20050302134214.GI42515@nosferatu.blackend.org> References: <20050302143958.1483e0b9.hollas@informatik.uni-ulm.de> <20050302134214.GI42515@nosferatu.blackend.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --Multipart=_Wed__2_Mar_2005_17_58_40_+0100_PG=isjEre8ACjKmr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello, this is the updated section "Installing Mathematica" of the handbook. In the text, I have included a small shell script that makes installation easier. However, I don't know how to format this in html, so this needs formatting. I have not updated the section "10.3.4 Running the Mathematica Frontend over a Network" since I use Mathematica locally. Maybe this should be indicated as I don't know if this section still applies for Mathematica 5. Please tell me what happened to the text. Regards, Boris --Multipart=_Wed__2_Mar_2005_17_58_40_+0100_PG=isjEre8ACjKmr Content-Disposition: attachment; filename="linuxemu-mathematica.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; name="linuxemu-mathematica.html" #[1]FreeBSD Handbook [2]Linux Binary Compatibility [3]Installation [4]Installing Maple FreeBSD Handbook [5]Prev Chapter 10 Linux Binary Compatibility [6]Next ______________________________________________________________________ 10.3 Installing Mathematica® Updated for Mathematica 5 by Boris Hollas. This document describes the process of installing the Linux version of Mathematica® 5 onto a FreeBSD system. The Linux version of Mathematica or Mathematica for Students can be ordered directly from Wolfram at [7]http://www.wolfram.com/. 10.3.1 Running the Mathematica Installer First, you have to tell FreeBSD that Mathematica's Linux binaries use the Linux ABI. The easiest way to do so is to set the default ELF brand to Linux for all unbranded binaries with the command # sysctl kern.fallback_elf_brand=3 This will make FreeBSD assume that unbranded ELF binaries use the Linux ABI and so you should be able to run the installer straight from the CDROM. For the next step, you must have Linux binary compatibility enabled. You can find out if the Linux kernel module is already loaded by # kldstat If the Linux kernel module does not show up, load it with # kldload linux Now, copy the file MathInstaller to your hard drive and replace /bin/sh in the first line by /compat/linux/bin/sh. This makes sure that the installer is executed by the Linux version of sh. Next, replace all occurrences of Linux) by FreeBSD) with a text editor or the script below. This tells the Mathematica installer, who calls uname -s, to determine the operating system, to treat FreeBSD as a Linux-like operating system. Invoking MathInstaller will now install Mathematica. 10.3.2 Modifying the Mathematica Executables The shell scripts that Mathematica created during installation have to be modified before you can use them. If you chose /usr/local/bin as the directory to place the Mathematica executables in, you will find symlinks in this directory to files called math, mathematica, Mathematica, and MathKernel. In each of these, replace Linux) by FreeBSD) with a text editor or the following shell script: #!/bin/sh cd /usr/local/bin for i in math mathematica Mathematica MathKernel do sed 's/Linux)/FreeBSD)/g' $i > $i.tmp sed 's/\/bin\/sh/\/compat\/linux\/bin\/sh/g' $i.tmp > $i rm $i.tmp chmod a+x $i done 10.3.3 Obtaining Your Mathematica Password When you start Mathematica for the first time, you will be asked for your password. If you have not yet obtained a password from Wolfram, run the program mathinfo in the installation directory to obtain your ``machine ID''. This machine ID is based solely on the MAC address of your first Ethernet card, so you cannot run your copy of Mathematica on different machines. When you register with Wolfram, either by email, phone or fax, you will give them the ``machine ID'' and they will respond with a corresponding password consisting of groups of numbers. 10.3.4 Running the Mathematica Frontend over a Network Mathematica uses some special fonts to display characters not present in any of the standard font sets (integrals, sums, Greek letters, etc.). The X protocol requires these fonts to be install locally. This means you will have to copy these fonts from the CDROM or from a host with Mathematica installed to your local machine. These fonts are normally stored in /cdrom/Unix/Files/SystemFiles/Fonts on the CDROM, or /usr/local/mathematica/SystemFiles/Fonts on your hard drive. The actual fonts are in the subdirectories Type1 and X. There are several ways to use them, as described below. The first way is to copy them into one of the existing font directories in /usr/X11R6/lib/X11/fonts. This will require editing the fonts.dir file, adding the font names to it, and changing the number of fonts on the first line. Alternatively, you should also just be able to run [8]mkfontdir(1) in the directory you have copied them to. The second way to do this is to copy the directories to /usr/X11R6/lib/X11/fonts: # cd /usr/X11R6/lib/X11/fonts # mkdir X # mkdir MathType1 # cd /cdrom/Unix/Files/SystemFiles/Fonts # cp X/* /usr/X11R6/lib/X11/fonts/X # cp Type1/* /usr/X11R6/lib/X11/fonts/MathType1 # cd /usr/X11R6/lib/X11/fonts/X # mkfontdir # cd ../MathType1 # mkfontdir Now add the new font directories to your font path: # xset fp+ /usr/X11R6/lib/X11/fonts/X # xset fp+ /usr/X11R6/lib/X11/fonts/MathType1 # xset fp rehash If you are using the XFree86(TM) server, you can have these font directories loaded automatically by adding them to your XF86Config file. If you do not already have a directory called /usr/X11R6/lib/X11/fonts/Type1, you can change the name of the MathType1 directory in the example above to Type1. ______________________________________________________________________ [9]Prev [10]Home [11]Next Installation [12]Up Installing Maple(TM) This, and other documents, can be downloaded from [13]ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/. For questions about FreeBSD, read the [14]documentation before contacting <[15]questions@FreeBSD.org>. For questions about this documentation, e-mail <[16]doc@FreeBSD.org>. References 1. file://localhost/tmp/index.html 2. file://localhost/tmp/linuxemu.html 3. file://localhost/tmp/linuxemu-lbc-install.html 4. file://localhost/tmp/linuxemu-maple.html 5. file://localhost/tmp/linuxemu-lbc-install.html 6. file://localhost/tmp/linuxemu-maple.html 7. http://www.wolfram.com/ 8. http://www.FreeBSD.org/cgi/man.cgi?query=mkfontdir&sektion=1&manpath=XFree86+4.4.0 9. file://localhost/tmp/linuxemu-lbc-install.html 10. file://localhost/tmp/index.html 11. file://localhost/tmp/linuxemu-maple.html 12. file://localhost/tmp/linuxemu.html 13. ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ 14. http://www.FreeBSD.org/docs.html 15. mailto:questions@FreeBSD.org 16. mailto:doc@FreeBSD.org --Multipart=_Wed__2_Mar_2005_17_58_40_+0100_PG=isjEre8ACjKmr--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050302175840.06b4031f.hollas>