由于我的互联网连接有问题,所以我不能总是运行命令
终端中的apt-get install xdotool,所以我想手动从.zip或.deb格式的网站下载xdotool包,然后在每次需要的时候手动安装它。(我使用的是2016.2- and 64,每次重新启动它都会删除所有文件)。
我尝试从右边的https://github.com/jordansissel/xdotool下载xdotool,在绿色框"Clone or download“中有下载ZIP的选项。之后,我提取主文件夹中的所有文件,然后在终端中打开它。
在自述文件中有如下说明:
有关最新文档 http://www.semicomplete.com/projects/xdotool/或下面列出的主页,请参阅该网站。编译:让安装:让install删除:使卸载您可能必须设置‘前缀’到您想要安装的位置。默认前缀为/usr/local,用于打包程序,还支持对分阶段安装的DESTDIR。
我输入make,然后输入make install,它总是输出这个错误:
root@kali:~/xdotool-master# make
cc -pipe -O2 -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -Wno-missing-field-initializers -g -std=c99 -I/usr/X11R6/include -I/usr/local/include -fPIC -c xdo.c
xdo.c:29:34: fatal error: X11/extensions/XTest.h: No such file or directory
#include <X11/extensions/XTest.h>
^
compilation terminated.
Makefile:124: recipe for target 'xdo.o' failed
make: *** [xdo.o] Error 1
root@kali:~/xdotool-master# make install
install -d /usr/local
cc -pipe -O2 -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -Wno-missing-field-initializers -g -std=c99 -I/usr/X11R6/include -I/usr/local/include -fPIC -c xdo.c
xdo.c:29:34: fatal error: X11/extensions/XTest.h: No such file or directory
#include <X11/extensions/XTest.h>
^
compilation terminated.
Makefile:124: recipe for target 'xdo.o' failed
make: *** [xdo.o] Error 1
root@kali:~/xdotool-master# 我做错什么了?
您能建议我安装xdotool的其他方法(但没有Internet连接)吗?
发布于 2017-03-29 19:49:38
您所得到的错误表明您错过了XTest.h文件。
查找提供给它的包(关于debian派生程序):
dpkg -S Xtest.h包应该是libXtst-dev,如果命令没有返回任何内容,您可能需要添加一些存储库
https://unix.stackexchange.com/questions/354634
复制相似问题