Skip to content
Advertisement

What is “Recipe for target ‘gconfig’ failed” mean when I do “make xconfig” in Linux terminal?

I am really new on Linux drivers and I am trying to Compile Linux kernel 2.6,

I did these steps so far on my Linux 4.0

1) I got Latest Linux kernel code for 2.x.y.z and Extract tar (.tar.bz3) file

2) Installed gcc,

apt-get install gcc

3)Try to make below but all of them occurred with error:

make menuconfig

make xconfig

make gconfig

Error:

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

Please help me to undrestand!

Advertisement

Answer

write below in your terminal in order to install gtk2.0 and libgtk2.0-dev

sudo apt-get install gtk2.0

sudo apt-get install build-essential libgtk2.0-dev
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement