gpt4 book ai didi

emacs - 构建 emacs 24.1.50

转载 作者:行者123 更新时间:2023-12-01 23:28:34 25 4
gpt4 key购买 nike

我刚刚更新到 Kubuntu 12.04。除了最新的定制 emacs 之外,一切都工作正常。现在它说:

emacs: symbol lookup error: emacs: undefined symbol: gtk_window_set_has_resize_grip

所以我决定重新构建 emacs。为此,我已经 git pull 最新的快照,并像平常一样完成了所有操作,但现在我在编译过程中遇到错误:

In file included from /home/boris/its/blds/emacs/lib-src/emacsclient.c:76:0:
../lib/getopt.h:196:8: error: redefinition of ‘struct option’
/usr/include/getopt.h:106:8: note: originally defined here
../lib/getopt.h:245:12: error: conflicting types for ‘getopt_long’
/usr/include/getopt.h:175:12: note: previous declaration of ‘getopt_long’ was here
../lib/getopt.h:249:12: error: conflicting types for ‘getopt_long_only’
/usr/include/getopt.h:179:12: note: previous declaration of ‘getopt_long_only’ was here
make[1]: *** [emacsclient] Error 1
make[1]: Leaving directory `/home/boris/its/blds/emacs/lib-src'
make: *** [lib-src] Error 2

Google 搜索几乎没有显示任何有关这些错误的信息。

编辑:

以下解决了这个问题(感谢 JSON ):

git pull
./autogen.sh
./configure --prefix=/home/boris/its/soft/Emacs_24.1.50
make bootstrap
make install

最佳答案

最简单的方法是使用 PPA:emacs-snapshot .

sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs-snapshot

关于emacs - 构建 emacs 24.1.50,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10362341/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com