LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-21-2007, 03:43 PM   #1
Zention
Member
 
Registered: Mar 2007
Posts: 119

Rep: Reputation: 16
make menuconfig - and not xterm


make menuconfig is often used at the kernel configuration stage.

If I use a terminal that is not xterm then it flakes out (no error msg, just back to console prompt) when invoked.

> echo $TERM
> TERM=xterm
> make menuconfig

and it works (I am using rxvt-unicode, I am going to assume this works with rxvt and I have tried aterm).

So, whilst this is a workaround (hack) it is not really the solution, there has to be something in the terminfo or termcap or even the kernel code that needs to be set correctly, perhaps it has to do with ncurses.

On a somewhat related note, the colours used in menuconfig are, in my personal view, terrible, but there are a couple of solutions:

./scripts/kconfig/lxdialog/colors.h can be edited to suit your needs.

There is also a patch floating around I believe that allows a variable to be set to change the color options but it eludes me at the moment.
 
Old 03-21-2007, 09:53 PM   #2
na5m
Member
 
Registered: Jan 2005
Location: california
Distribution: O.A.M. (Overmonitoring Address Matrix) Release 2.2 with 2120 Patch
Posts: 37

Rep: Reputation: 17
I had a similar problem in a non-X LFS build (CLI only). In my situation, make menuconfig would display an unreadable mess that I would have to ctrl-c out of. I don't think the 'make' program liked the fact that my system profile used UTF-8 and not ISO-8859-1. So I changed my default codepage to iso-8859-1, and make menuconfig displayed properly. See http://www.linuxfromscratch.org/lfs/...7/profile.html
 
Old 03-22-2007, 12:18 PM   #3
Zention
Member
 
Registered: Mar 2007
Posts: 119

Original Poster
Rep: Reputation: 16
I am using the en_GB.ISO-8859-1@GBP at the mo.

I tend to source /etc/profile on the chroot as well.

They could be related, but I think something else is going on as well.
 
Old 03-22-2007, 08:26 PM   #4
na5m
Member
 
Registered: Jan 2005
Location: california
Distribution: O.A.M. (Overmonitoring Address Matrix) Release 2.2 with 2120 Patch
Posts: 37

Rep: Reputation: 17
Zention, what base Linux system are you using to build LFS? And what Linux system are you using to make menuconfig? Are you using the same distro for both?
 
Old 03-23-2007, 12:08 PM   #5
Zention
Member
 
Registered: Mar 2007
Posts: 119

Original Poster
Rep: Reputation: 16
The kernel is being built in the chroot.

If Xterm is used or TERM is set to xterm it works - that is the crux of the problem.

I suspect it is to do with ncurses, which is the one installed in the chroot.

So, probably something to do with terminfo or termcap.

It works fine from the Linux console chroot'd as well.
 
Old 03-23-2007, 12:28 PM   #6
na5m
Member
 
Registered: Jan 2005
Location: california
Distribution: O.A.M. (Overmonitoring Address Matrix) Release 2.2 with 2120 Patch
Posts: 37

Rep: Reputation: 17
I mean what host system are you using to build LFS? What host did you chroot from? (are you using the livecd?)
 
Old 03-23-2007, 12:56 PM   #7
Zention
Member
 
Registered: Mar 2007
Posts: 119

Original Poster
Rep: Reputation: 16
Ok, got it sorted.

It was a terminfo problem.

rxvt-unicode does not exist in /usr/share/terminfo/r

The solution was:

infocmp rxvt-unicode > rxvtuni outside of chroot

then mv the rxvtuni to the chroot location

chroot in

export TERMINFO=$HOME/.terminfo

mkdir ~/.terminfo

tic rxvtuni

that puts an rxvt-unicode terminfo file in for root, at ~/.terminfo/r

and hey presto make menuconfig works

Ncurses installs a lot of terminfo files (including rxvt) but a few of the more modern ones are not included.
 
Old 03-23-2007, 05:49 PM   #8
na5m
Member
 
Registered: Jan 2005
Location: california
Distribution: O.A.M. (Overmonitoring Address Matrix) Release 2.2 with 2120 Patch
Posts: 37

Rep: Reputation: 17
Dang! Good job, Zention! That's great that you
solved your own problem. I think we should now
upgrade your "newbie" status to "guru"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make: *** No rule to make target 'menuconfig' yussef Debian 10 12-22-2005 09:23 AM
make: *** No rule to make target `menuconfig' Ezzy Linux - Newbie 3 04-21-2005 09:21 AM
make xconfig/make menuconfig don't work acidblue Debian 2 07-27-2004 07:36 AM
make menuconfig pudhiyavan Fedora 3 12-14-2003 05:16 PM
make menuconfig liguorir Linux - Software 1 06-19-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration