Date: Tue, 27 Jan 2004 22:48:47 -0800 (PST) From: jre9@humboldt.edu To: freebsd-hackers@freebsd.org Subject: Mathematica 5 installation Message-ID: <49185.137.150.253.60.1075272527.squirrel@webmail.humboldt.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49185.137.150.253.60.1075272527.squirrel>