zoukankan      html  css  js  c++  java
  • 安装Go插件遇到的问题及解决方法

    1. 问题:在 Windows 平台下使用 go get 安装sqlite3 驱动时报错 The remote end hung up unexpectedly ?

    原因及解决方法:

           原因可能有两种:

    • 百度查了之后,说是 stackoverflow(缓冲区溢出了),找到一个解决方法.,直接执行下面的命令:
    git config --global http.postBuffer 524288000

         或者直接在配置文件中添加参数,如下所示:

         打开该文件,在文件末尾添加:

    [http] 
    postBuffer = 524288000
    • 如果上面的方法不行,还有一种可能是网络比较缓慢情况下,连接就断开了,解决方法是增加最低速度时间:
    git config --global http.lowSpeedLimit 0
    git config --global http.lowSpeedTime 999999

     2. 问题:在使用 go get 安装 golint 插件时报了 error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 错误?

    解决方法:

            先执行下面的命令:

    git config --global http.postBuffer 524288000

            再执行下面的命令:

    git config --global http.sslVerify "false"

           下载并安装成功:

    参考文献:

    • https://www.jianshu.com/p/5f2348927504
    • https://www.cnblogs.com/wangkun1993/p/8514015.html
  • 相关阅读:
    973. K Closest Points to Origin
    919. Complete Binary Tree Inserter
    993. Cousins in Binary Tree
    20. Valid Parentheses
    141. Linked List Cycle
    912. Sort an Array
    各种排序方法总结
    509. Fibonacci Number
    374. Guess Number Higher or Lower
    238. Product of Array Except Self java solutions
  • 原文地址:https://www.cnblogs.com/xuejiale/p/10585787.html
Copyright © 2011-2022 走看看