我正在运行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文件,而且我似乎在任何地方都找不到它可供下载。是否有其他人遇到过这个问题,或者知道解决办法?
5条答案
按热度按时间dm7nw8vv1#
**EDIT:**正如Stephen Niedzielski在他的评论中提到的,问题似乎来自JRE的32位版本,这实际上是在寻找
libXtst6
的32位版本。要安装所需的库版本:型号:
如果不同意,请键入:
它应该返回如下内容:
如果您没有
libXtst.so.6
但有libXtst.so.6.X.X
,请建立符号链接:希望这对你有帮助。
rkttyhzu2#
这对我在Luna初级操作系统中起作用
8wigbo563#
您的问题来自JDK/JRE的32/64位版本...将搜索您的共享库以查找32位版本。
您的默认JDK是32位版本。请尝试安装一个默认为64位的JDK,然后重新启动您的.sh文件。
m528fe3b4#
在Ubuntu 14.04上有这个问题,在我的情况下,我也有libXtst.所以缺失:
确保您的符号链接指向正确的文件cd /usr/lib/x86_64-linux-gnu,并使用以下命令列出libXtst:
然后使用以下命令创建适当的符号链接:
再次列出:
都准备好了!
fumotvh35#
我在使用CentOS 8时遇到了这个问题,上面的所有软件包都没有解决我的问题。当我查看存储这些文件的两个文件夹(64位/usr/lib 64/ vs 32位/usr/lib/)时,我发现64位文件夹没有libXt(但我使用的是64位操作系统)。所以我运行了:
yum安装-y libXt.x86_64
这就解决了我的问题。libXt.so.6现在就在那个目录中。