Fixing terminal issues



All timestamps are based on your local time of:

I used to be able to run rtorrent on my MacOS X 10.6 without issues. Then, recently I installed some new apps from fink, which broke rtorrent. Whenever I tried to run rtorrent, it would display the error "Error opening terminal: xterm-color". Changing my TERM and TERMINFO environment variables did nothing; the error message would just replace "xterm-color" with whatever my $TERM was set to. I couldn't find a solution to this problem online, but gleaned enough information to realize that it was a problem with rtorrent not using ncurses properly. I opened up my rtorrent binary in vim, and searched for "ncurses". I found a string that said "/sw/lib/libncursesw.5.dylib". Looking at the timestamps of various files in my /sw/lib/*curses* directory, it was apparent that installing the new apps had upgraded libncurses to a new version, and rtorrent was hard-coded to use the old one. Based on this, I backed up the old library with "sudo mv libncursesw.5.dylib libncursesw.5.dylib.bk" and created a symlink to the new one "sudo ln -s libncurses.dylib libncursesw.5.dylib". After this, rtorrent started working again. Presumably recompiling rtorrent from scratch with the correct libncurses would also fix this issue.

[ Add a new comment ]

 
 
(c) Kartikaya Gupta, 2004-2018. User comments owned by their respective posters. All rights reserved.
You are accessing this website via IPv4. Consider upgrading to IPv6!