阅读(3414) (0)

make oldconfig 报错

2017-06-06 16:54:35 更新

今天安装 nginx-systemtap-toolkit 时需要安装 utrace (内核版本为 debian3.2,无内嵌的 utrace)

下载 https://github.com/utrace/linux/branches 对应的 linux-utrace-3.2 版本

7za x linux-utrace-3.2.zip

(第一次用unzip时报错,提示文件名过长,改用7za问题解决)

cd linux-utrace-3.2

make 会提示无 include/config/auto.conf

make oldconfig 又会有很多新的选项(上千条)需要手动选择

因此 make allyesconfig 生成 .config

cp .config include/config/auto.conf

此时再 make,提示 generated/autoconf.h: No such file or directory

运行 make oldconfig && make prepare 进行修复

再次 make && make install 成功