首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >gforth.el中的缺陷防止emacs24从ppa中安装

gforth.el中的缺陷防止emacs24从ppa中安装
EN

Ask Ubuntu用户
提问于 2014-03-11 06:27:52
回答 2查看 473关注 0票数 1

我在存储库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。我已经用文件的工作版本替换了这两个版本,但是错误消息保持不变。

错误消息

代码语言:javascript
复制
% 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)
EN

回答 2

Ask Ubuntu用户

发布于 2014-09-11 11:35:24

我认为您可以通过在/usr/share/emacs(24)/site-lisp/gforth/gforth.el中注释(删除)下面的行来暂时解决这个问题:

代码语言:javascript
复制
(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))

我用这种方法解决了这个问题。

票数 2
EN

Ask Ubuntu用户

发布于 2015-09-09 19:16:22

我卸载了(3)包,并将其命名为"sudo apt-get install -f“。

(这可能是一种解决办法,如果您需要痛风,这是无法解决的。)

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/432583

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档