更改终端类型时如何更改默认路径gnuplot搜索?

时间:2017-06-02 15:38:44

标签: gnuplot x11

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

  

预期的X11驱动程序:   /home/app/gnuplot-5.0.6/libexec/gnuplot/5.0/gnuplot_x11执行失败:否   这样的文件或目录请参阅' help x11'了解更多详情

这很奇怪,因为我在

中安装了gnuplot
  

/家/的用户名 /app/gnuplot-5.0.6 /

并且

中有gnuplot_x11
  

/家/的用户名 /app/gnuplot-5.0.6/libexec/gnuplot/5.0/gnuplot_x11

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

非常感谢!

更新:

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

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

我不太明白为什么。

1 个答案:

答案 0 :(得分:1)

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

  

默认搜索gnuplot外接驱动程序gnuplot_x11   编译程序时选择的位置。你可以覆盖它   定义环境变量GNUPLOT_DRIVER_DIR指向a   不同的位置。