Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
another xterm-256color issue [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Tue Nov 01, 2016 1:33 pm    Post subject: another xterm-256color issue [solved] Reply with quote

Hello all,

I keep bumping into that itchy issue, when I hit some editor, or other tools like nano :

Code:
# nano
Error opening terminal: xterm-256color.



I did read that post https://forums.gentoo.org/viewtopic-t-915876-start-0.html, describing the very same issue, but re-emerging ncurses and xterm, (like advised int this post) didn't change anything.

Code:
 ll /usr/share/terminfo/
total 16
-rw-r--r--   1 root root     0 28 sept. 21:16 .keep_sys-libs_ncurses-0
drwxr-xr-x   2 root root  4096 11 oct.  22:32 .
drwxr-xr-x 366 root root 12288  1 nov.  13:47 ..


I also read I could just go with export TERM=xterm, in bashrc, but I'd like to know why, all of a sudden, I'm buying teased with xterm-256color error, and if there's a less hacky way to solve that.

Regards
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O


Last edited by Carlino on Thu Dec 01, 2016 7:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 618

PostPosted: Mon Nov 07, 2016 7:05 am    Post subject: Reply with quote

Code:
equery uses ncurses


Do you have minimal ? I suspect you should not, but I'm not 100% sure.


HTH
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Mon Nov 07, 2016 9:36 pm    Post subject: Reply with quote

Thanx russK for your suggestion ; here's the output :

Code:
# equery uses ncurses
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-libs/ncurses-5.9-r99:
 U I
 + + abi_x86_32  : 32-bit (x86) libraries
 - - ada         : Add bindings for the ADA programming language
 + + cxx         : Build support for C++ (bindings, extra libraries, code
                   generation, ...)
 + + gpm         : Add support for sys-libs/gpm (Console-based mouse driver)
 - - static-libs : Build static versions of dynamic libraries as well
 - - tinfo       : Build curses library (libncurses) sep from the low-level
                   terminfo library (libtinfo) -- usually needed only for
                   binary packages -- but it is binary compatible in either
                   mode
 + + unicode     : Add support for Unicode

_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 618

PostPosted: Mon Nov 07, 2016 11:01 pm    Post subject: Reply with quote

Sorry I think it should have been more specific,

Code:
equery uses =sys-libs/ncurses-5.9-r5
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Wed Nov 09, 2016 10:45 am    Post subject: Reply with quote

Code:
# equery uses =sys-libs/ncurses-5.9-r5
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-libs/ncurses-5.9-r5:
 U I
 + + abi_x86_32  : 32-bit (x86) libraries
 - - ada         : Add bindings for the ADA programming language
 + + cxx         : Build support for C++ (bindings, extra libraries, code
                   generation, ...)
 - - debug       : Enable extra debug codepaths, like asserts and extra output.
                   If you want to get meaningful backtraces see https://wiki.ge
                   ntoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc         : Add extra documentation (API, Javadoc, etc). It is
                   recommended to enable per package instead of globally
 + + gpm         : Add support for sys-libs/gpm (Console-based mouse driver)
 + + minimal     : Install a very minimal build (disables, for example,
                   plugins, fonts, most drivers, non-critical features)
 - - profile     : Add support for software performance analysis (will likely
                   vary from ebuild to ebuild)
 - - static-libs : Build static versions of dynamic libraries as well
 - - tinfo       : Build curses library (libncurses) sep from the low-level
                   terminfo library (libtinfo) -- usually needed only for
                   binary packages -- but it is binary compatible in either
                   mode
 - - trace       : Enable test trace() support in ncurses calls
 + + unicode     : Add support for Unicode

_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 618

PostPosted: Thu Nov 10, 2016 2:17 am    Post subject: Reply with quote

Code:
 + + minimal     : Install a very minimal build (disables, for example,

This could be preventing the install from including the terminfo files. Do you need minimal for some reason?

If you need minimal for other packages, you could turn it off for ncurses, see the example here how a flag was turned off for php:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/USE#Declaring_USE_flags_for_individual_packages

HTH
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Sat Nov 19, 2016 11:04 am    Post subject: Reply with quote

Hello russk,

Sorry for taht delay, and thanks for your tip. So I ran
Code:
USE="-minimal" emerge -pv sys-libs/ncurses


but I still bump into the same issue....
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 618

PostPosted: Sat Nov 19, 2016 4:27 pm    Post subject: Reply with quote

I'm traveling so I can't see my machine but I suspect you may need a deep update. If that doesn't fix it then I'm stumped.

I would recommend setting up a package.use file with the ncurses use -minimal and then 'emerge --update --deep --newuse --with-bdeps y @world --ask'

HTH
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Thu Dec 01, 2016 7:52 pm    Post subject: Reply with quote

Thanx a lot russK for your support :

Quote:
I would recommend setting up a package.use file with the ncurses use -minimal and then 'emerge --update --deep --newuse --with-bdeps y @world --ask'


it did work

Regards
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum