找不到/安装libXtst.so.6? [英] Can't find/install libXtst.so.6?

查看:1672
本文介绍了找不到/安装libXtst.so.6?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm running Ubuntu 12.10 and I'm trying to install Netbeans 7.1(or later) I have the .sh file, but it won't install, the error appears here:

[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文件,我似乎找不到它随时随地下载。有没有人遇到这个问题,或者知道一个工作?

I don't have the libXtst.so.6 file in any directory, and I can't seem to find it anywhere to download. Has anyone else run into this problem, or know a work around?

推荐答案

类型:

$ 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.XX 创建符号链接:

If you do not have libXtst.so.6 but do have libXtst.so.6.X.X create a symbolic link:

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

希望这有助。

编辑:如这个问题似乎来自32位的JRE,事实上是寻找32位版本的 libXtst6 。要安装所需版本的库:

EDIT : As mentioned by Stephen Niedzielski in his comment, the issue seems to come from the 32-bit being of the JRE, which is de facto, looking for the 32-bit version of libXtst6. To install the required version of the library:

$ sudo apt-get install libxtst6:i386

这篇关于找不到/安装libXtst.so.6?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆