微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

windows – 无法安装emacs el-get包,emacs无法连接到互联网

我把它复制到我的init.el:
(add-to-list 'load-path ".emacs.d/el-get/el-get")
(unless (require 'el-get nil t)
  (url-retrieve
   "https://raw.github.com/dimitri/el-get/master/el-get-install.el"
   (lambda (s)
     (end-of-buffer)
     (eval-print-last-sexp))))

我正在使用d:.emacs.d目录中的此代码启动emacs,该目录不在认位置

set HOME=%~dp0\..
cd ..
D:\emacs-24.3\bin\runemacs.exe --debug-init --xrm "emacs.Background: light green"

这应该从github下载包,但我得到这个:

Debugger entered--Lisp error: (error "Could not create connection to raw.github.com:443")
signal(error ("Could not create connection to raw.github.com:443"))
error("Could not create connection to %s:%d" "raw.github.com" 443)
url-http([cl-struct-url "https" nil nil "raw.github.com" nil "/dimitri/el-get/master/el-get-install.el" nil nil t nil t] (lambda (s) (end-of-buffer) (eval-print-last-sexp)) (nil))
url-https([cl-struct-url "https" nil nil "raw.github.com" nil "/dimitri/el-get/master/el-get-install.el" nil nil t nil t] (lambda (s) (end-of-buffer) (eval-print-last-sexp)) (nil))
url-retrieve-internal("https://raw.github.com/dimitri/el-get/master/el-get-install.el" (lambda (s) (end-of-buffer) (eval-print-last-sexp)) (nil) nil nil)
url-retrieve("https://raw.github.com/dimitri/el-get/master/el-get-install.el" (lambda (s) (end-of-buffer) (eval-print-last-sexp)))
(if (require (quote el-get) nil t) nil (url-retrieve "https://raw.github.com/dimitri/el-get/master/el-get-install.el" (function (lambda (s) (end-of-buffer) (eval-print-last-sexp)))))
eval-buffer(#<buffer  *load*> nil "d:/.emacs.d/init.el" nil t)  ; Reading at buffer position 1831
load-with-code-conversion("d:/.emacs.d/init.el" "d:/.emacs.d/init.el" t t)
load("d:/.emacs.d/init" t t)
#[0 "\205\262

如果emacs实际上是在尝试连接,则防火墙没有通知.

我最近写的 Installation on Windows页似乎是这个问题的答案:

Emacs doesn’t support https out of the Box on Windows. As mentioned
07001,the needed dlls can be retrieved from
07002.

  • Extract the dlls in bin from gnutls-3.0.9-w32-bin.zip into Emacs’ bin/
    • but not the .exe files,otherwise you might hit 07003.
  • You will need to restart Emacs so it can notice the new dlls.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐