Date: Sun, 20 Jan 2002 20:15:54 -0500 From: Robert Sexton <robert@kudra.com> To: doc@freebsd.org Subject: Handbook submission. Message-ID: <20020120201554.A97261@kudra.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
I've written a handbook entry on installing linux Matlab.
It will need some minor proofing, but I think it complies
with the format of the existing sgml. Its modeled on the Mathematica
section, and has been tested with two varieties of Matlab.
If this isn't the right place to send it, please let me know.
Thanks.
--
Robert Sexton, robert@kudra.com
Clairvoyant, n. A person, commonly a woman, who has the power of
seeing that which is invisible to her patron, namely, that he is a
blockhead - Ambrose Bierce, "The Devils' Dictionary"
[-- Attachment #2 --]
<sect1 id="linuxemu-matlab">
<title>Installing MATLAB Version 6</title>
<indexterm>
<primary>applications</primary>
<secondary><application>MATLAB</application></secondary>
</indexterm>
<para>This document describes the process of installing the Linux
version of <application>MATLAB 6</application> onto a FreeBSD
system.</para>
<para>The Linux version of <application>MATLAB</application> runs
well under FreeBSD. The startup and installation scripts
provided by the MathWorks are slightly confused by the emulator
environment, so some small changes are necessary to get the
application to install and run.</para>
<para>The following instructions have been tested with MATLAB
Version 6/R12 for students on FreeBSD 4.3-RELEASE.</para>
<para>The Linux version of <application>MATLAB</application> or
<application>MATLAB for Students</application> can be ordered
directly from The MathWorks at <ulink>url="http://www.mathworks.com/">http://www.mathworks.com/</link>.</para>
<sect2>
<title>Pre-Installation</title>
<para>Before beginning the installation, create a directory
for MATLAB. I use /usr/local/matlab6, but that isn't required.</para>
<screen>
&prompt.root; <userinput>mkdir /usr/local/matlab6</userinput>
</screen>
<para>If you have a license.dat provided separately by the Mathworks
place it in your /usr/local/matlab6 directory. The install script
will make some changes and install it in its final location.</para>
</sect2>
<sect2>
<title>Installing MATLAB</title>
<para>The Installer provided by
the Mathworks includes a nice graphical frontend that is
unnecessary. The installation scripts attempt to determine
exactly which operation system you are running, and act
appropriately. This does not function perfectly in the emulator
environment, so you must explicitly specify the operating
system.</para>
<screen>
&prompt.root; <userinput>mount /cdrom</userinput>
&prompt.root; <userinput>/cdrom/install_glnx.sh -t -glnx86</userinput>
</screen>
<para>Some editions have a slightly different layout, so if
your don't have install_gnlx, proceed as follows:</para>
<screen>
&prompt.root; <userinput>/cdrom/install -t -glnx86</userinput>
</screen>
<para>After accepting the license agreement, you will be
prompted for the MATLAB root directory.
The installation script will create the dierectory for you,
if necessary.
Following this, you will be prompted to select
platforms and products, and you may customize as you see fit.
The install script will also offer to create symbolic links in
the directory of your choice. The default,
<filename>/usr/local/bin</filename>, should be appropriate for
most systems. At this point, no further input is required until
MATLAB finishes installing the base system. You may now unmount
the cd.</para>
<screen>
&prompt.root; <userinput>umount /cdrom</userinput>
</screen>
<para>You may also want to install the MATLAB documentation on
your system rather than access it via cdrom. The documentation as
supplied by the mathworks is approximately 440 megabytes. Some
editions have a documentaion CD that includes an installation script.
If you aren't one of the lucky ones, proceed as follows:</para>
<screen>
&prompt.root; <userinput>mkdir /usr/local/MATLAB6/mhelp</userinput>
&prompt.root; <userinput>mount /cdrom</userinput>
&prompt.root; <userinput>cd /cdrom/help</userinput>
&prompt.root; <userinput>cp -R /usr/local/matlab6/mhelp</userinput>
</screen>
<para>Otherwise, use the suppied install script:</para>
<screen>
&prompt.root; <userinput>mount /cdrom</userinput>
&prompt.root; <userinput>/cdrom/install -t -glnx86</userinput>
</screen>
</sect2>
<sect2>
<title>Running MATLAB</title>
<para>As before, the scripts provided by the mathworks are
slightly confused by the emulator enviroment, so we must
manually specify the operating system when we start
MATLAB</para>
<para>For the Standard version of MATLAB, it is necessary to
start the license manager</para>
<screen>
&prompt; <userinput>lmstart -glnx86</userinput>
</screen>
<para>Then invoke MATLAB</para>
<screen>
&prompt; <userinput>matlab -glnx86</userinput>
</screen>
<para>You may receive warnings that MATLAB was unable to open
<filename>/dev/ptmx</filename>. In this case, the ! command
will not be available from within MATLAB, but the software will
be otherwise unaffected</para>
<para>To shut down the license manager, we use the same switch
as before</para>
<screen>
&prompt; <userinput>lmstop -glnx86</userinput>
</screen>
</sect1>
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020120201554.A97261>
