我将我的操作系统更新到mac操作系统,然后用brew upgrade
更新lua和其他软件包。现在我不能在lua中使用gnuplot,我收到这个错误:
Can not find any of the default terminals for mac. You can manually set terminal by gnuplot.setterm("terminal-name")
注意:我使用iTerm2作为终端,如果这有任何帮助。
问题实际上是gnuplot本身,而不是lua或torch。我刚刚用x11重新安装了它,它工作了:
brew uninstall gnuplot; brew install gnuplot --with-x11