I use Debian 7.4 Wheezy. I trying to upgrade my kernel, but when I type «make menuconfig» it says:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
I trying to install «libncurses5-dev», but I get the error:
E: Unable to locate package libncurses5-dev
P.S.
I downloaded and installed the packages manually and now everything is okay!
Thanks a lot!!
Veerendra K
2,1157 gold badges32 silver badges61 bronze badges
asked Apr 14, 2014 at 0:36
ValeriRangelovValeriRangelov
5832 gold badges7 silver badges18 bronze badges
You should have run (as root)
aptitude update
aptitude search libncurses
that would suggest you the right package name.
Then try
aptitude install libncurses-dev
and
aptitude install kernel-package
aptitude build-dep linux-image linux-image-amd64
At last, use make-kpkg --initrd binary
to compile your kernel. (it will produce *.deb
files in the parent directory). You want to configure /etc/kernel-pkg.conf
and perhaps /etc/kernel-img.conf
answered Apr 14, 2014 at 5:35
3
I had the same problem. In my case installation of package libncursesw5-dev
solved the issue.
answered May 16, 2016 at 13:36
make menuconfig needs ncurses libraries try following command to install ncurses library
sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev
answered Apr 14, 2014 at 5:56
Rahul R DhobiRahul R Dhobi
5,6381 gold badge29 silver badges38 bronze badges
make menuconfig
worked for me after i installed all the libaries, and added myself sudo permission, i was also using this to cross_compile stuff
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
%b37399 ALL=(ALL:ALL) NOPASSWD:ALL
answered Jun 17, 2016 at 16:07
ashishashish
3533 silver badges8 bronze badges
For Fedora(Red Hat);
$ make menuconfig
#error encountered :
make[1]: *** [scripts/kconfig/Makefile:210: scripts/kconfig/mconf-cfg] Error 1
make: *** [Makefile:588: menuconfig] Error 2
#resolution :
$ sudo yum install libncurses-dev
Thanks
answered May 5, 2020 at 19:29
Sarkar_TSarkar_T
5611 gold badge4 silver badges4 bronze badges
1
Depending on the project the menuconfig could be made with the kconfiglib
library:
https://pypi.org/project/kconfiglib/
For these projects it’s required to:
- Install Python (I tested it with Python2.7, but I think newer Pythons are just fine)
- Install pip (if it’s not done with Python)
- And then the
pip install kconfiglib
And for some projects, this will fix the error instead of the libcurses package.
Just as example here is one kconfiglib
based project which prints the same error, but will not be fixed with libcurse:
https://github.com/polarfire-soc/hart-software-services
answered Jun 8, 2021 at 13:10
Anton KrugAnton Krug
1,5572 gold badges19 silver badges32 bronze badges
0
0
Для конфигурированиz ядра 2.6.9 вызываю make menuconfig.А он выдаёт ошибки:
make[2]:*** [scripts/lxdialog/checklist.o] Ошибка 1
make[1]:*** [menuconfig] Ошибка 2
make:***[menuconfig] Ошибка 2
Просто make config работает нормально.
- Ссылка
Re: Не работает make menuconfig
ncurses стоит
anonymous
(16.02.05 10:10:44 MSK)
- Показать ответ
- Ссылка
Re: Не работает make menuconfig
это был вопрос или утверждение?
кто это сказал?
> P.S. вот цена анонимности…
eugrus ★★★★
(16.02.05 11:01:57 MSK)
- Показать ответ
- Ссылка
Re: Не работает make menuconfig
это был вопрос — тебе нужно поставить ncurser-devel
или можешь запустить make xconfig
anonymous
(16.02.05 11:30:43 MSK)
- Показать ответ
- Ссылка
Re: Не работает make menuconfig
У меня не стоят ИКСЫ потому-то я и хочу использовать menuconfig.
А можно поподробнее про ncurser-devel. Что это такое? И как проверить
стоят они или нет.
anonymous
(16.02.05 12:41:34 MSK)
- Показать ответы
- Ссылка
Re: Не работает make menuconfig
ncurses и ncurses-devel эта такая либа которая рисует окошечный интерфейс в консоли ( типа тот который есть в утилитах типа linuxconf и тп )
ты ведь когда запускаешь make menuconfig — то видишь окошки — это они и есть …
так что посмотри в твоем дистре пакеты ncurses-devel …
в дебиане так:
apt-cache search ncurses ….
anonymous
(16.02.05 12:56:21 MSK)
- Показать ответ
- Ссылка
Re: Не работает make menuconfig
Установи все пакеты для разработчиков и не парь мозги «разработка ядра «
gizmo ★
(16.02.05 13:34:16 MSK)
- Ссылка
Re: Не работает make menuconfig
> И как проверить стоят они или нет.
если rpm-based дистрибутив:
rpm -qa | grep curces
eugrus ★★★★
(16.02.05 14:59:01 MSK)
- Ссылка
Re: Не работает make menuconfig
> А можно поподробнее про ncurser-devel. Что это такое?
что-то вроде conio.h в DOS, но только гораздо функциональнее
для «рисования» в консоли
eugrus ★★★★
(16.02.05 15:01:14 MSK)
- Показать ответ
- Ссылка
Re: Не работает make menuconfig
Спасибо за помощь. Поставил эту либу и всё заработало:)
anonymous
(16.02.05 15:08:17 MSK)
- Ссылка
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Working with a Headless Raspberry PI 4 with an Ubuntu Server 18.04.4 LTS.. I am trying to configure the source kernel. I have installed libncurses-dev, kernel-package, qt4-dev-tools.
When I run ‘make menuconfig’ in the directory /linux-5.7, it shows:
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
scripts/Makefile.host:9: recipe for target 'scripts/kconfig/lexer.lex.c' failed
make[1]: *** [scripts/kconfig/lexer.lex.c] Error 127
Makefile:588: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
Lost on what to do, everything I have read hasn’t helped so far. My goal is to start programming device drivers, and to do so I need a configured and built kernel source tree on disk.
asked Jun 1, 2020 at 19:42
0
In the Ubuntu’s Build Your Own Kernel guide it is stated that you have to install following programs :
sudo apt-get install libncurses-dev flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf
to be able to compile the kernel from source successfully.
answered Jun 1, 2020 at 19:48
flex
is not installed. Install it by
sudo apt install flex
answered Jun 1, 2020 at 19:45
Pilot6Pilot6
88.1k91 gold badges199 silver badges306 bronze badges
I’m not sure this will be helpful, but when making kernel modules you can receive this same error if the makefile in use uses the keyword SUBDIRS= which was eliminated after version 5.3 of the kernel. Instances of SUBDIRS= need to be replaced by M=
Again, this is for building modules and drivers, but I would be surprised if building the kernel did not require similar references depending on the tools being used.
answered Jan 18, 2022 at 15:36
0
ядро с make menuconfig (Debian)
Модераторы: Warderer, Модераторы разделов
-
godima
- Сообщения: 92
- ОС: Debian Etch
ядро с make menuconfig
Добрый день всем!
Рискнул открыть тему, так как по поиску не нашел подходящего ответа для себя.
Надеюсь на понимание.
Вчера попытался в первые пересобрать ядро. Нашел статью как это делается, ну и начал, собственно как там написано.
У меня система на 3 DVD, так что с дисков поставил пакет linux-source-2.6.18
в /usr/src/ распаковал его.
Далее автор рекомендует скопировать /boot/config-2.6.18-686 в /usr/src/linux-source-2.6.18/.config , что я и сделал
После этого запустить в /usr/src/linux-source-2.6.18/ make menuconfig
запускаю, что-то начинает на экран выводить, после чего строка — завершение make menuconfig с кодом ошибки 2.
Что делать?
Пробовал запустить make config — нормально заработало, задает вопросы, ну, как и должно быть
Только вот конфигурировать в режиме ответов на вопросы, как-то не очень уж нравится…
И еще вопрос — автор статьи, по которой я пробовал собрать свое ядро предлагает скачать пакет kernel-source-2.6.18
на 3 DVD Debian Etch такого пакета нету, но как я понимаю пакет linux-source-2.6.18 как раз содержит исходники ядра, или я не прав, и нужно качать kernel-source-2.6.18 из сети для сборки своего ядра?
Спасибо всем за ответы!
-
greak
- Сообщения: 485
- Статус: debian user
- ОС: Debian Lenny/Sid
Re: ядро с make menuconfig
Сообщение
greak » 04.06.2007 09:25
запускаю, что-то начинает на экран выводить, после чего строка — завершение make menuconfig с кодом ошибки 2.
Что делать?
Что система говорит?
И еще вопрос — автор статьи, по которой я пробовал собрать свое ядро предлагает скачать пакет kernel-source-2.6.18
на 3 DVD Debian Etch такого пакета нету, но как я понимаю пакет linux-source-2.6.18 как раз содержит исходники ядра
Качай лучше с kernel.org уже 2.6.21
-
godima
- Сообщения: 92
- ОС: Debian Etch
Re: ядро с make menuconfig
Сообщение
godima » 04.06.2007 09:31
greak писал(а): ↑
04.06.2007 09:25
запускаю, что-то начинает на экран выводить, после чего строка — завершение make menuconfig с кодом ошибки 2.
Что делать?Что система говорит?
ругается на некоторые файлы — говорит, что не найден файл при попытке #include <abc>
где abc — имя файла, сейчас поточнее сказать не могу — только вечером у компа будуИ еще вопрос — автор статьи, по которой я пробовал собрать свое ядро предлагает скачать пакет kernel-source-2.6.18
на 3 DVD Debian Etch такого пакета нету, но как я понимаю пакет linux-source-2.6.18 как раз содержит исходники ядраКачай лучше с kernel.org уже 2.6.21
-
chitatel
- Сообщения: 2015
Re: ядро с make menuconfig
Сообщение
chitatel » 04.06.2007 16:19
godima писал(а): ↑
04.06.2007 09:22
запускаю, что-то начинает на экран выводить, после чего строка — завершение make menuconfig с кодом ошибки 2.
Что делать?
Поставьте пакет libncurses5-dev. И посмотрите, что получится. Может быть, ничего и не получится…
как я понимаю пакет linux-source-2.6.18 как раз содержит исходники ядра
Правильно понимаете.
-
godima
- Сообщения: 92
- ОС: Debian Etch
Re: ядро с make menuconfig
Сообщение
godima » 07.06.2007 08:09
Извините, что с опозданием, но вот, что выдает make menuconfig:
Код:
debian:/usr/src/linux-source-2.6.18# make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_colors’
scripts/kconfig/lxdialog/dialog.h:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_shadow’
scripts/kconfig/lxdialog/dialog.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘attributes’
scripts/kconfig/lxdialog/dialog.h:143: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:146: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:147: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:148: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:149: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:151: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:
scripts/kconfig/lxdialog/checklist.c:117: error: ‘WINDOW’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:117: error: for each function it appears in.)
scripts/kconfig/lxdialog/checklist.c:117: error: ‘dialog’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: ‘list’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of function ‘endwin’
scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of function ‘fprintf’
scripts/kconfig/lxdialog/checklist.c:122: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/kconfig/lxdialog/checklist.c:122: error: ‘stderr’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:140: error: ‘COLS’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:141: error: ‘LINES’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function ‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:143: error: ‘stdscr’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function ‘newwin’
scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of function ‘keypad’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘TRUE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function ‘draw_box’
scripts/kconfig/lxdialog/checklist.c:148: error: ‘attributes’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:149: warning: implicit declaration of function ‘wattrset’
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function ‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:152: warning: implicit declaration of function ‘waddch’
scripts/kconfig/lxdialog/checklist.c:156: warning: implicit declaration of function ‘print_title’
scripts/kconfig/lxdialog/checklist.c:159: warning: implicit declaration of function ‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of function ‘subwin’
scripts/kconfig/lxdialog/checklist.c:191: warning: implicit declaration of function ‘print_item’
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function ‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:200: warning: implicit declaration of function ‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function ‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of function ‘doupdate’
scripts/kconfig/lxdialog/checklist.c:207: warning: implicit declaration of function ‘wgetch’
scripts/kconfig/lxdialog/checklist.c:214: error: ‘KEY_UP’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:214: error: ‘KEY_DOWN’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:224: error: ‘FALSE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:225: warning: implicit declaration of function ‘scrollok’
scripts/kconfig/lxdialog/checklist.c:226: warning: implicit declaration of function ‘wscrl’
scripts/kconfig/lxdialog/checklist.c:235: warning: implicit declaration of function ‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:285: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/kconfig/lxdialog/checklist.c:286: warning: implicit declaration of function ‘delwin’
scripts/kconfig/lxdialog/checklist.c:290: error: ‘KEY_LEFT’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:291: error: ‘KEY_RIGHT’ undeclared (first use in this function)
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Ошибка 1
make[1]: *** [menuconfig] Ошибка 2
make: *** [menuconfig] Ошибка 2
debian:/usr/src/linux-source-2.6.18#
-
godima
- Сообщения: 92
- ОС: Debian Etch
Re: ядро с make menuconfig
Сообщение
godima » 07.06.2007 09:34
greak писал(а): ↑
07.06.2007 08:23
scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory
libncurses5-dev установлен?
возможно, что нет, сечас я не у машины, поэтому не могу сказать
-
godima
- Сообщения: 92
- ОС: Debian Etch
Re: ядро с make menuconfig
Сообщение
godima » 07.06.2007 09:42
greak писал(а): ↑
07.06.2007 08:23
scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory
libncurses5-dev установлен?
а про остальные ошибки что-то можете сказать?
-
Aectann
- Бывший модератор
- Сообщения: 3491
- Статус: …
- ОС: OS X, GNU_и_не_только/Linux
Re: ядро с make menuconfig
Сообщение
Aectann » 07.06.2007 17:30
godima писал(а): ↑
07.06.2007 09:42
а про остальные ошибки что-то можете сказать?
Ошибки из последнего лога вроде только из-за отстутствия ncurses, так что ставьте ncurses-dev и попробуйте ещё раз menuconfig запустить.
My god… it’s full of stars!…
-
mczim
- Сообщения: 665
- ОС: Debian/Ubuntu
- Контактная информация:
View previous topic :: View next topic | |||||||||||||||||
Author | Message | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
donjuan l33t Joined: 11 May 2004 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
To Veteran Joined: 12 Apr 2003 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
kimchi_sg Advocate Joined: 26 Nov 2004 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
eerok n00b Joined: 14 Feb 2005 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
{{Azrael}} Tux’s lil’ helper Joined: 01 Mar 2005 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
donjuan l33t Joined: 11 May 2004 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
donjuan l33t Joined: 11 May 2004 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
wbrack n00b Joined: 03 Mar 2005 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
obscurus Tux’s lil’ helper Joined: 30 Aug 2002 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
wbrack n00b Joined: 03 Mar 2005 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
Spirit4ever n00b Joined: 14 Nov 2003 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
kgodric n00b Joined: 14 Nov 2005 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
|
You cannot post new topics in this forum |