2013-02-11 36 views
1

试图在Ubuntu 12.04上安装Emacs 24.2。Emacs 24.2安装失败

./configure 

工作正常。

化妆给人的错误:

/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 

任何想法如何,我可以解决这个问题?

马克

+0

您可以通过'aptitude build-dep emacs24 '安装所有相关库。 – syohex 2013-02-12 01:18:17

回答

1

这似乎并不符合你的发行版,而是与你手工安装库的一个问题。

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

是否所有在/ usr /本地这是从来没有受任何分配感动,但保留为您自己的个人二进制文件。它看起来与您手动安装的libgif头文件不兼容。

请尝试

./configure --without-gif 

重新验证并发表您的输出。

+0

它工作完美。 TX。非常! – user2062993 2013-02-11 23:59:33