当前位置:   article > 正文

[spacemacs]git下载出错

[spacemacs]git下载出错

https://github.com/syl20bnr/spacemacs

报错如下:

lihaiyan@lihaiyan-sh:~/Downloads/spacemacs$ git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
Cloning into ‘/home/lihaiyan/.emacs.d’…
fatal: unable to access ‘https://github.com/syl20bnr/spacemacs/’: gnutls_handshake() failed: The TLS connection was non-properly terminated.

同ping 不通该网站:
lihaiyan@lihaiyan-sh:/usr/bin$ ping github.com
PING github.com (13.250.177.223) 56(84) bytes of data.
^C
github.com ping statistics —
56 packets transmitted, 0 received, 100% packet loss, time 56299ms

解决方法:
sudo vim /etc/hosts

在文件添加:
192.30.253.113 github.com

安装步骤:

Default installation

    If you have an existing Emacs configuration, back it up first:

    cd ~
    mv .emacs.d .emacs.d.bak
    mv .emacs .emacs.bak

    Don't forget to backup and remove ~/.emacs file otherwise Spacemacs WILL NOT load since that file prevents Emacs from loading the proper initialization file.

    Clone the repository:

    git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d

    master is the stable branch and it is immutable, DO NOT make any modification to it or you will break the update mechanism. If you want to fork Spacemacs safely use the develop branch where you handle the update manually.

    (Optional) Install the Source Code Pro font.

    If you are running in terminal you'll also need to change font settings of your terminal.

    Launch Emacs. Spacemacs will automatically install the packages it requires. If you get an error regarding package downloads then you may try to disable the HTTPS protocol by starting Emacs with

    emacs --insecure

    Or you can set the dotspacemacs-elpa-https to nil in your dotfile to remove the need to start Emacs with --insecure argument. You may wish to clear out your .emacs.d/elpa directory before doing this, so that any corrupted packages you may have downloaded will be re-installed.

    Restart Emacs to complete the installation.

If the mode-line turns red then be sure to consult the FAQ.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号