Install mathematica5 for linux on freebsd4.9 successfully
wxy
wxyrcl at yahoo.com.cn
Fri Mar 19 19:15:46 UTC 2004
Hi,
I have installed mathematica5 for linux on freebsd4.9 successfully.
The methods are as follows:
A:
modify the script files ---ath/mathematica/Mathematice/MathKernel/mcc,
1.replace #!/bin/sh with #!/compat/linux/bin/sh, as mr. Brooks said
2. Change Linux) into FreeBSD) to recognize operation system.
3.In the two files math and MathKernel, replace /proc/cpuinfo with ${TopDirectory}.
OK.
B:
1.
Linux)->FreeBSD)
2.
remove exec form 'exec test -L ...'
3.
cd /usr/lib
cp libgmp.so.3 libgmp0.so.3
rm libgmp.so libgmp.so.3
ln libgmp0.so.3 libgmp.so
ln -s /usr/local/Wolfram/5.0/.../Libraries/libgmp.so.3
ln -s /usr/local/Wolfram/5.0/.../Libraries/libguide.so
ln -s /usr/local/Wolfram/5.0/.../Libraries/libmkl.so
4.
In the two files math and MathKernel, replace /proc/cpuinfo with
${TopDirectory}.
OK.
Good lucky to everyone.
Xian-Yin Wang
03/20/2004
--6c2NcOVqGQ03X4Wi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Jan 27, 2004 at 10:48:47PM -0800, jre9 at humboldt.edu wrote:
> 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:
>=20
> 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)
FYI, the best way to convert scripts associated with linux binaries is
often to replace the #!/bin/sh in them with #!/compat/linux/bin/sh.
This causes them to run with the right paths so they find things under
/compat/linux.
-- Brooks
--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
--6c2NcOVqGQ03X4Wi
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFAF/FAXY6L6fI4GtQRAlwLAJ4nUgO39YTsoMqACcyfLiGoVORTXwCfZ9se
cU+lGRyICwiK8ZEsm+hhBgw=
=nUJg
-----END PGP SIGNATURE-----
--6c2NcOVqGQ03X4Wi--
---------------------------------
Do You Yahoo!?
完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间
More information about the freebsd-doc
mailing list