Emacs 24.3 for windows,Tramp byte-code:找不到合适的`ls'命令 [英] Emacs 24.3 for windows, Tramp byte-code: Couldn't find a proper `ls' command

查看:111
本文介绍了Emacs 24.3 for windows,Tramp byte-code:找不到合适的`ls'命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

24.2工作得很好,但是当打开远程Linux系统文件或目录时,24.3有界流氓得到以下错误:

24.2 works well, but 24.3 bounded tramp got following error when open remote Linux system files or directories:

"byte-code: Couldn't find a proper `ls' command"

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

I open tramp trace and find that, all remote search path and file path are extend by something, adding a extra "c:" at the beginning. The results is that tramp can find neither command nor file I want to open.

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 $? 

任何人都知道这件事吗?感谢提前。

Anyone know something about this? Thanks in advance.

推荐答案

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

I had the same problem after switching to Emacs 24.3. The solution was to upgrade to the latest Tramp 2.2.7. Here is what I did:


  1. 已下载 http://ftp.gnu.org/gnu/tramp/tramp-2.2.7.ta​​r.gz

  2. 将存档解包到我的〜/ .emacs.d / src中。我正在使用emacs-starter-kit,它将此目录及其所有子目录添加到加载路径。否则请按照Tramp的INSTALL文件中的说明进行操作。

  3. 使用Cygwin bash配置和编译文件。我不会正常使用Cygwin的Emacs,但是这样的场合很方便。

  4. 删除了我的emacs / lisp / net中的旧流氓的el和elc文件,以确保安全。 / li>
  5. 重新启动Emacs。

  1. downloaded http://ftp.gnu.org/gnu/tramp/tramp-2.2.7.tar.gz
  2. unpacked the archive to my ~/.emacs.d/src. I am using emacs-starter-kit which adds this directory and all its subdirectories to the load-path. Otherwise follow the instructions in the Tramp's INSTALL file.
  3. used Cygwin bash to configure and compile the files. I don't use Cygwin's Emacs normally but it is convenient to have it for occasions like this.
  4. deleted the old tramp's el and elc files in my emacs/lisp/net for safety.
  5. restarted Emacs of course.

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

Do M-x tramp-version to make sure it is installed correctly. Now tramp works everywhere (dired, eshell, shell, etc).

这篇关于Emacs 24.3 for windows,Tramp byte-code:找不到合适的`ls'命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆