I updated my OS to mac OS, and then updated lua and other packages with a brew upgrade. Now I can't use gnuplot in lua, I receive this error:
Can not find any of the default terminals for mac. You can manually set terminal by gnuplot.setterm("terminal-name")
Note: I am using iTerm2 as terminal, if that's any help.
The issue was actually with gnuplot itself, not lua or torch.
I just reinstalled it with x11 and it worked:
brew uninstall gnuplot; brew install gnuplot --with-x11
Related
I really need help with the following problem. I am trying to figure out how to go about uninstalling Python 3.10.1 on my computer which is a Mac OS Big Sur laptop (Version 11.6.2). I would like to install Python 3.9 instead.
I go to the terminal on my computer and try to type the following command to uninstall Python 3.10:
sudo rm -rf /Library/Frameworks/Python.framework
I hit enter after this command and the following shows up on my terminal screen:
Password: Key icon
It is at this point that I am totally unsure of what to do.
I installed Octave on my macOS Sierra using Homebrew with the command
brew install octave
and everything installed fine.
When I run Octave, however, it prints version 4.2.1, but I do not get the GUI nor can I force the GUI with octave --force-gui. No error message or warning is generated, the app just starts in the command line.
How do I get Octave to run with a GUI?
Run brew uninstall octave to removed the octave executables. Use MacPort instead of homebrew. Run 'port selfupgrade' and then 'port install octave'. It installs octave in the opt/local/bin directory. Type octave and it runs with the GUI. Version 4.2.1 was installed and seems to work fine.
Try running the command octave --gui instead of octave --force-gui.
I searched online about how to install gdb on macOS Sierra 10.12.2 but failed on the methods I could find. Then I figure out the following way which is easy and works fine on my machine. hope it may help you too:)
download the most recent GDB from https://www.sourceware.org/gdb/download/
expand the gdb-7.12.1.tar.xz file: tar xopf gdb-7.12.1.tar.xz
cd gdb-7.12.1 in terminal to open the gdb folder
then follow the instructions in the README file in the gdb folder, or simply follow the following steps:
./configure, wait for the terminal
make and wait again (which can take some time)
sudo make install
Now gdb is installed at /usr/local/bin/
Note that you might want to try/use LLDB (lldb) instead. This is now the default (don't know about 10.12, but on 10.13 it is installed, when you install the Xcode utilities). It even comes with a nice curses GUI, but otherwise a shell very similar to GDB.
You can also use homebrew to get gdb in mac os:
install-gdb-macos-sierra
Surprised no one mentioned:
brew install gdb
How to install brew?
Recently I uninstalled and reinstalled Homebrew entirely on my macbook (OSX 10.9.5) because there was some problem with my Python. Then I reinstalled all the programs in Homebrew and everything worked fine except for Emacs. When I tried to link emacs
$ brew link emacs
Linking /Users/myname/homebrew/Cellar/emacs/24.3... 21 symlinks created
I expected it to create a shortcut in Applications and I open the Emacs GUI from there, but Emacs is not showing up there and I don't know how I can open the GUI. What did I do wrong and how can I link my Emacs?
Try running it from the command line to see what's wrong:
emacs --debug-init
The program is likely not able to find some elc files or something among those lines.
If all fails, try using the master branch (I update my emacs frequently, such as today).
brew install emacs --HEAD --use-git-head --cocoa --srgb --with-xml2 && brew linkapps
I've installed gnuplot on my Mac OS X 10.8 using MacPort, but as far as I understand, only AquaTerm terminal is available for me now (wxt is "unknown or ambiguous terminal type"). However, I need wxt terminal badly. Is it possible to install some patch with MacPort(or without it), so that to enable this terminal?
Uninstall your current version of Gnuplot and then install the +wxt variant of gnuplot.
port variants gnuplot to list available variants.
sudo port install gnuplot +wxwidgets to install this variant, but be careful it may conflict with wxwidgets_devel.