Discussion:
[Maxima-discuss] Problems with Mac OS X installer
Jorge Calvo
2016-01-27 21:37:18 UTC
Permalink
Greetings!

1. I have a new batch of students installing Maxima (5.36.1) this semester and all of the Mac users ran into a problem getting wxMaxima and Gnuplot to talk with one another. After much searching, we discovered that the main problem was the Preferences option that says “Use cairo to improve plot quality.” This is checked ON by default, but needs to be checked OFF; otherwise the wxdraw commands produce an error and a blank graphics box. It would be very useful if a note about this type of error was added to the “How to Install.rtf” file.

2. With the cairo option checked off, we have no problem using the wxdraw commands. However, we have not figured out how to get the plain draw commands to work. In my version, using the older gnuplot with the X11 terminal, I have to start X11 (aka Xquartz) before wxMaxima or the plot windows do not pop up like they should. We are unclear what the equivalent step is for the new gnuplot with the qt terminal; starting gnuplot does not seems to be enough. Any help would be appreciated.

3. Finally, I am running the older version of Gnuplot because the newer version that comes with the most recent Maxima (5.36.1) distribution for Mac OS X gives me the following error as soon as I run it:

/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 61: 2436 Illegal instruction: 4 GNUTERM="${GNUTERM}" GNUPLOT_HOME="${GNUPLOT_HOME}" PATH="${PATH}" DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" HOME="${HOME}" GNUHELP="${GNUHELP}" DYLD_FRAMEWORK_PATH="${DYLD_FRAMEWORK_PATH}" GNUPLOT_PS_DIR="${GNUPLOT_PS_DIR}" DISPLAY="${DISPLAY}" GNUPLOT_DRIVER_DIR="${GNUPLOT_DRIVER_DIR}" "${ROOT}/bin/gnuplot-5.0.0" "$@"

I had posted about this error earlier, and the only solution I found was to revert to an older version of Gnuplot. I am running Mac OS X 10.11.3 on an older (2010) MacBook Air. Again, any indication of how to fix this would be greatly appreciated.

Thanks in advance!

Jorge
--
Dr. Jorge Alberto Calvo
Associate Professor of Mathematics
Department of Mathematics
Ave Maria University

Phone: (239) 280-1608
Email: ***@avemaria.edu<mailto:***@avemaria.edu>
Web: http://sites.google.com/site/jorgealbertocalvo
Alexander Hansen
2016-01-27 22:22:56 UTC
Permalink
Post by Jorge Calvo
Greetings!
1. I have a new batch of students installing Maxima (5.36.1) this semester and all of the Mac users ran into a problem getting wxMaxima and Gnuplot to talk with one another. After much searching, we discovered that the main problem was the Preferences option that says “Use cairo to improve plot quality.” This is checked ON by default, but needs to be checked OFF; otherwise the wxdraw commands produce an error and a blank graphics box. It would be very useful if a note about this type of error was added to the “How to Install.rtf” file.
2. With the cairo option checked off, we have no problem using the wxdraw commands. However, we have not figured out how to get the plain draw commands to work. In my version, using the older gnuplot with the X11 terminal, I have to start X11 (aka Xquartz) before wxMaxima or the plot windows do not pop up like they should. We are unclear what the equivalent step is for the new gnuplot with the qt terminal; starting gnuplot does not seems to be enough. Any help would be appreciated.
I don’t know about the specifics of the gnuplot build you’re using, but are you setting GNUTERM? With maxima-5.37.3 and gnuplot-5.0.1 I’m able to get the qt terminal in my own build to work simply by invoking maxima via

$ GNUTERM=qt maxima
Post by Jorge Calvo
I had posted about this error earlier, and the only solution I found was to revert to an older version of Gnuplot. I am running Mac OS X 10.11.3 on an older (2010) MacBook Air. Again, any indication of how to fix this would be greatly appreciated.
Thanks in advance!
Jorge
--
Dr. Jorge Alberto Calvo
Associate Professor of Mathematics
Department of Mathematics
Ave Maria University
Phone: (239) 280-1608
Web: http://sites.google.com/site/jorgealbertocalvo
On 10.11 it’s now illegal for non-system scripts to use DYLD_LIBRARY_PATH unless you disable System Integrity Protection. You might try modifying line 61 of your /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot script to get rid of DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}”

I’m not completely sure whether that will work, since I use Fink’s maxima and gnuplot, but sometimes non-Mac developers will set DYLD_LIBRARY_PATH when it isn’t absolutely required. It looks like in this case that the goal was to inherit an existing DYLD_LIBRARY_PATH setting, so you might luck out and not need it.
--
Alexander Hansen, Ph.D.
Fink User Liaison
Jan Hendrik Mueller
2016-01-28 07:18:52 UTC
Permalink
Thanks for the hint for checking the cairo option to OFF! I can confirm that this has to be done to make wxplot options work

Gnuplot: Did you updated xquartz before installing gnuplot 5.0? That was important on my system (I also have 10.11)
Then I openend gnuplot 5.0 and „set terminal qt“
Via terminal I used
cd .maxima
open -a TextEdit maxima-init.mac
and edited
gnuplot_command:"/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot"$
set_plot_option([gnuplot_term, qt])$

If I use the plot-command I enter
[plot_format, gnuplot_pipes]
If I use the draw-command I set_draw_defaults(terminal=qt)$

That works on my system.
Jan

Von meinem DynaTAC 8000X gesendet
Post by Jorge Calvo
Greetings!
1. I have a new batch of students installing Maxima (5.36.1) this semester and all of the Mac users ran into a problem getting wxMaxima and Gnuplot to talk with one another. After much searching, we discovered that the main problem was the Preferences option that says “Use cairo to improve plot quality.” This is checked ON by default, but needs to be checked OFF; otherwise the wxdraw commands produce an error and a blank graphics box. It would be very useful if a note about this type of error was added to the “How to Install.rtf” file.
2. With the cairo option checked off, we have no problem using the wxdraw commands. However, we have not figured out how to get the plain draw commands to work. In my version, using the older gnuplot with the X11 terminal, I have to start X11 (aka Xquartz) before wxMaxima or the plot windows do not pop up like they should. We are unclear what the equivalent step is for the new gnuplot with the qt terminal; starting gnuplot does not seems to be enough. Any help would be appreciated.
I had posted about this error earlier, and the only solution I found was to revert to an older version of Gnuplot. I am running Mac OS X 10.11.3 on an older (2010) MacBook Air. Again, any indication of how to fix this would be greatly appreciated.
Thanks in advance!
Jorge
--
Dr. Jorge Alberto Calvo
Associate Professor of Mathematics
Department of Mathematics
Ave Maria University
Phone: (239) 280-1608
Web: http://sites.google.com/site/jorgealbertocalvo
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Maxima-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
Loading...