xdotoolインストールの問題

xdotoolインストールの問題

インターネット接続に問題があり、常に
apt-get install xdotool端末でコマンドを実行できないのでダウンロードしたいと思います。xdoツールWebサイトで.zipまたは.deb形式で手動でパッケージ化し、必要に応じて手動でインストールします。 (私はUSB Live Kali Linux 2016.2-amd64を使用しており、再起動するたびにすべてのファイルが削除されます。)

私はxdotoolをダウンロードしようとしました。https://github.com/jordansisssel/xdotool緑色のボックス「複製またはダウンロード」の右側にZIPをダウンロードするオプションがあります。次に、メインフォルダ内のすべてのファイルを抽出し、端末で開きます。
READMEファイルには次の説明があります。

最新のドキュメントについては、ウェブサイトをご覧ください。
http://www.semicomplete.com/projects/xdotool/ または、下記のマンページを参照してください。

コンパイル: make
インストール: make install
削除: make uninstall

インストールする場所に「PREFIX」を設定する必要があります。デフォルトのプレフィックスは/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をインストールする別の方法を提案できますか(インターネット接続なし)?

ベストアンサー1

表示されるエラーは、XTest.h ファイルが見つからないことを示します。

どのパッケージがそれを提供するかを調べてください(Debian派生物から):

dpkg -S Xtest.h

パッケージは必要ですlibXtst-dev。コマンドが何も返さない場合は、いくつかのリポジトリを追加する必要があります。

おすすめ記事