gpt4 book ai didi

ubuntu - 带有 Emacs 的 Lisp 环境 - 粘液未加载

转载 作者:太空宇宙 更新时间:2023-11-03 18:54:46 25 4
gpt4 key购买 nike

我想知道是否有人可以帮助我发现在 Emacs 上安装 slime 的问题。我有 Ubuntu 12.04。

我正在学习本教程(我必须使用这个教程):

http://emergent-languages.org/Babel2/linux.html

我卡在了第 6 点。基本上,Emacs 中的消息说

Loading cua-base...done

Loading paren...done

Polling "/tmp/slime.3213" .. 1 (Abort with `M-x slime-abort-connection'.)

For information about GNU Emacs and the GNU system, type C-h C-a.

(New file)

Polling "/tmp/slime.3213" .. 2 (Abort with `M-x slime-abort-connection'.)

Failed to connect to Swank: inferior process exited

教程说“不要使用 Emacs 附带的粘液”,我已经按照他们的准确说明进行操作。我按照他们的建议在/usr/local/share 中下载了文件夹(ccl 和 slime),并按照他们的方式更新了文件 ~/.emacs。我也尝试再次删除和安装 emacs,但无济于事。

最佳答案

这里有一个有点老套的诊断方法:

  1. 安装 tcpdump(类似于 Debian 系统上的 sudo apt-get install tcpdump)。
  2. 在 Emacs 中,M-xshell
  3. 在 shell 缓冲区中键入:sudo tcpdump -i lo -A -q -nn -t
  4. M-x粘液
  5. 您将看到类似于下面的输出,但可能有所不同。

[sudo] password for wvxvw: 
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes
IP 127.0.0.1.36590 > 127.0.0.1.59445: tcp 0
E..<%.@.@..............5.5...........0.........
.H..........
IP 127.0.0.1.59445 > 127.0.0.1.36590: tcp 0
.....0.........
.H...H......
IP 127.0.0.1.36590 > 127.0.0.1.59445: tcp 0
72o....V.(.....
.H...H..
IP 127.0.0.1.36590 > 127.0.0.1.59445: tcp 66
72o....V.j.....
.H...H..00003c(:emacs-rex (swank:connection-info) "COMMON-LISP-USER" t 2)

IP 127.0.0.1.59445 > 127.0.0.1.36590: tcp 0
E..4..@.@............5..72o..5.O...V.(.....
.H...H..
IP 127.0.0.1.59445 > 127.0.0.1.36590: tcp 1314
E..V..@.@............5..72o..5.O...V.K.....
.I...H..00051C(:return (:ok (:pid 8924 :style :spawn :encoding (:coding-systems

发布您的输出,这样我们就可以知道连接失败的连接阶段。上面的内容:它显示了您本地环回接口(interface)上的所有流量。所以你要确保你没有发布任何 secret 信息:)


确保您可以在主目录中创建文件:

告诉我们您在做时看到了什么:

$ ls -la ~ | grep ' \.$' | awk '{ print $1 }'

这应该是:drwx------。但如果不是,请执行:

$ chmod u+rwx ~

如果目录.cache已经存在,也对其进行同样的处理,即确保目录的所有者可以读、写和执行(打开目录需要执行权限)。

关于ubuntu - 带有 Emacs 的 Lisp 环境 - 粘液未加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18742499/

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