Tro*_*ach 64 java linux ubuntu command-line netbeans
我正在运行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
Run Code Online (Sandbox Code Playgroud)
我没有任何目录中的libXtst.so.6文件,我似乎无法在任何地方找到它下载.有没有其他人遇到这个问题,或知道一个解决方案?
Gau*_*lio 135
编辑:正如Stephen Niedzielski在评论中提到的那样,问题似乎来自于JRE的32位,事实上,它正在寻找32位版本的libXtst6.要安装所需的库版本:
$ sudo apt-get install libxtst6:i386
Run Code Online (Sandbox Code Playgroud)
类型:
$ sudo apt-get update
$ sudo apt-get install libxtst6
Run Code Online (Sandbox Code Playgroud)
如果这不正常,请键入:
$ sudo updatedb
$ locate libXtst
Run Code Online (Sandbox Code Playgroud)
它应该返回类似的东西:
/usr/lib/x86_64-linux-gnu/libXtst.so.6 # Mine is OK
/usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
Run Code Online (Sandbox Code Playgroud)
如果您没有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
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助.
| 归档时间: |
|
| 查看次数: |
168761 次 |
| 最近记录: |