gpt4 book ai didi

linux - 当我在 Linux 终端中执行 "Recipe for target ' 时,“"make xconfig"gconfig'失败”是什么意思?

转载 作者:太空宇宙 更新时间:2023-11-04 05:17:02 25 4
gpt4 key购买 nike

我对 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

关于linux - 当我在 Linux 终端中执行 "Recipe for target ' 时,“"make xconfig"gconfig'失败”是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47801563/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com