简体   繁体   中英

Emacs 24.2 installation make failure

Trying to install Emacs 24.2 on Ubuntu 12.04.

./configure

worked fine.

make gives the error:

/usr/local/include/jmorecfg.h:263:16: error: expected identifier before numeric constant
image.c: In function ‘gif_load’:

image.c:7179:34: error: too few arguments to function ‘DGifOpenFileName’

/usr/local/include/gif_lib.h:177:14: note: declared here
image.c:7200:7: error: too few arguments to function ‘DGifOpen’
/usr/local/include/gif_lib.h:180:14: note: declared here
make[1]: \*** [image.o] Error 1

make[1]: Leaving directory `/home/mark/Downloads/emacs-24.2/src'
make: \*** [src] Error 2

Any ideas how I can fix this?

Mark

It doesn't seem to be a problem with your distribution but rather with the libraries you installed by hand.

/usr/local/include/jmorecfg.h /usr/local/include/gif_lib.h /usr/local/include/gif_lib.h

Are all in /usr/local which is never touched by any distribution but kept for your own personal binaries. It seems there is an incompatibility with the libgif headers you installed by hand.

Please try

./configure --without-gif

to verify and post your output again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM