关于x11:更改终端类型时如何更改gnuplot搜索的默认路径?

How to change the default path gnuplot searches when changing terminal type?

我是HPC系统的用户。 我现在想在我的目录/home/username下安装gnuplot的新版本。 我已成功安装,但是现在默认终端类型为qt。 我现在想将其更改为x11。 命令set terminal x11不起作用,错误消息是:

Expected X11 driver:
/home/app/gnuplot-5.0.6/libexec/gnuplot/5.0/gnuplot_x11 Exec failed: No
such file or directory See 'help x11' for more details

这很奇怪,因为我将gnuplot安装在

/home/username/app/gnuplot-5.0.6/

并且在gnuplot_x11

/home/username/app/gnuplot-5.0.6/libexec/gnuplot/5.0/gnuplot_x11

有没有办法告诉gnuplot它在错误的路径中搜索? 有没有一种方法可以将x11终端设置为默认终端?

非常感谢你!

更新:

我可以设置--with-qt=no,现在默认设置为wxt。 现在我可以使用set terminal x11

1
2
3
gnuplot> set terminal x11
Terminal type set to 'x11'
Options are ' nopersist enhanced'

我不太明白为什么。


您可以通过设置GNUPLOT_DRIVER_DIR环境变量来更改gnuplot在其中查找gnuplot_x11驱动程序的目录。 从help x11

The gnuplot outboard driver, gnuplot_x11, is searched in a default
place chosen when the program is compiled. You can override that by
defining the environment variable GNUPLOT_DRIVER_DIR to point to a
different location.