Bug in xmaxima for Mac OS X



On Fri, 2011-10-07 at 10:28 +0200, Javier Arantegui wrote:
> I'm not sure if here is the right place to report this small bug I
> found trying to run the version of xmaxima that can be found in the
> binary package of Maxima for Mac OS X available at Sourceforge. If it
> isn't, please let me know where should I report it.

Hi,
thanks for reporting the problem. This is the right place to report it.

> To run xmaxima I went to the right directory. In my case is:
> /Applications/Maxima/Maxima.app/Contents/Resources/maxima/bin
> Then I run in a Terminal:
> ./xmaxima
> I got a window with the following error message:
> Maxima data directory not found in
> '/Users/drasko/Desktop/Maxima.app/Contents/Resources/maxima/share/'

It looks like Xmaxima was installed in a users' home directory and after
it was installed, the executable was moved to /Applications.

Xmaxima is a tcl script with some paths hard-coded at installation time.
Unfortunately, I do not work with Mac systems so I cannot try to
reproduce the conditions that lead to the bug. I don't know who has
created the Mac Os version available in Sourceforge. It they installed
Xmaxima as a Starkit archive, it will be harder to solve the problem. On
the other hand, if
  /Applications/Maxima/Maxima.app/Contents/Resources/maxima/bin/xmaxima
in your system is just a Tcl script, it can be edited with a text editor
to fix the wrong values for the directories (they have been placed
inside an array called autoconf).

> After validating the error, it appears again in different way:
> Documentation not found in
> '/Users/drasko/Desktop/Maxima.app/Contents/Resources/maxima/share/maxima/5.25.1'
> One more error window, and the program closes. 

As I said, I cannot help with the Mac OS version of Maxima that is being
distributed in Sourceforge, but I can modify Xmaxima for future versions
in order to prevent if from exiting when the documentation is not found
(which is the current behavior). For the time being, you could help me a
lot by sending me (in private to villate at fe.up.pt) a copy of your file

  /Applications/Maxima/Maxima.app/Contents/Resources/maxima/bin/xmaxima

so I can take a look at it and try to fix it.

Cheers,
Jaime