我在存储库ppa:cassou/emacs中安装emacs24时遇到了问题,因为gforth.el中有一个错误。问题在于gforth.el中的一个已知错误在字节编译上失败了。我目前无法安装任何其他apt。在相关的发射台站点上也没有错误。我想我应该已经注意到我已经安装并尝试为它安装匹配的emacs模式,而不是所有安装都会遇到这样的错误。
我在一台非Ubuntu机器上有一个gforth.el版本,它可以工作(刚刚删除了字节编译调用),但我不太了解这个新gforth.el提供的内部工作原理。
从下面的错误信息中,有人知道如何使用这个文件而不是提供的文件吗?
到目前为止,
我在/usr/share/emacs 24/site-lisp/ found /grel.el和/usr/share/emacs/site-lisp/found/grel.el上找到了gforth.el。我已经用文件的工作版本替换了这两个版本,但是错误消息保持不变。
% sudo apt-get install emacs24
Reading package lists... Done
Building dependency tree
Reading state information... Done
emacs24 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up emacs24 (24.3+1-2~ppa1~saucy1) ...
Install dictionaries-common for emacs24
install/dictionaries-common: Already byte-compiled for emacs24. Skipping ...
Install gforth for emacs24
install/gforth: Byte-compiling for emacsen flavour emacs24
In toplevel form:
gforth.el:734:18:Error: Don't know how to compile nil
gforth.el:734:18:Error: Don't know how to compile nil
gforth.el:734:18:Error: Don't know how to compile nil
gforth.el:734:18:Error: Don't know how to compile nil
gforth.el:734:18:Error: Don't know how to compile nil
ERROR: install script from gforth package failed
dpkg: error processing emacs24 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
emacs24
E: Sub-process /usr/bin/dpkg returned an error code (1)发布于 2014-09-11 11:35:24
我认为您可以通过在/usr/share/emacs(24)/site-lisp/gforth/gforth.el中注释(删除)下面的行来暂时解决这个问题:
(eval-when-compile
(byte-compile 'forth-set-word-properties)
(byte-compile 'forth-next-known-forth-word)
(byte-compile 'forth-update-properties)
(byte-compile 'forth-delete-properties)
(byte-compile 'forth-get-regexp-branch))我用这种方法解决了这个问题。
发布于 2015-09-09 19:16:22
我卸载了(3)包,并将其命名为"sudo apt-get install -f“。
(这可能是一种解决办法,如果您需要痛风,这是无法解决的。)
https://askubuntu.com/questions/432583
复制相似问题