From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 19 11:00:13 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 2BAD716A4CE for ; Fri, 19 Mar 2004 11:00:13 -0800 (PST) Received: from web15207.mail.bjs.yahoo.com (web15207.mail.cnb.yahoo.com [202.43.216.137]) by mx1.FreeBSD.org (Postfix) with SMTP id 292ED43D2D for ; Fri, 19 Mar 2004 11:00:12 -0800 (PST) (envelope-from wxyrcl@yahoo.com.cn) Message-ID: <20040319190010.8403.qmail@web15207.mail.bjs.yahoo.com> Received: from [202.111.177.254] by web15207.mail.cnb.yahoo.com via HTTP; Sat, 20 Mar 2004 03:00:10 CST Date: Sat, 20 Mar 2004 03:00:10 +0800 (CST) From: =?gb2312?q?wxy?= To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 20 Mar 2004 05:02:44 -0800 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Install mathematica5 for linux on freebsd4.9 successfully X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: wxyrcl@yahoo.com.cn List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2004 19:00:13 -0000 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@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兆网络存储空间