<commit_before>---
layout: post
title: linux 内核编译错误解决
date: 2016-11-15
categories: blog
tags: [内核编译,Linux]
description: linux 内核编译错误解决
---


## 问题描述

在进行Linux内核编译的时候，执行下面操作，出现报错如下：
<pre>
[root@pxe-199 linux-4.1.35]# make menuconfig
  HOSTCC  scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: 致命错误：curses.h：没有那个文件或目录

</pre>

## 解决办法

执行下面操作：

<pre>
yum install ncurses-devel ncurses
</pre>

解决，enjoy！！

参考blog：[ https://www.cyberciti.biz/faq/linux-error-cursesh-no-such-file-directory/]( https://www.cyberciti.biz/faq/linux-error-cursesh-no-such-file-directory/)<commit_msg>adjust  style<commit_after>---
layout: post
title: linux 内核编译错误解决
date: 2016-11-15
categories: blog
tags: [内核编译,Linux]
description: linux 内核编译错误解决
---


## 问题描述

在进行Linux内核编译的时候，执行下面操作，出现报错如下：
<pre>
[root@pxe-199 linux-4.1.35]# make menuconfig
  HOSTCC  scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: 致命错误：curses.h：没有那个文件或目录

</pre>

## 解决办法

执行下面操作：

<pre>
yum install ncurses-devel ncurses
</pre>

解决，enjoy！！！！

参考blog：[ https://www.cyberciti.biz/faq/linux-error-cursesh-no-such-file-directory/]( https://www.cyberciti.biz/faq/linux-error-cursesh-no-such-file-directory/)
{'fraction_non_alphanumeric': 0.16043613707165108, 'fraction_numerical': 0.03426791277258567, 'mean_word_length': 4.762331838565022, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6885589', 'n_tokens_mistral': 679, 'n_tokens_neox': 702, 'n_words': 88}