From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 27 22:38:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F34516A4CE for ; Tue, 27 Jan 2004 22:38:06 -0800 (PST) Received: from axe.humboldt.edu (axe.humboldt.edu [137.150.148.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6381E43D58 for ; Tue, 27 Jan 2004 22:38:05 -0800 (PST) (envelope-from jre9@humboldt.edu) Received: from webmail.humboldt.edu (webmail.humboldt.edu [137.150.146.35]) i0S6c5Yx348289 for ; Tue, 27 Jan 2004 22:38:05 -0800 (PST) Received: from hsu64828.humboldt.edu ([137.150.253.60]) (SquirrelMail authenticated user jre9) by webmail.humboldt.edu with HTTP; Tue, 27 Jan 2004 22:48:47 -0800 (PST) Message-ID: <49185.137.150.253.60.1075272527.squirrel@webmail.humboldt.edu> Date: Tue, 27 Jan 2004 22:48:47 -0800 (PST) From: jre9@humboldt.edu To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: Mathematica 5 installation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 06:38:06 -0000 The handbook includes information for installing Mathematica 4, but I have Mathematica 5 and found the handbook's guidelines to be entirely irrelevant to version 5. So here's how I finally figured out how to install version 5: First, the binaries are already branded properly (SVR4). So, mount the cd and run the installer. I installed to /compat/linux/usr/Wolfram/..., and put the binary links in /compat/linux/usr/bin . However, the little scripts (in /compat/linux/usr/bin) that start Mathematica don't work for FreeBSD: they report 'unknown OS'. If you fudge that part, so that it reports 'Linux', it simply doesn't work... perhaps something to do with the paths coded into the script. Anyway, I found it much simpler to roll my own script and stick it in my bin directory: (note: "+" means continue the line) #!/bin/sh export LD_LIBRARY_PATH="$LD_LIBRARY_PATH: + /compat/linux/usr/Wolfram/Mathematica + /5.0/SystemFiles/Libraries/Linux" exec /compat/linux/usr/ + Wolfram/Mathematica/5.0/ + SystemFiles/FrontEnd/Binaries/ + Linux/Mathematica -topDirectory + "/compat/linux/usr/Wolfram/Mathematica/5.0" "$@" as for the fonts, which must be loaded before the frontend is loaded, they reside in "/compat/linux/usr/ + Wolfram/Mathematica/5.0/ + SystemFiles/Fonts/Type 1" and ".../Fonts/BDF" I put these into XF86Config, but if you want to mirror the original Mathematica loading script, you can put this before the exec statement in the script: xset fp+ "[the first directory listed above]" xset fp+ "[the second directory listed above]" xset fp rehash I hope this is useful to others. -josh