From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 16 03:21:56 2005 Return-Path: X-Original-To: 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 E1F6716A41F for ; Fri, 16 Dec 2005 03:21:55 +0000 (GMT) (envelope-from anthony.maher@uts.edu.au) Received: from zim.itd.uts.edu.au (zim.itd.uts.edu.au [138.25.22.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B77943D46 for ; Fri, 16 Dec 2005 03:21:55 +0000 (GMT) (envelope-from anthony.maher@uts.edu.au) Received: by zim.itd.uts.edu.au (Postfix, from userid 900) id 41225C3361; Fri, 16 Dec 2005 14:21:54 +1100 (EST) Received: from vimes (vimes.itd.uts.edu.au [138.25.243.34])by zim.itd.uts.edu.au (Postfix/Ingress) with ESMTP id D53C5C3378; Fri, 16 Dec 2005 14:18:00 +1100 (EST) Received: from [138.25.81.152] by postoffice.uts.edu.au(Sun Java System Messaging Server 6.1 HotFix 0.09 (built Dec 14 2004))with ESMTPS id <0IRK00JPVMHXMU60@postoffice.uts.edu.au>; Fri,16 Dec 2005 14:17:58 +1100 (EST) Date: Fri, 16 Dec 2005 14:17:57 +1100 From: Tony Maher In-reply-to: <17314.11820.983364.232729@bhuda.mired.org> To: Mike Meyer Message-id: <43A231E5.8000606@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: <43A2265B.5070706@uts.edu.au><17314.11820.983364.232729@bhuda.mired.org> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051109 X-Virus-Scanned: amavisd-new at uts.edu.au Cc: hackers@freebsd.org Subject: Re: mathematica/mathlink/python/linux 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: Fri, 16 Dec 2005 03:21:56 -0000 Hello Mike Mike Meyer wrote: > In <43A2265B.5070706@uts.edu.au>, Tony Maher typed: > >>I have installed Mathematica (v5.2) on FreeBSD 5-stable. All works >>fine. > > Is this a Linux binary, or a FreeBSD one? Linux. I do not believe there is a FreeBSD one. >>Then import fails with segmentation violation. > > > Expected. There's evidence that this can be made to work - see the > www/linuxpluginwrapper port. However, there's no guarantee that it > will, and the amount of work is unknown. > ... Thanks for that I will look into that port. I have had some success since I first sent the email. I have compiled linking to the static linux libm and libc libraries. (Could not work out how to do that in setup.py so just ran on command line). Importing mathlink now gets further and truss shows stat("/tmp/MathLink",0xbfbfd670) = 0 (0x0) open("/tmp/MathLink",0x4,011016110000) = 4 (0x4) fstat(4,0xbfbfd670) = 0 (0x0) fcntl(4,F_SETFD,0x1) = 0 (0x0) fstatfs(0x4,0xbfbfd490) = 0 (0x0) break(0x821a000) = 0 (0x0) close(4) = 0 (0x0) gettimeofday({1134702603 203316},0x0) = 0 (0x0) gettimeofday({1134702603 205100},0x0) = 0 (0x0) open("/tmp/MathLink/pgcfgei",0x42,00) ERR#2 'No such file or directory' Fatal Python error: Error initializing mathlink extension module write(2,0xbfbfd270,65) = 65 (0x41) sigprocmask(0x3,0xbfbfd978,0x0) = 0 (0x0) sigprocmask(0x3,0x0,0x811e11c) = 0 (0x0) getpid() = 1501 (0x5dd) kill(0x5dd,0x6) = 0 (0x0) SIGNAL 6 (SIGABRT) SIGNAL 6 (SIGABRT) Process stopped because of: 16 process exit, rval = 6 Abort This could be related to fact that Mathematica does not support Python 2.4 and MathLink so I'll try installing python 2.3. thanks -- tonym -- UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects.