找不到/安装 libXtst.so.6?

新手上路,请多包涵

我正在运行 Ubuntu 12.10,我正在尝试安装 Netbeans 7.1(或更高版本)我有 .sh 文件,但它不会安装,错误出现在这里:

 [2013-06-27 19:11:28.918]:      at org.netbeans.installer.Installer.main(Installer.java:81)
[2013-06-27 19:11:28.918]:     An error occured while initializing the NetBeans IDE installer UI.
[2013-06-27 19:11:28.918]:     Most probably the running JVM is not compatible with the current platform.
[2013-06-27 19:11:28.919]:     See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information.
[2013-06-27 19:11:28.919]:     /usr/local/java/jre1.7.0_25/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
[2013-06-27 19:11:28.919]:
[2013-06-27 19:11:28.919]:     Exception:
[2013-06-27 19:11:28.919]:       java.lang.UnsatisfiedLinkError:
[2013-06-27 19:11:28.919]:       /usr/local/java/jre1.7.0_25/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
[2013-06-27 19:11:28.919]:
[2013-06-27 19:11:28.919]:     You can get more details about the issue in the installer log file:
[2013-06-27 19:11:28.919]:      /root/.nbi/log/20130627191128.log

我在任何目录中都没有 libXtst.so.6 文件,而且我似乎无法在任何地方找到它可以下载。有没有其他人遇到过这个问题,或者知道解决方法?

原文由 Tropical_Peach 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 630
1 个回答

编辑: 正如 Stephen Niedzielski 在他的评论中提到的,问题似乎来自 JRE 的 32 位存在,事实上,它正在寻找 libXtst6 的 32 位版本。要安装所需版本的库:

 $ sudo apt-get install libxtst6:i386


类型:

 $ sudo apt-get update
$ sudo apt-get install libxtst6

如果这不正确,请键入:

 $ sudo updatedb
$ locate libXtst

它应该返回如下内容:

 /usr/lib/x86_64-linux-gnu/libXtst.so.6       # Mine is OK
/usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0

如果您没有 libXtst.so.6 但有 libXtst.so.6.X.X 创建一个符号链接:

 $ cd /usr/lib/x86_64-linux-gnu/
$ ln -s libXtst.so.6 libXtst.so.6.X.X

希望这可以帮助。

原文由 Gauthier Boaglio 发布,翻译遵循 CC BY-SA 3.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
logo
Stack Overflow 翻译
子站问答
访问
宣传栏