急急急

系统字体配置、中文显示和输入法问题
回复
linjie06152
帖子: 3
注册时间: 2020-06-30 16:11

急急急

#1

帖子 linjie06152 » 2020-06-30 17:25

我在安装pgplot的时候,为什么我的png的格式可以输出,但是我的xwindow输出出现问题???

@j-X555LJ:~/pgplot_build$ ./pgdemo1
Graphics device/type (? to see list, default /xwindow):
PGPLOT /xw: Couldn't find program "pgxwin_server" in the directory named
PGPLOT /xw: in your PGPLOT_DIR environment variable, or in any directory
PGPLOT /xw: listed in your PATH environment variable.
头像
astolia
论坛版主
帖子: 6444
注册时间: 2008-09-18 13:11

Re: 急急急

#2

帖子 astolia » 2020-06-30 20:35

看不懂英文?它需要运行pgxwin_server,但找不到这个程序在哪里。说明你安装有问题。
如果你找得到pgxwin_server的位置,要么将PGPLOT_DIR环境变量设置成pgxwin_server所在的目录,要么把所在目录加到PATH环境变量里
linjie06152
帖子: 3
注册时间: 2020-06-30 16:11

Re: 急急急

#3

帖子 linjie06152 » 2020-07-01 9:38

谢谢诶回复。关键我的这个pgxwin_server就是在这个目录下,他怎么会找不到呢
头像
astolia
论坛版主
帖子: 6444
注册时间: 2008-09-18 13:11

Re: 急急急

#4

帖子 astolia » 2020-07-01 12:26

你都知道用./pgdemo1而不是pgdemo1来运行程序了,这还想不通?
很明显你那个pgdemo1想运行的是不带路径的pgxwin_server,系统只会在PATH环境变量中指定的路径中查找,不会去管当前目录
你不想改PATH环境变量又不想把pgxwin_server弄到PATH环境变量中的目录去,就设置PGPLOT_DIR

话说回来,源里有pgxwin_server存在,直接sudo apt install pgplot5就行,安装到/usr/bin下面,就没有这么多事
回复