2013-03-16 69 views
1

今天我试着配置python开发emacsel-get-executable-find:找不到'executable-find'命令'hg'

我安装了pymacs, pycomplete+ , python-mode, python-pep8el-get

当我试图安装rope我得到这个错误

EL-获得可执行找到的:不能用'可执行找到的”

被发现命名为“汞”的命令然后,当我删除了config"el-get"

(add-to-list 'load-path "~/.emacs.d/el-get/el-get") 
(unless (require 'el-get nil 'noerror)`  
    (with-current-buffer 
     (url-retrieve-synchronously 
     "https://raw.github.com/dimitri/el-get/master/el-get-install.el") 
    (goto-char (point-max)) 
    (eval-print-last-sexp))) 
(el-get 'sync) 

错误消失。

任何人都可以帮我解决它吗?

+2

您是否安装了Mercurial? – lunaryorn 2013-03-16 15:57:36

+0

lunaryorn:你应该把它作为正确的答案,以便它可以被接受,并澄清'hg'是Mercurial VCS的主要可执行文件。毫无疑问,有问题的el-get配方需要克隆Mercurial存储库。 – phils 2013-03-17 00:20:09

+0

phils:但是我从来没有遇到过这个错误...我已经安装了Mercurial,只是now.it似乎没有任何帮助。(使用.mpkg文件安装) – zarzen 2013-03-17 06:20:28

回答

1

正如已经评论过的,在路径中找不到mercurial dvc命令“hg”。

一旦注意到Emacs并没有在$ PATH中加载emacs变量“exec-path”中的所有可执行文件。这发生在从Windows系统按钮启动时发生。也许从控制台启动它已经消失了。

检查exec-path是否包含“type hg”显示的目录。 在这种情况下,通过init-file将其添加到exec-path可能是一个选项。

+0

谢谢!有用! – zarzen 2013-03-19 02:51:36