1

尝试使用 ubuntu os 在虚拟机上启动 xspec 时出现此错误消息。

我通过以下方式找到了它的位置

locate libXSPlot.so 
/home/studente/heasoft-6.28/Xspec/BLD/x86_64-pc-linux-gnu-libc2.27/lib/libXSPlot.so
/home/studente/heasoft-6.28/Xspec/src/XSPlot/libXSPlot.so
/home/studente/heasoft-6.28/Xspec/x86_64-pc-linux-gnu-libc2.27/lib/libXSPlot.so
/home/studente/heasoft-6.28/x86_64-pc-linux-gnu-libc2.27/lib/libXSPlot.so

我努力了

sudo ln -s /home/studente/heasoft-6.28/Xspec/BLD/x86_64-pc-linux-gnu-libc2.27/lib/libXSPlot.so

并得到

ln: failed to create symbolic link './libXSPlot.so': File exists

另一次尝试是

sudo apt install apt-file libXSPlot.so

这是我得到的

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libXSPlot.so
E: Couldn't find any package by glob 'libXSPlot.so'
E: Couldn't find any package by regex 'libXSPlot.so'

请帮我链接这些库

4

1 回答 1

0

我在 Ubuntu 上从源代码构建的 heasoft-6.29 中遇到了类似的问题。

就我而言,解决方案是 $LD_LIBRAY_PATH 被另一个软件重置。为了解决这个问题,我不得不在软件设置中注释掉设置这个环境变量的那行,现在 XSPEC 可以找到 XSPlot 库(正如你所注意到的,它是 XSPEC 原始安装的一部分)

于 2022-02-18T15:57:31.273 回答