From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 13 10:13:35 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 2D0FB16A40F for ; Wed, 13 Sep 2006 10:13:35 +0000 (UTC) (envelope-from anthony.maher@uts.edu.au) Received: from dib.itd.uts.edu.au (dib.itd.uts.edu.au [138.25.22.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F7F143D46 for ; Wed, 13 Sep 2006 10:13:34 +0000 (GMT) (envelope-from anthony.maher@uts.edu.au) Received: by dib.itd.uts.edu.au (Postfix, from userid 1011) id 72148DF6EE; Wed, 13 Sep 2006 20:09:26 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by dib.itd.uts.edu.au (Postfix/Intermediary) with ESMTP id 608D4DF6F3; Wed, 13 Sep 2006 20:09:26 +1000 (EST) Received: from vimes (vimes.itd.uts.edu.au [138.25.243.34]) by dib.itd.uts.edu.au (Postfix/Ingress) with ESMTP id 4C0B8DF6EE; Wed, 13 Sep 2006 20:09:26 +1000 (EST) Received: from [192.168.0.10] (c58-107-99-98.thorn1.nsw.optusnet.com.au [58.107.99.98]) by postoffice.uts.edu.au (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTPSA id <0J5J0073T0EK61B0@postoffice.uts.edu.au>; Wed, 13 Sep 2006 20:13:33 +1000 (EST) Date: Wed, 13 Sep 2006 20:13:32 +1000 From: Tony Maher In-reply-to: <20060913063940.GA91061@xor.obsecurity.org> To: Kris Kennaway Message-id: <4507D9CC.4060704@uts.edu.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <4506F7D7.9070003@ez.pereslavl.ru> <450737BF.7050709@uts.edu.au> <20060913063940.GA91061@xor.obsecurity.org> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20060511 Cc: freebsd-hackers@freebsd.org, Alexey Mikhailov Subject: Re: Problem installing Mathematica on FreeBSD 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2006 10:13:35 -0000 Kris Kennaway wrote: > On Wed, Sep 13, 2006 at 08:42:07AM +1000, Tony Maher wrote: > > >>I have test installed Mathematica 5.2 and it appears to work fine >>(I do not actually use it except for simple tests) >> >>ldd Mathematica >>Mathematica: >> libm.so.6 => /lib/obsolete/linuxthreads/libm.so.6 (0x384ed000) >> libpthread.so.0 => /lib/obsolete/linuxthreads/libpthread.so.0 (0x38514000) >> librt.so.1 => /lib/obsolete/linuxthreads/librt.so.1 (0x38567000) >> libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x3857a000) >> libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x385cf000) >> libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x385de000) >> libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x385f5000) >> libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x385ff000) >> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x38619000) >> libc.so.6 => /lib/obsolete/linuxthreads/libc.so.6 (0x386ec000) >> /lib/ld-linux.so.2 (0x384ce000) >> libdl.so.2 => /lib/libdl.so.2 (0x3880b000) > > > Something is still wrong, looks like you also need to add the > linux-xorg-libraries (unless your /usr/X11R6 is actually linux > somehow). Yes you do need linux-xorg-libraries. file /usr/X11R6/lib/libX11.so.6 /usr/X11R6/lib/libX11.so.6: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), not stripped file /usr/compat/linux/usr/X11R6/lib/libX11.so.6 /usr/compat/linux/usr/X11R6/lib/libX11.so.6: symbolic link to `libX11.so.6.2' file /usr/compat/linux/usr/X11R6/lib/libX11.so.6.2 /usr/compat/linux/usr/X11R6/lib/libX11.so.6.2: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped pkg_which /usr/compat/linux/usr/X11R6/lib/libX11.so.6.2 linux_devtools-8.0_5 linux-xorg-libs-6.8.2_5 My notes from the install Dec 15 2005 -------------------------------------------------------------------------------------- cp files to hard disk as per handbook. Set fallback sysctl run install edit scripts in /usr/local/bin to use PATH="/compat/linux/usr/bin:/compat/linux/bin:/usr/bin:/bin:${PATH}" edit /usr/local/Wolfram/Mathematica/5.2/SystemFiles/FrontEnd/SystemResources/X/XMathematica *fontList: -*-helvetica-medium-r-*-*-18-100-*-*-*-*-*-* *screenXResolution: 147 *screenYResolution: 147 Useful to avoid warning on first start up edit /usr/local/bin/math to use linux proc and mount it. /usr/local/bin/math: cpuvendor=`cat /compat/linux/proc/cpuinfo | grep 'vendor_id' | awk '{print $3}' | uniq` /usr/local/bin/math: cpuid=`cat /compat/linux/proc/cpuinfo | grep 'cpu family' | awk '{print $4}' | uniq` /usr/local/bin/math: OMP_NUM_THREADS=`cat /compat/linux/proc/cpuinfo | grep processor | wc -l | tr -d ' '`; --------------------------------------------------------------------------------------- -- tonym