Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 May 2008 02:19:34 +0200
From:      Carlo Strub <cs@carlostrub.ch>
To:        doc@FreeBSD.org
Subject:   Update of Handbook Section 10.3 Mathematica
Message-ID:  <2C9C6ED8-61B3-4214-8BE3-E2DCC5FBF1AE@carlostrub.ch>

next in thread | raw e-mail | index | archive | help

--PGP_Universal_E9A306B5_F0492DCD_82C1B763_080CD65B
Content-Type: multipart/mixed; boundary=Apple-Mail-1--967343231


--Apple-Mail-1--967343231
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

Here is an update for the Mathematica Installing Section for  
installing Mathematica 6.X.

Cheers,
CS
--Apple-Mail-1--967343231
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: attachment;
	filename="Installing Mathematica.html"
MIME-Version: 1.0
Content-Type: text/plain; x-mac-type="1BEF28E0"; x-unix-mode="0644";
	name="Installing"


                      FreeBSD Handbook
   [1]Prev Chapter 10 Linux Binar= y Compatibility [2]Next
     _________________________________________________________________

10.3 Installing Mathematica®

   Updated for Mathematica 6.= X by CS.=20

   This document describes the process of installing the Linux version of
   Mathematica® 6.X= onto a FreeBSD system.

   The Linux version of Mathematica or Mathematica for Students can be
   ordered dire= ctly from Wolfram at [3]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 A= BI. The easiest way to do so is to set the default ELF
   brand to Linux for all unbranded bin= aries with the command:
# sysctl kern.fallback_elf_brand=3D3

   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.

   Now, copy the file MathInstaller from the CD= ROM to your hard drive
   (for directly downloaded binaries see below):
# mount /cdrom
# cp /cdrom/Unix/Installers/Linux/MathInstaller /localdir=
/

   and in this file, replace /bin/sh in the firs= t line by
   /compat/linux/bin/sh. This makes sure that the insta= ller is executed
   by the Linux version of [4]sh(1). Next, replace all occurrences of
   Linux) by FreeBSD) with a text editor or the script below in the next
   section. This tells the = Mathematica inst= aller, who calls uname -s
   to determine the operating system, to t= reat FreeBSD as a Linux-like
   operating system. Invoking MathInstaller= will now install
   Mathematica.

   In case you have downloaded the file Mathematica_= 6.0.x_LINUX.sh from
   the link e-mailed to you, invoke this shell script= and follow the
   standard instructions.

10.3.2 Modifying t= he 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 sy= mlinks in this directory to files called math, mathematica,
   Mathematica, MathKernel, and mcc. In each of these, replace Linux) by
   FreeBSD). You can do this with a text editor or the following shell
   script:
#!/bin/sh
cd /usr/local/bin
for i in math mathematica Mathematica MathKernel mcc
  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

   Second, replace the string "${SystemID}" =3D "Linux"<= /tt> by
   "${SystemID}" =3D "FreeBSD" in math.

10.3.3 Obtaining Y= our Mathematica Password

   When you start Mathem= atica for the first time, you will be asked for
   a password. If you have not yet o= btained a password from Wolfram,
   run the program mathinfo = in the installation directory to obtain
   your "machine ID". This machin= e ID is based solely on the MAC
   address of your first Ethernet card, so you cannot run yo= ur copy of
   Mathematica on d= ifferent 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 passwor= d 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 mea= ns 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/Fon= ts on the
   CDROM, or /usr/local/mathematica/SystemFiles/Fonts on your hard drive.
   The actual fonts are in the subdirectories Ty= pe1 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 ch= anging the
   number of fonts on the first line. Alternatively, you should also just
   be a= ble to run [5]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 Xorg server, you can h= ave these font
   directories loaded automatically by adding them to your xorg.conf
   file.

     Note: For XFree86(TM) servers, the configuration fi= le is
     XF86Config.

   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 exam= ple above to Type1.
     _________________________________________________________________

   [6]Prev      [7]Home [8]Next
   Installation [9]Up   Installing Maple(TM)

   This, and other documents, can be downloaded fro= m
   [10]ftp://ftp.FreeBSD.org/pub/F= reeBSD/doc/.

   For questions about FreeBSD, read the [11]documentation before
   contacti= ng <[12]questions@FreeBSD.org>.
   For questions about this documentation, e-mail <[13]doc@FreeBSD.org>.

References

   1. file://localhost/tmp/3D"linuxemu-lbc-=
   2. file://localhost/tmp/3D"linuxemu-map=
   3. 3D"http://www.wolfram.com/"
   4. 3D"http://www.FreeBSD.org/cgi/man.cgi?query=3Dsh&sektion=3D1"
   5. 3D"http://www.FreeBSD.org/cgi/man.cgi?query=3Dmkfontdir&sektion=3D=
   6. file://localhost/tmp/3D"linuxemu-lbc-ins=
   7. file://localhost/tmp/3D"index.html"
   8. file://localhost/tmp/3D"linuxemu-maple.=
   9. file://localhost/tmp/3D"linuxemu.html"
  10. 3D"ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/"
  11. 3D"http://www.FreeBSD.org/docs.html"
  12. 3D"mailto:questions@FreeBSD.org"
  13. 3D"mailto:doc@FreeBSD.org"

--Apple-Mail-1--967343231--

--PGP_Universal_E9A306B5_F0492DCD_82C1B763_080CD65B
Content-Type: application/pgp-signature;
	x-mac-type=70674453;
	name=PGP.sig
Content-Disposition: attachment; filename=PGP.sig

-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.3 (Build 3017)

iQEVAwUBSDS8GaSZ7ZvA4kRoAQqxVwgAgMtPzvAiFAoeid6iQF4yWxkjaYvVWU5O
OfOJ1iz6eue7sOC5LkldFJPaFLB/HXYBfBabzb5hsCcFUFVDaXUgnLEVI4oza5qf
RuzgGbUMzm7uluO6W4JKs7MDwo/Lotapo8zq+Wm4BZ6FF49DwZ/9QTn8avtTeGXH
oyBKq6Sd0BXXjRsiAY1jx7CFrYfkumWma+XyfUG7MfyPfCz0VXHrOADx7nRGO55b
94i79qyR0JUpVpygByTu+sbXZ65cKLJ3z8VitDYNQM6miR5asf5zBfP+pnUIMG4n
cZp8IlHJBjou13ztmRpmROtfEj6/eo0bePVfb9MnhJJ0nQQ41rmajg==
=Ax4q
-----END PGP SIGNATURE-----

--PGP_Universal_E9A306B5_F0492DCD_82C1B763_080CD65B--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2C9C6ED8-61B3-4214-8BE3-E2DCC5FBF1AE>