netbeans 无法找到/安装libXtst.so.6?

tcbh2hod  于 2022-11-10  发布在  其他
关注(0)|答案(5)|浏览(179)

我正在运行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文件,而且我似乎在任何地方都找不到它可供下载。是否有其他人遇到过这个问题,或者知道解决办法?

dm7nw8vv

dm7nw8vv1#

**EDIT:**正如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

希望这对你有帮助。

rkttyhzu

rkttyhzu2#

这对我在Luna初级操作系统中起作用

sudo apt-get install libxtst6:i386
8wigbo56

8wigbo563#

您的问题来自JDK/JRE的32/64位版本...将搜索您的共享库以查找32位版本。
您的默认JDK是32位版本。请尝试安装一个默认为64位的JDK,然后重新启动您的.sh文件。

m528fe3b

m528fe3b4#

在Ubuntu 14.04上有这个问题,在我的情况下,我也有libXtst.所以缺失:

Could not open library 'libXtst.so': libXtst.so: cannot open shared object 
file: No such file or directory

确保您的符号链接指向正确的文件cd /usr/lib/x86_64-linux-gnu,并使用以下命令列出libXtst:

ll |grep libXtst                                                                                                                                                           
 lrwxrwxrwx   1 root root        16 Oct  7  2016 libXtst.so.6 -> libXtst.so.6.1.0
 -rw-r--r--   1 root root     22880 Aug 16  2013 libXtst.so.6.1.0

然后使用以下命令创建适当的符号链接:

sudo ln -s libXtst.so.6 libXtst.so

再次列出:

ll | grep libXtst
lrwxrwxrwx   1 root root        12 Sep 20 10:23 libXtst -> libXtst.so.6
lrwxrwxrwx   1 root root        12 Sep 20 10:23 libXtst.so -> libXtst.so.6
lrwxrwxrwx   1 root root        16 Oct  7  2016 libXtst.so.6 -> libXtst.so.6.1.0
-rw-r--r--   1 root root     22880 Aug 16  2013 libXtst.so.6.1.0

都准备好了!

fumotvh3

fumotvh35#

我在使用CentOS 8时遇到了这个问题,上面的所有软件包都没有解决我的问题。当我查看存储这些文件的两个文件夹(64位/usr/lib 64/ vs 32位/usr/lib/)时,我发现64位文件夹没有libXt(但我使用的是64位操作系统)。所以我运行了:
yum安装-y libXt.x86_64
这就解决了我的问题。libXt.so.6现在就在那个目录中。

相关问题