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

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

发布时间:2020-12-14 04:07:40 所属栏目:Windows 来源:网络整理
导读:我把它复制到我的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))))
我把它复制到我的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.3binrunemacs.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 "205262

如果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.

(编辑:李大同)

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

    推荐文章
      热点阅读