mathematica/mathlink/python/linux

Tony Maher anthony.maher at uts.edu.au
Thu Dec 15 19:21:56 PST 2005


Hello Mike

Mike Meyer wrote:
> In <43A2265B.5070706 at uts.edu.au>, Tony Maher <anthony.maher at uts.edu.au> 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.


More information about the freebsd-hackers mailing list