Originally Posted by
Mr_Smiley
Hi,
Just followed through the instructions and it seemed to install ok. However when I try and run emacs I get this message:
Code:
emacs: Cannot open termcap database file
Thanks for any help.
EDIT: Well I managed to fix the problem by installing 'libncurses5-dev' and then recompiling emacs however I now have another problem. When starting emacs it loads the console version. Any ideas why?
Thanks.
I had the same problem initially, and I managed to fix it (on both Breezy and Dapper). I think it just didn't configure correctly. (libncurses-dev should be irrelevant to this thread, since we want Emacs to use GTK and XFT, let alone curses )
1. First, install libgtk2.0-dev from Synaptic or apt-get.
2. If you try to follow the procedure now, it might work...but it didn't for me. Actually, make bootstrap failed, with gcc reporting syntax errors in a header file (apparently due to some un-kosher macro expansion). If this happens to you, you might try the following inelegant, hack-ish solution (read: no guarantees implied whatsoever): fire up a text editor (like gedit, if you don't have another Emacs) and open the file emacs/configure. Find the following section:
Code:
if test "$have_x" != yes; then
echo "$as_me:$LINENO: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6
no_x=yes
else
# If each of the values was on the command line, it overrides each guess.
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
# Update the cache value to reflect the command line values.
ac_cv_have_x="have_x=yes \
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi
Exchange the lines "no_x=yes" and "else", so that the section looks like this:
Code:
if test "$have_x" != yes; then
echo "$as_me:$LINENO: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6
else
no_x=yes
# If each of the values was on the command line, it overrides each guess.
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
# Update the cache value to reflect the command line values.
ac_cv_have_x="have_x=yes \
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi
Now repeat the compilation process, starting from the ./configure step. I don't know if it is actually a bug in the script or it is just a fluke that switching the two lines made it compile and run on my machine
3. I haven't confirmed this, but I think there is a chance that
./configure --with-x-toolkit=gtk --with-xft=yes
won't configure properly, but this:
./configure --with-gtk --with-xft
did work for me. Something else to try.
(And the display problem I reported earlier doesn't appear when compiling on Breezy and Dapper.)
Thanks you, trevorv, for this howto. Finally, antialiased Emacs!
Bookmarks