[Maxima] Proposal for location of fasls
raymond.toy at ericsson.com
Wed Jan 21 13:34:25 CST 2009
Robert Dodier wrote:
> On Wed, Jan 21, 2009 at 11:13 AM, Raymond Toy <raymond.toy at ericsson.com> wrote:
>> For the second item about installation directories, I guess the user
>> (superuser) could set maxima_userdir to be the appropriate place.
>> Or maybe we want a new variable, *maxima-objdir* (maxima_objdir) to
>> specify where fasls should go?
> I can see that another special variable could be useful here,
> although I'm not sure we want to make this situation even more complicated ...
How about this (after just a minute of thinking)? First, I do not know
how to distinguish a local install versus a system install (as wanted by
Oliver). However, when I want the system installation, I always run
maxima. For a "local" install, I run maxima-local. If that's good
enough to distinguish between a local and system install, then the
following might be an option.
New environment variable MAXIMA_OBJDIR. In maxima, this is unset. In
maxima-local this is set to maxima userdir.
On startup, maxima looks at these and sets *maxima-objdir*
appropriately, and the function maxima-objdir-path returns the
appropriate string (Lisp pathname?) for defsystem to use for storing fasls.
I haven't tried to implement this so I don't know if this will work or not.
More information about the Maxima