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

前端之家收集整理的这篇文章主要介绍了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.

猜你在找的Windows相关文章