加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Emacs 24.3 for windows,Tramp byte-code:找不到合适的`ls’命

发布时间:2020-12-13 20:50:04 所属栏目:Windows 来源:网络整理
导读:24.2工作得很好,但是当打开远程Linux系统文件或目录时,24.3有界流氓遇到以下错误: "byte-code: Couldn't find a proper `ls' command" 我打开tramp跟踪,发现所有的远程搜索路径和文件路径是扩展的,开头添加一个额外的“c:”。结果是流氓可以找不到命令
24.2工作得很好,但是当打开远程Linux系统文件或目录时,24.3有界流氓遇到以下错误:
"byte-code: Couldn't find a proper `ls' command"

我打开tramp跟踪,发现所有的远程搜索路径和文件路径是扩展的,开头添加一个额外的“c:”。结果是流氓可以找不到命令和文件我想要打开。

16:04:51.768000 tramp-get-connection-property (7) # process-buffer nil
16:04:51.769000 tramp-set-file-property (8) # c:/bin file-directory-p nil 
16:04:51.770000 tramp-get-file-property (8) # c:/usr/bin file-directory-p undef 
... 
16:04:59.531000 tramp-sh-handle-file-truename (5) # Check /c: 
16:04:59.532000 tramp-get-file-property (8) # c:/c: file-attributes-integer undef 
... 
16:04:51.773000 tramp-get-connection-property (7) # process-name nil 
16:04:51.773000 tramp-get-connection-property (7) # chunksize 0 
16:04:51.773000 tramp-set-connection-property (7) # last-cmd-time (20809 28067 773000 0) 
16:04:51.774000 tramp-send-string (10) # test -d c:/usr/bin 2>/dev/null; echo tramp_exit_status $?

有人知道这件事吗?提前致谢。

在切换到Emacs 24.3后,我遇到了同样的问题。解决方案是升级到最新的Tramp 2.2.7。这是我做的:

>下载http://ftp.gnu.org/gnu/tramp/tramp-2.2.7.tar.gz
>将存档解包到我的?/ .emacs.d / src中。我正在使用emacs-starter-kit,它将此目录及其所有子目录添加到加载路径。否则请按照Tramp的INSTALL文件中的说明进行操作。
>使用Cygwin bash来配置和编译文件。我不会正常使用Cygwin的Emacs,但是这样的场合很方便。
>为了安全,删除了我的emacs / lisp / net中的旧流氓的el和elc文件。
>重启Emacs当然。

做M-x tramp-version以确保它已正确安装。现在流氓工作无处不在(dired,eshell,shell等)。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读