当我在 Linux 终端中执行 "make xconfig" 时,"Recipe for target 'gconfig' failed" 是什么意思?

What is "Recipe for target 'gconfig' failed" mean when I do "make xconfig" in Linux terminal?

我是 Linux 驱动程序的新手,我正在尝试编译 Linux 内核 2.6,

到目前为止,我在 Linux 4.0

上执行了这些步骤

1) 我得到了 2.x.y.z 的最新 Linux 内核代码和提取 tar (.tar.bz3) 文件

2) 安装了 gcc,

apt-get install gcc

3)尝试进行以下操作,但均出现错误:

make menuconfig

make xconfig

make gconfig

错误:

root@kiarash-VirtualBox:~/Desktop/linux-2.6.9# make gconfig
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:368:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  if (*(int *)test != INT_CONF) {
  ^
scripts/basic/fixdep.c:370:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    *(int *)test);
    ^
  HOSTCC  scripts/basic/split-include
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:133:6: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
      fgets(old_line, buffer_size, fp_target);
      ^
  HOSTCC  scripts/basic/docproc
*
* Unable to find the GTK+ installation. Please make sure that
* the GTK+ 2.0 development package is correctly installed...
* You need gtk+-2.0, glib-2.0 and libglade-2.0.
*
  HOSTCC  scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_string’:
scripts/kconfig/conf.c:164:20: warning: variable ‘help’ set but not used [-Wunused-but-set-variable]
  const char *def, *help;
                    ^
scripts/kconfig/conf.c: In function ‘conf_sym’:
scripts/kconfig/conf.c:198:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
  int type;
      ^
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:273:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
  int type;
      ^
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:94:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
   fgets(line, 128, stdin);
   ^
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:350:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, 128, stdin);
    ^
make[1]: *** No rule to make target 'scripts/kconfig/.tmp_gtkcheck', needed by 'scripts/kconfig/gconf.o'.  Stop.
Makefile:429: recipe for target 'gconfig' failed
make: *** [gconfig] Error 2

请帮我解惑!

为了安装 gtk2.0 和 libgtk2.0-dev

在您的终端中写下
sudo apt-get install gtk2.0

sudo apt-get install build-essential libgtk2.0-dev