⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linuxemu-mathematica.html

📁 FreeBSD操作系统的详细使用手册
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="generator" content="HTML Tidy, see www.w3.org" /><title>Installing Mathematica</title><meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /><link rel="HOME" title="FreeBSD Handbook" href="index.html" /><link rel="UP" title="Linux Binary Compatibility" href="linuxemu.html" /><link rel="PREVIOUS" title="Installation" href="linuxemu-lbc-install.html" /><link rel="NEXT" title="Installing Maple" href="linuxemu-maple.html" /><link rel="STYLESHEET" type="text/css" href="docbook.css" /></head><body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"alink="#0000FF"><div class="NAVHEADER"><table summary="Header navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><th colspan="3" align="center">FreeBSD Handbook</th></tr><tr><td width="10%" align="left" valign="bottom"><a href="linuxemu-lbc-install.html"accesskey="P">Prev</a></td><td width="80%" align="center" valign="bottom">Chapter 10 Linux Binary Compatibility</td><td width="10%" align="right" valign="bottom"><a href="linuxemu-maple.html"accesskey="N">Next</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="SECT1"><h1 class="SECT1"><a id="LINUXEMU-MATHEMATICA" name="LINUXEMU-MATHEMATICA">10.3Installing <span class="TRADEMARK">Mathematica</span>&reg;</a></h1><i class="AUTHORGROUP"><span class="CONTRIB">Updated for Mathematica 4.X by</span> MurrayStokely.</i> <i class="AUTHORGROUP"><span class="CONTRIB">Merged with work by</span>Bojan Bistrovic.</i> <p>This document describes the process of installing the Linux version of <bclass="APPLICATION"><span class="TRADEMARK">Mathematica</span>&reg; 4.X</b> onto aFreeBSD system.</p><p>The Linux version of <b class="APPLICATION"><spanclass="TRADEMARK">Mathematica</span></b> runs perfectly under FreeBSD however thebinaries shipped by Wolfram need to be branded so that FreeBSD knows to use the Linux ABIto execute them.</p><p>The Linux version of <b class="APPLICATION"><spanclass="TRADEMARK">Mathematica</span></b> or <b class="APPLICATION"><spanclass="TRADEMARK">Mathematica</span> for Students</b> can be ordered directly fromWolfram at <a href="http://www.wolfram.com/"target="_top">http://www.wolfram.com/</a>.</p><div class="SECT2"><h2 class="SECT2"><a id="AEN13241" name="AEN13241">10.3.1 Branding the LinuxBinaries</a></h2><p>The Linux binaries are located in the <tt class="FILENAME">Unix</tt> directory of the<b class="APPLICATION"><span class="TRADEMARK">Mathematica</span></b> CDROM distributedby Wolfram. You need to copy this directory tree to your local hard drive so that you canbrand the Linux binaries with <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=brandelf&sektion=1"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">brandelf</span>(1)</span></a> beforerunning the installer:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">mount /cdrom</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cp -rp /cdrom/Unix/ /localdir/</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">brandelf -t Linux /localdir/Files/SystemFiles/Kernel/Binaries/Linux/*</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">brandelf -t Linux /localdir/Files/SystemFiles/FrontEnd/Binaries/Linux/*</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">brandelf -t Linux /localdir/Files/SystemFiles/Installation/Binaries/Linux/*</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">brandelf -t Linux /localdir/Files/SystemFiles/Graphics/Binaries/Linux/*</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">brandelf -t Linux /localdir/Files/SystemFiles/Converters/Binaries/Linux/*</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">brandelf -t Linux /localdir/Files/SystemFiles/LicenseManager/Binaries/Linux/mathlm</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd /localdir/Installers/Linux/</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">./MathInstaller</kbd></pre><p>Alternatively, you can simply set the default ELF brand to Linux for all unbrandedbinaries with the command:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">sysctl kern.fallback_elf_brand=3</kbd></pre><p>This will make FreeBSD assume that unbranded ELF binaries use the Linux ABI and so youshould be able to run the installer straight from the CDROM.</p></div><div class="SECT2"><h2 class="SECT2"><a id="AEN13276" name="AEN13276">10.3.2 Obtaining Your <spanclass="TRADEMARK">Mathematica</span> Password</a></h2><p>Before you can run <b class="APPLICATION"><spanclass="TRADEMARK">Mathematica</span></b> you will have to obtain a password from Wolframthat corresponds to your ``machine ID''.</p><p>Once you have installed the Linux compatibility runtime libraries and unpacked <bclass="APPLICATION"><span class="TRADEMARK">Mathematica</span></b> you can obtain the``machine ID'' by running the program <tt class="COMMAND">mathinfo</tt> in theinstallation directory. This machine ID is based solely on the MAC address of your firstEthernet card.</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">cd /localdir/Files/SystemFiles/Installation/Binaries/Linux</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">mathinfo</kbd>disco.example.com 7115-70839-20412</pre><p>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 groupsof numbers. You can then enter this information when you attempt to run <bclass="APPLICATION"><span class="TRADEMARK">Mathematica</span></b> for the first timeexactly as you would for any other <b class="APPLICATION"><spanclass="TRADEMARK">Mathematica</span></b> platform.</p></div><div class="SECT2"><h2 class="SECT2"><a id="AEN13302" name="AEN13302">10.3.3 Running the <spanclass="TRADEMARK">Mathematica</span> Frontend over a Network</a></h2><p><b class="APPLICATION"><span class="TRADEMARK">Mathematica</span></b> uses somespecial 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<span class="emphasis"><i class="EMPHASIS">locally</i></span>. This means you will haveto copy these fonts from the CDROM or from a host with <b class="APPLICATION"><spanclass="TRADEMARK">Mathematica</span></b> installed to your local machine. These fonts arenormally stored in <tt class="FILENAME">/cdrom/Unix/Files/SystemFiles/Fonts</tt> on theCDROM, or <tt class="FILENAME">/usr/local/mathematica/SystemFiles/Fonts</tt> on your harddrive. The actual fonts are in the subdirectories <tt class="FILENAME">Type1</tt> and <ttclass="FILENAME">X</tt>. There are several ways to use them, as described below.</p><p>The first way is to copy them into one of the existing font directories in <ttclass="FILENAME">/usr/X11R6/lib/X11/fonts</tt>. This will require editing the <ttclass="FILENAME">fonts.dir</tt> file, adding the font names to it, and changing thenumber of fonts on the first line. Alternatively, you should also just be able to run <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=mkfontdir&sektion=1&manpath=XFree86+4.4.0"><span class="CITEREFENTRY"><span class="REFENTRYTITLE">mkfontdir</span>(1)</span></a> inthe directory you have copied them to.</p><p>The second way to do this is to copy the directories to <ttclass="FILENAME">/usr/X11R6/lib/X11/fonts</tt>:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd /usr/X11R6/lib/X11/fonts</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">mkdir X</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">mkdir MathType1</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">cd /cdrom/Unix/Files/SystemFiles/Fonts</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">cp X/* /usr/X11R6/lib/X11/fonts/X</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">cp Type1/* /usr/X11R6/lib/X11/fonts/MathType1</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd /usr/X11R6/lib/X11/fonts/X</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">mkfontdir</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd ../MathType1</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">mkfontdir</kbd></pre><p>Now add the new font directories to your font path:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">xset fp+ /usr/X11R6/lib/X11/fonts/X</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">xset fp+ /usr/X11R6/lib/X11/fonts/MathType1</kbd><samp class="PROMPT">#</samp> <kbd class="USERINPUT">xset fp rehash</kbd></pre><p>If you are using the <b class="APPLICATION"><spanclass="TRADEMARK">XFree86</span>&#8482;</b> server, you can have these font directoriesloaded automatically by adding them to your <tt class="FILENAME">XF86Config</tt>file.</p><p>If you <span class="emphasis"><i class="EMPHASIS">do not</i></span> already have adirectory called <tt class="FILENAME">/usr/X11R6/lib/X11/fonts/Type1</tt>, you can changethe name of the <tt class="FILENAME">MathType1</tt> directory in the example above to <ttclass="FILENAME">Type1</tt>.</p></div></div><div class="NAVFOOTER"><hr align="LEFT" width="100%" /><table summary="Footer navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="linuxemu-lbc-install.html"accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="linuxemu-maple.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Installation</td><td width="34%" align="center" valign="top"><a href="linuxemu.html"accesskey="U">Up</a></td><td width="33%" align="right" valign="top">Installing <spanclass="TRADEMARK">Maple</span>&#8482;</td></tr></table></div><p align="center"><small>This, and other documents, can be downloaded from <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a>.</small></p><p align="center"><small>For questions about FreeBSD, read the <ahref="http://www.FreeBSD.org/docs.html">documentation</a> before contacting &#60;<ahref="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>&#62;.<br />For questions about this documentation, e-mail &#60;<ahref="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>&#62;.</small></p></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -