MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Help: running external program on Mac OS X

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64819] Re: Help: running external program on Mac OS X
  • From: "Kezhao Zhang" <kezhao.zhang at gmail.com>
  • Date: Sat, 4 Mar 2006 02:35:40 -0500 (EST)
  • References: <du6noo$5o1$1@smc.vnet.net><du831a$soj$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Rob,

Your suggestion of the ~/.MacOSX/environment.plist works very well.
Thank you.

Using the full executable path didn't work because some of the
executables require some dynamic library files whose path needs to be
set as an environment variable.

Thank you and all others who responsed.

Kezhao

ragfield wrote:
> There are a couple of solutions here.
>
> 1.  Use the full executable path rather than rely on $PATH
>
> 2.  Set up your path environment variable so it is picked up by
> non-shell processes.  When you run the Mathematica kernel from within
> the Mathematica notebook front end, the kernel inherits its environment
> from the front end.  The front end (when you launch it from the Dock or
> Finder) inherits its environment from loginwindow process, which is not
> a shell and does not read shell resource files on startup.  The way to
> get all processes (both shell & non-shell) to inherit an environment
> variable is to set up the variable in the ~/.MacOSX/environment.plist
> file, as described here
> <http://developer.apple.com/qa/qa2001/qa1067.html>.
> 
> -Rob


  • Prev by Date: Re: Unprotecting "I"
  • Next by Date: Shift+Arrow selection in the FrontEnd
  • Previous by thread: Re: Help: running external program on Mac OS X
  • Next by thread: Possible Bug in ArcTan ?