我在 Linux 中成功安装了 pgplot 5.2,但是当尝试运行任何像 pgdemo 这样的函数时,它给出了错误
./pgdemo/:加载共享库libpgplot.so时出错:无法打开共享对象文件:没有这样的文件或目录。
但是我检查了这个库在目录中
问题是什么?
最佳答案
您没有说明如何安装该库,但请务必运行 ldconfig然后设置链接。看这个other SO Answer了解详情。
But I checked that this library is in the directory
您可能想明确这一点。哪个目录?例如,大多数系统都会在 /usr/lib
中查找。
关于linux - pgplot 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15346682/