Ich habe Octave 3.8.0 mit Homebrew installiert. Die offizielle FAQ von Octave besagt, dass ich die --force-gui
Option verwenden kann, um die Oktave mit der GUI zu starten.
Aber wenn ich den octave --force-gui
Befehl im Terminal verwende, passiert nichts anders. Das heißt, Octave wird immer noch in der Befehlszeilenschnittstelle gestartet.
Wie kann ich das beheben?
Ich hatte ein ähnliches Problem mit Octave 4.0.0, als ich es wie von Hadi vorgeschlagen installierte, erhielt ich diese Meldung:
The graphical user interface is disabled by default since it is still buggy on
OS X; use brew with the option --with-gui to enable it.
Octave was compiled with gnuplot; enable it via graphics_toolkit('gnuplot').
All graphics terminals can be used by setting the environment variable GNUTERM
in ~/.octaverc, and building gnuplot with the corresponding options.
setenv('GNUTERM','qt') # Requiers QT; install gnuplot --with-qt
setenv('GNUTERM','x11') # Requires XQuartz; install gnuplot --with-x11
setenv('GNUTERM','wxt') # Requires wxmac; install gnuplot --with-wxmac
setenv('GNUTERM','aqua') # Requires AquaTerm; install gnuplot --with-aquaterm
You may also set this variable from within Octave. For printing the cairo backend
is recommended, i.e., install gnuplot with --with-cairo, and use
print -dpdfcairo figure.pdf
When using the the qt or fltk toolkits then invisible figures do not work because
osmesa does currently not work with the Mac's OpenGL implementation. The usage of
gnuplot is recommened.
Was für mich funktioniert hat, war das Hinzufügen von --with-gui:
brew install octave --with-qt --with-fltk --with-gui
Oder Neuinstallation:
brew reinstall octave --with-qt --with-fltk --with-gui
Ich habe die Antwort gefunden und werde sie hier für alle anderen veröffentlichen, die sie brauchen.
Octave gui erfordert das qt
Paket (siehe die Antwort von bpabbot hier ). Um also die GUI zu verwenden, sollte Octave mit diesem Befehl installiert werden:
brew install octave --with-qt --with-fltk
Oder wenn Sie es bereits ohne installiert haben qt
, können Sie reinstall
es:
brew reinstall octave --with-qt --with-fltk
Wie es derzeit aussieht, hat die Formel für Version 3.8.0 von octave jedoch ein Problem und lässt sich nicht installieren --with-qt
. Es wurde ein Fehler gemeldet, der für Version 3.8.1 behoben wird. Weitere Einzelheiten können Sie hier einsehen .
Matthias Riegler
Hadi
brew install octave
.l - marc l