[23655] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: Alex T Prengel: strange path-related launch problem with gathrun/attachandrun

daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Mon Aug 18 19:42:12 2003

Date: Mon, 18 Aug 2003 19:42:10 -0400 (EDT)
Message-Id: <200308182342.h7INgASv013433@brad-majors.mit.edu>
From: Garry Zacheiss <zacheiss@MIT.EDU>
To: Alex T Prengel <alexp@MIT.EDU>
CC: bugs@MIT.EDU, alexp@MIT.EDU, csnowden@MIT.EDU, jamous@MIT.EDU
In-reply-to: "[23651] in Athena Bugs"

This is a bug in your installation of Mathematica, not in
gathrun/attachandrun.  attachandrun doesn't do anything to your PATH,
never has, and isn't supposed to; it's responsible for attaching a
locker and exec'ing a binary out of it; gathrun is just a utility shell
script that calls attachandrun and gdialog.

The problem is this little snippit of code from
/mit/math_v4.2/arch/i386_linux24/bin/mathematica:

[snip]
topdir=/afs/athena/software/math_v4.2/distrib
sysid=Linux-dyn

PATH=$topdir/Executables/$sysid:$PATH
export PATH
[snip]

[zacheiss@brad-majors] ~$ ls -l /afs/athena/software/math_v4.2/distrib/Executables/Linux-dyn
/afs/athena/software/math_v4.2/distrib/Executables/Linux-dyn: No such file or directory
[zacheiss@brad-majors] ~$ ls -l /afs/athena/software/math_v4.2/distrib/Executables/Linux    
total 20
-rwxr-xr-x   1 20353    mit         1568 Apr 28 19:48 MathKernel
lrwxr-xr-x   1 20353    mit           11 Nov 14  2002 Mathematica -> mathematica
lrwxr-xr-x   1 20353    mit           10 Nov 14  2002 math -> MathKernel
-rwxr-xr-x   1 20353    mit         1761 Apr 28 19:48 mathematica
-rwxr-xr-x   1 20353    mit          440 Nov 14  2002 mcc
-rwxr-xr-x   1 20353    mit         1001 Nov 14  2002 orig.MathKernel
-rwxr-xr-x   1 20353    mit         1179 Nov 14  2002 orig.mathematica

so the mathematica script is trying to put the directory it needs in its
path, but failing because it doesn't exit.  Apparently the
Linux/Linux-dyn difference is important, because there are two different
binaries in:

/afs/athena/software/math_v4.2/distrib/SystemFiles/FrontEnd/Binaries{Linux,Linux-dyn}

I'd recommend just making a Linux-dyn -> Linux symlink in
/afs/athena/software/math_v4.2/distrib/Executables, which should allow
the existing script to continue working as is.  You may also want to
make one in /afs/athena/software/math_v4.2/distrib/SystemFiles/Libraries
which contains only a "Linux" directory; the "mathematica" front end
script tries to put:

/afs/athena/software/math_v4.2/distrib/SystemFiles/Libraries/Linux-dyn 

in $LD_LIBRARY_PATH.

Garry

home help back first fref pref prev next nref lref last post