简体   繁体   中英

Running Octave in macOS Terminal

I installed Octave (6.4.0) using Homebrew. When I type " octave " in the Terminal, it shows in the title of Terminal window that it is " octave-gui " but no GUI shows up. 在此处输入图像描述 It also opens an "octave-gui" app in dock, but when I clicked on it, nothing happens. Is it a bug or something else? 在此处输入图像描述

When I tried " octave-cli " and " octave-gui " separately, it works normally. May I ask if there is a way when I type " octave " in the terminal, it opens octave-cli as default?

You can set up an alias for octave , such that typing octave actually runs octave-cli . On macOS, this is done by editing the bashrc or bashprofile to include the line alias octave="octave-cli" .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM