📄 linuxemu-maple.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 Maple</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="Installing Mathematica" href="linuxemu-mathematica.html" /><link rel="NEXT" title="Installing MATLAB" href="linuxemu-matlab.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-mathematica.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-matlab.html"accesskey="N">Next</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="SECT1"><h1 class="SECT1"><a id="LINUXEMU-MAPLE" name="LINUXEMU-MAPLE">10.4 Installing <spanclass="TRADEMARK">Maple</span>™</a></h1><i class="AUTHORGROUP"><span class="CONTRIB">Contributed by</span> Aaron Kaplan.</i> <iclass="AUTHORGROUP"><span class="CONTRIB">Thanks to</span> Robert Getschmann.</i> <p><b class="APPLICATION"><span class="TRADEMARK">Maple</span>™</b> is a commercialmathematics program similar to <b class="APPLICATION"><spanclass="TRADEMARK">Mathematica</span>®</b>. You must purchase this software from <ahref="http://www.maplesoft.com/" target="_top">http://www.maplesoft.com/</a> and thenregister there for a license file. To install this software on FreeBSD, please followthese simple steps.</p><div class="PROCEDURE"><ol type="1"><li><p>Execute the <tt class="FILENAME">INSTALL</tt> shell script from the productdistribution. Choose the ``RedHat'' option when prompted by the installation program. Atypical installation directory might be <tt class="FILENAME">/usr/local/maple</tt>.</p></li><li><p>If you have not done so, order a license for <b class="APPLICATION"><spanclass="TRADEMARK">Maple</span></b> from Maple Waterloo Software (<ahref="http://register.maplesoft.com/" target="_top">http://register.maplesoft.com/</a>)and copy it to <tt class="FILENAME">/usr/local/maple/license/license.dat</tt>.</p></li><li><p>Install the <b class="APPLICATION">FLEXlm</b> license manager by running the <ttclass="FILENAME">INSTALL_LIC</tt> install shell script that comes with <bclass="APPLICATION"><span class="TRADEMARK">Maple</span></b>. Specify the primaryhostname for your machine for the license server.</p></li><li><p>Patch the <tt class="FILENAME">/usr/local/maple/bin/maple.system.type</tt> file withthe following:</p><pre class="PROGRAMLISTING"> ----- snip ------------------*** maple.system.type.orig Sun Jul 8 16:35:33 2001--- maple.system.type Sun Jul 8 16:35:51 2001****************** 72,77 ****--- 72,78 ---- # the IBM RS/6000 AIX case MAPLE_BIN="bin.IBM_RISC_UNIX" ;;+ "FreeBSD"|\ "Linux") # the Linux/x86 case # We have two Linux implementations, one for Red Hat and ----- snip end of patch -----</pre><p>Please note that after the <var class="LITERAL">"FreeBSD"|\</var> no other whitespaceshould be present.</p><p>This patch instructs <b class="APPLICATION"><span class="TRADEMARK">Maple</span></b>to recognize ``FreeBSD'' as a type of Linux system. The <ttclass="FILENAME">bin/maple</tt> shell script calls the <ttclass="FILENAME">bin/maple.system.type</tt> shell script which in turn calls <ttclass="COMMAND">uname -a</tt> to find out the operating system name. Depending on the OSname it will find out which binaries to use.</p></li><li><p>Start the license server.</p><p>The following script, installed as <ttclass="FILENAME">/usr/local/etc/rc.d/lmgrd.sh</tt> is a convenient way to start up <ttclass="COMMAND">lmgrd</tt>:</p><pre class="PROGRAMLISTING"> ----- snip ------------#! /bin/shPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/binPATH=${PATH}:/usr/local/maple/bin:/usr/local/maple/FLEXlm/UNIX/LINUXexport PATHLICENSE_FILE=/usr/local/maple/license/license.datLOG=/var/log/lmgrd.logcase "$1" instart) lmgrd -c ${LICENSE_FILE} 2>> ${LOG} 1>&2 echo -n " lmgrd" ;;stop) lmgrd -c ${LICENSE_FILE} -x lmdown 2>> ${LOG} 1>&2 ;;*) echo "Usage: `basename $0` {start|stop}" 1>&2 exit 64 ;;esacexit 0 ----- snip ------------</pre></li><li><p>Test-start <b class="APPLICATION"><span class="TRADEMARK">Maple</span></b>:</p><pre class="SCREEN"><samp class="PROMPT">%</samp> <kbd class="USERINPUT">cd /usr/local/maple/bin</kbd><samp class="PROMPT">%</samp> <kbd class="USERINPUT">./xmaple</kbd></pre><p>You should be up and running. Make sure to write Maplesoft to let them know you wouldlike a native FreeBSD version!</p></li></ol></div><div class="SECT2"><h2 class="SECT2"><a id="AEN13434" name="AEN13434">10.4.1 Common Pitfalls</a></h2><ul><li><p>The <b class="APPLICATION">FLEXlm</b> license manager can be a difficult tool to workwith. Additional documentation on the subject can be found at <ahref="http://www.globetrotter.com/" target="_top">http://www.globetrotter.com/</a>.</p></li><li><p><tt class="COMMAND">lmgrd</tt> is known to be very picky about the license file and tocore dump if there are any problems. A correct license file should look like this:</p><pre class="PROGRAMLISTING"># =======================================================# License File for UNIX Installations ("Pointer File")# =======================================================SERVER chillig ANY#USE_SERVERVENDOR maplelmgFEATURE Maple maplelmg 2000.0831 permanent 1 XXXXXXXXXXXX \ PLATFORMS=i86_r ISSUER="Waterloo Maple Inc." \ ISSUED=11-may-2000 NOTICE=" Technische Universitat Wien" \ SN=XXXXXXXXX</pre><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> Serial number and key 'X''ed out. <tt class="HOSTID">chillig</tt> is ahostname.</p></blockquote></div><p>Editing the license file works as long as you do not touch the ``FEATURE'' line (whichis protected by the license key).</p></li></ul></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-mathematica.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-matlab.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Installing <spanclass="TRADEMARK">Mathematica</span>®</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">MATLAB</span>®</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 <<ahref="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>>.<br />For questions about this documentation, e-mail <<ahref="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>>.</small></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -