Date: Sun, 13 Oct 2013 19:43:34 +0000 (UTC) From: Dru Lavigne <dru@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r42950 - head/en_US.ISO8859-1/books/handbook/linuxemu Message-ID: <201310131943.r9DJhYf5062364@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dru Date: Sun Oct 13 19:43:34 2013 New Revision: 42950 URL: http://svnweb.freebsd.org/changeset/doc/42950 Log: This patch does the following: - comments out Mathematica chapter - adds a comment that the installer shell script works but the binaries don't as only 64-bit is available and to revisit if linuxemu adds 64-bit support - modernizes 11.3.1 - 11.3.2 left untested as binary would not launch Approved by: bcr (mentor) Modified: head/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml Sun Oct 13 19:40:10 2013 (r42949) +++ head/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml Sun Oct 13 19:43:34 2013 (r42950) @@ -326,6 +326,11 @@ multi on</programlisting> </sect2> </sect1> + <!-- + While the installer works, the binaries do not. As of Oct 2013, Linux + emulation is 32-bit but the trial version of Mathematica is only + available as 64-bit. This section should be revisited if Linux + emulation gets 64-bit binary support. <sect1 id="linuxemu-mathematica"> <sect1info> <authorgroup> @@ -336,6 +341,7 @@ multi on</programlisting> </author> </authorgroup> </sect1info> + <title>Installing &mathematica;</title> <indexterm> @@ -344,95 +350,49 @@ multi on</programlisting> </indexterm> <para>This section describes the process of installing the - &linux; version of <application>&mathematica; 5.X</application> + &linux; version of <application>&mathematica; 9.X</application> onto a &os; system. <application>&mathematica;</application> is a commercial, computational software program used in - scientific, engineering, and mathematical fields. It is - available from <ulink - url="http://www.wolfram.com/mathematica/">Wolfram - Research</ulink>.</para> + scientific, engineering, and mathematical fields. A 30 day trial version is + available for download from <ulink + url="http://www.wolfram.com/mathematica/">wolfram.com/mathematica</ulink>.</para> <sect2> <title>Running the &mathematica; Installer</title> - <para>First, tell &os; that - <application>&mathematica;</application>'s &linux; - binaries use the &linux; Application Binary Interface - <acronym>ABI</acronym>. The easiest way to do this is to - set the default ELF brand to &linux; for all unbranded - binaries with the command:</para> - + <para>Before installing &mathematica;, make sure that the + <filename role="package">textproc/linux-f10-aspell</filename> + package or port is installed and that the &man.linprocfs.5; + file system is mounted.</para> + <screen>&prompt.root; <userinput>sysctl kern.fallback_elf_brand=3</userinput></screen> <para>&os; will now assume that unbranded ELF binaries use the &linux; <acronym>ABI</acronym> which should allow the installer to execute from the CDROM.</para> - <para>Copy the <filename>MathInstaller</filename> to the hard - drive:</para> - - <screen>&prompt.root; <userinput>mount /cdrom</userinput> -&prompt.root; <userinput>cp /cdrom/Unix/Installers/Linux/MathInstaller /localdir/</userinput></screen> - - <para>In this file, replace <literal>/bin/sh</literal> in - the first line with <literal>/compat/linux/bin/sh</literal>. - This ensures that the installer is executed by the &linux; - version of &man.sh.1;. Next, replace all occurrences of - <literal>Linux)</literal> with <literal>FreeBSD)</literal> - using a text editor or the script below in the next section. - This tells the <application>&mathematica;</application> - installer, to treat &os; as a &linux;-like operating - system. Invoking <command>MathInstaller</command> should now - install <application>&mathematica;</application>.</para> - </sect2> - - <sect2> - <title>Modifying the &mathematica; Executables</title> - - <para>The shell scripts that - <application>&mathematica;</application> created during - installation have to be modified before use. When using - <filename - class="directory">/usr/local/bin</filename> as the directory - for the <application>&mathematica;</application> - executables, symlinks in this directory will point to files - called <filename>math</filename>, - <filename>mathematica</filename>, - <filename>Mathematica</filename>, and - <filename>MathKernel</filename>. In each of these, replace - <literal>Linux)</literal> with <literal>FreeBSD)</literal> - using a text editor or the following shell script:</para> - - <programlisting>#!/bin/sh -cd /usr/local/bin -for i in math mathematica Mathematica MathKernel - 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</programlisting> - </sect2> - - <sect2> - <title>Obtaining a &mathematica; Password</title> - - <indexterm> - <primary>Ethernet</primary> - <secondary>MAC address</secondary> - </indexterm> + <para>The downloaded file will be saved to + <filename>/tmp/Mathematica_9.0.1_LINUX.sh</filename>. Become + the superuser and run this installer file:</para> + + <programlisting>&prompt.root; <userinput>sh /tmp/Mathematica_9.0.1_LINUX.sh</userinput> +Mathematica Secured 9.0.1 for LINUX Installer Archive + +Verifying archive integrity. +Extracting installer. ... + Wolfram Mathematica 9 Installer +Copyright (c) 1988-2013 Wolfram Research, Inc. All rights reserved. + +WARNING: Wolfram Mathematica is protected by copyright law and international treaties. Unauthorized +reproduction or distribution may result in severe civil and criminal +penalties and will be prosecuted to the maximum extent possible under law. + +Enter the installation directory, or press ENTER to select /usr/local/Wolfram/Mathematica/9.0: +> +Now installing... +*********************** +Installation complete.</programlisting> - <para>When <application>&mathematica;</application> is started - for the first time, it will ask for a password. If a password - had not yet been obtained from Wolfram Research, run - <command>mathinfo</command> in the installation directory to - obtain the <quote>machine ID</quote>. This machine ID is - based solely on the MAC address of the first Ethernet card, - as the copy of <application>&mathematica;</application> cannot - run on different machines.</para> - - <para>When registering with Wolfram Research, provide the - <quote>machine ID</quote> and they will respond with a - corresponding password consisting of groups of numbers.</para> </sect2> <sect2> @@ -495,6 +455,7 @@ done</programlisting> class="directory">Type1</filename>.</para> </sect2> </sect1> + --> <sect1 id="linuxemu-maple"> <sect1info>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310131943.r9DJhYf5062364>