安装 xnee 时出错

安装 xnee 时出错

我使用 root 权限执行了上述./configure操作make,但是却不能make install。输出:

Making install in libxnee
make[1]: Entering directory '/home/alex/xnee-3.19/libxnee'
Making install in src
make[2]: Entering directory '/home/alex/xnee-3.19/libxnee/src'
make[2]: Nothing to be done for 'install'.
make[2]: Leaving directory '/home/alex/xnee-3.19/libxnee/src'
Making install in test
make[2]: Entering directory '/home/alex/xnee-3.19/libxnee/test'
make[3]: Entering directory '/home/alex/xnee-3.19/libxnee/test'
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ../../libtool   --mode=install /usr/bin/install -c   libtestcb.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libtestcb.lai /usr/local/lib/libtestcb.la
libtool: install: /usr/bin/install -c .libs/libtestcb.a /usr/local/lib/libtestcb.a
libtool: install: chmod 644 /usr/local/lib/libtestcb.a
libtool: install: ranlib /usr/local/lib/libtestcb.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/alex/xnee-3.19/libxnee/test'
make[2]: Leaving directory '/home/alex/xnee-3.19/libxnee/test'
make[2]: Entering directory '/home/alex/xnee-3.19/libxnee'
make[3]: Entering directory '/home/alex/xnee-3.19/libxnee'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/alex/xnee-3.19/libxnee'
make[2]: Leaving directory '/home/alex/xnee-3.19/libxnee'
make[1]: Leaving directory '/home/alex/xnee-3.19/libxnee'
Making install in cnee
make[1]: Entering directory '/home/alex/xnee-3.19/cnee'
Making install in src
make[2]: Entering directory '/home/alex/xnee-3.19/cnee/src'
make  install-am
make[3]: Entering directory '/home/alex/xnee-3.19/cnee/src'
make[4]: Entering directory '/home/alex/xnee-3.19/cnee/src'
 /bin/mkdir -p '/usr/local/bin'
  /bin/bash ../../libtool   --mode=install /usr/bin/install -c cnee '/usr/local/bin'
libtool: install: /usr/bin/install -c cnee /usr/local/bin/cnee
 /bin/mkdir -p '/usr/local/share/man/man1'
 /usr/bin/install -c -m 644 cnee.1 '/usr/local/share/man/man1'
make[4]: Leaving directory '/home/alex/xnee-3.19/cnee/src'
make[3]: Leaving directory '/home/alex/xnee-3.19/cnee/src'
make[2]: Leaving directory '/home/alex/xnee-3.19/cnee/src'
make[2]: Entering directory '/home/alex/xnee-3.19/cnee'
make[3]: Entering directory '/home/alex/xnee-3.19/cnee'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/alex/xnee-3.19/cnee'
make[2]: Leaving directory '/home/alex/xnee-3.19/cnee'
make[1]: Leaving directory '/home/alex/xnee-3.19/cnee'
Making install in gnee
make[1]: Entering directory '/home/alex/xnee-3.19/gnee'
Making install in src
make[2]: Entering directory '/home/alex/xnee-3.19/gnee/src'
gcc -DHAVE_CONFIG_H -I. -I../.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -I"../../libxnee"/include -I../../        -DXNEE_XINPUT_SUPPORT  -g -O2 -MT gnee-main.o -MD -MP -MF .deps/gnee-main.Tpo -c -o gnee-main.o `test -f 'main.c' || echo './'`main.c
main.c:35:21: fatal error: gtk/gtk.h: No such file or directory
 #include <gtk/gtk.h>
                     ^
compilation terminated.
Makefile:475: recipe for target 'gnee-main.o' failed
make[2]: *** [gnee-main.o] Error 1
make[2]: Leaving directory '/home/alex/xnee-3.19/gnee/src'
Makefile:379: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/alex/xnee-3.19/gnee'
Makefile:430: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

答案1

GNU Xnee 可以从默认的 Ubuntu 存储库安装。打开终端并输入:

sudo apt-get install gnee cnee

GNU Xnee 是一套可以在 X11 环境下记录、重放和分发用户操作的程序。可以把它想象成一个可以模仿你刚刚完成的工作的机器人。

gnee:X 事件记录器/重放器 - GUI 风格
cnee:X 事件记录器/重放器 - 命令行风格

答案2

这可能是由于配置文件设置问题造成的,请尝试以下操作,

1)首先检查源文件,

tar xvf xnee-3.02.tar

2)第二次检查Xnee目录,

cd xnee-3.02

完成此操作后,请尝试清除所有内容,然后再次尝试安装,

make clean all

make install

希望这可以帮助。

答案3

您可以安装陳文无需通过以下命令进行困难的编译:

sudo apt-get install libxnee0

它位于官方 Ubuntu 存储库中。

相关内容