rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

gnuplot installer for Mac maxima failes #2856

Open rtoy opened 2 months ago

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-06 23:16:59 Created by chuckdcoleman on 2015-05-14 15:54:18 Original: https://sourceforge.net/p/maxima/bugs/2959


Here's the error upon running gunplot per the maxima install instructions:

/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot: line 61: 13698 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" "$@"

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-06 23:16:59 Created by chuckdcoleman on 2015-05-14 16:09:50 Original: https://sourceforge.net/p/maxima/bugs/2959/#cef9


The instructions are:

  1. Installing GNUPLOT

    • Drag 'Gnuplot.app' into your Applications folder. • To test Gnuplot: double-click on your copy located in Applications folder. A Terminal should pop up with the Gnuplot's prompt. Test gnuplot by entering the following commands.

    set term qt
    plot sin(x)
    splot sin(x*y)

    • Maxima needs to know where Gnuplot is located in order to use it for plotting. If you already have a 'maxima-init.mac', edit it, otherwise enter these commands into the Terminal:

    mkdir .maxima
    cd .maxima
    echo 'gnuplot_command:"/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot"$' >> maxima-init.mac
    echo 'set_plot_option([gnuplot_term, qt])$’ >> maxima-init.mac

The failure occurred when I attempted the second bullet. Gnuplot did not open.

The maxima version is the latest: 5.36.1.

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-06 23:17:03 Created by villate on 2015-05-14 16:30:13 Original: https://sourceforge.net/p/maxima/bugs/2959/#efcf


Okay. Those instructions are not the same I can see in https://sourceforge.net/p/maxima/code/ci/master/tree/macosx/Readme.txt, which is already 4 years old. That might mean that the more recent Mac installers made by Andrej Vodopivec include some new instructions which are not in the Maxima repository yet, so it is better to wait for him to read this thread and answer.

In the menatime, the only thing I can suggest is searching the Web for instructions on how to install Gnuplot in MacOX systems (independently of Maxima). Once Gnuplot is running, you can then follow the third and following bullets in the Maxima installer instructions.

I hope this helps you.

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-06 23:17:06 Created by andrejv on 2015-05-15 07:18:57 Original: https://sourceforge.net/p/maxima/bugs/2959/#e1d1


Which version os OS X do you have? The binaries are built on 10.10. It is possible that they do not work on earlier versions.

rtoy commented 2 months ago

Imported from SourceForge on 2024-07-06 23:17:10 Created by geerthermans on 2015-07-14 13:29:16 Original: https://sourceforge.net/p/maxima/bugs/2959/#e1d1/4983


I'm running 10.10.4. Also I have the exact same error when starting gnuplot.

I think I also found a typo in the "How to install.rtf"exec echo 'set_plot_option([gnuplot_term, qt])$ >> maxima-init.mac should be echo 'set_plot_option([gnuplot_term, qt])$' >> maxima-init.mac