From owner-freebsd-doc Sun Jan 20 17:16: 6 2002 Delivered-To: freebsd-doc@freebsd.org Received: from tabby.kudra.com (gw.kudra.com [199.6.32.20]) by hub.freebsd.org (Postfix) with ESMTP id 703E137B400 for ; Sun, 20 Jan 2002 17:15:58 -0800 (PST) Received: (from robert@localhost) by tabby.kudra.com (8.11.6/8.11.5) id g0L1FsP97406 for doc@freebsd.org; Sun, 20 Jan 2002 20:15:54 -0500 (EST) (envelope-from robert) Date: Sun, 20 Jan 2002 20:15:54 -0500 From: Robert Sexton To: doc@freebsd.org Subject: Handbook submission. Message-ID: <20020120201554.A97261@kudra.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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" --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="matlab_chapter.sgml" Installing MATLAB Version 6 applications MATLAB This document describes the process of installing the Linux version of MATLAB 6 onto a FreeBSD system. The Linux version of MATLAB 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. The following instructions have been tested with MATLAB Version 6/R12 for students on FreeBSD 4.3-RELEASE. The Linux version of MATLAB or MATLAB for Students can be ordered directly from The MathWorks at url="http://www.mathworks.com/">http://www.mathworks.com/. Pre-Installation Before beginning the installation, create a directory for MATLAB. I use /usr/local/matlab6, but that isn't required. &prompt.root; mkdir /usr/local/matlab6 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. Installing MATLAB 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. &prompt.root; mount /cdrom &prompt.root; /cdrom/install_glnx.sh -t -glnx86 Some editions have a slightly different layout, so if your don't have install_gnlx, proceed as follows: &prompt.root; /cdrom/install -t -glnx86 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, /usr/local/bin, 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. &prompt.root; umount /cdrom 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: &prompt.root; mkdir /usr/local/MATLAB6/mhelp &prompt.root; mount /cdrom &prompt.root; cd /cdrom/help &prompt.root; cp -R /usr/local/matlab6/mhelp Otherwise, use the suppied install script: &prompt.root; mount /cdrom &prompt.root; /cdrom/install -t -glnx86 Running MATLAB 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 For the Standard version of MATLAB, it is necessary to start the license manager &prompt; lmstart -glnx86 Then invoke MATLAB &prompt; matlab -glnx86 You may receive warnings that MATLAB was unable to open /dev/ptmx. In this case, the ! command will not be available from within MATLAB, but the software will be otherwise unaffected To shut down the license manager, we use the same switch as before &prompt; lmstop -glnx86 --NzB8fVQJ5HfG6fxh-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message