小编Tro*_*ach的帖子

找不到/安装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]: …
Run Code Online (Sandbox Code Playgroud)

java linux ubuntu command-line netbeans

64
推荐指数
3
解决办法
17万
查看次数

在自定义手册页中包含来自外部文件或shell命令的变量?

我正在编写一些自定义man页面,我希望包含可能经常更改的内容,例如man页面编写的日期.

例如,一个是在git 回购中,我想更新man页面的日期,无需手动更改.

是否有可能#include*roff文件中调用shell变量,或者可能是markdown文件,然后使用pandoc" 编译 " man页面?

我知道这是一个奇怪的问题,但我没有遇到过类似的问题.

请注意,这与简单地包含$MANPATH要调用的手册页不同man.

IE,我想使用类似的东西:

.TH foo 10 "$(git log -n1 | grep Date | tail -c 31)" "$(git branch | grep "*")"

而不是每次都必须手动更改日期和分支/头名称.无论是降价还是给予pandoc或其他内容,还是roff文件本身,我都可以.

linux shell manpage include

7
推荐指数
1
解决办法
130
查看次数

分数的2的补码表示?

我有点迷失了.我需要使用两个小数位 0.(a-1)(a-2)

这样,现在我可以使用.00 .01 .10.11 但我需要负数(2的补数)也,所以会.10-.5?还是会-.25?同样的.11,那将是-.75?还是会-.5?我很确定在两种情况下它都会成为前者,但我并不完全正面.

math binary representation

3
推荐指数
1
解决办法
1万
查看次数

在MATLAB中实现显式Euler方法(用于ODE)

我到处搜索,我找不到任何东西.

首先,我只想说我从未使用过Mat Lab,所以我不知道我在做什么.

我尝试过一些东西,但都没有.显然y(0)= 2试图创建一个0单位的列表,其值为2?

无论如何,有人可以帮助我吗?我需要在Mat Lab中编写一个灵活的Euler方法方程来解决这样的几个方程式.

1)y'= 5-3sqrt(y); Y(0)= 2

h = .1,.05,.025,.01 && t = .5,1,1.5,2,2.5,3

我不知道我在做什么.

math matlab differential-equations

-1
推荐指数
1
解决办法
2723
查看次数