(03/02/2011 09:10 PM), Vaibhav Bedia wrote:
> Hi,
> 
> I am using tmux-1.4. I just started getting the error (open terminal
> failed: missing or unsuitable terminal: xterm) when trying to attach
> to a pre-existing session.

That error message would indicate that a terminfo database entry can't
be found for "xterm". Make sure that TERMINFO isn't set (or else,
explicitly set it to where it should be able to find its terminfo
database). If setting it explicitly has a positive effect, then perhaps
your tmux 1.4 was built with a different idea of where terminfo stuff
should be, than tmux 1.3 was. Were they built/linked against different
versions of ncurses? Was tmux 1.4 obtained or built using different
means than tmux 1.3 was?

In addition to playing with TERMINFO, you might also try copying
/usr/share/terminfo/x/* (or wherever it is) into ~/.terminfo/x/.

Good paths to try for TERMINFO include /etc/terminfo, /lib/terminfo, and
/usr/share/terminfo. Find out which one has an x/xterm in it and set it
to that.

If any of these tricks work, then the next step would be to find out why
it's not looking at that place by default.

BTW, in order for the TERMINFO trick to work, it has to be set in the
_server_'s environment, not the client's, so be sure to completely kill
and restart tmux (with the new environment setting) when you try it
(setting it for just a client WON'T work).

-- 
HTH,
Micah J. Cowan
http://micah.cowan.name/

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to