About the go get install git Golang project times the wrong way to deal with

Source: Internet
Author: User
Tags mercurial ssl certificate
This is a creation in Article, where the information may have evolved or changed.

When you use go get to install a project on GitHub, in general, errors are unavoidable. Various error handling methods:

Required Conditions:

1. Install git and configure environment variables. Download Address: http://git-scm.com/

2, install the Golang environment, and configure the environment variables.

Other errors:

1, prompt missing Mercurial command

Need to download and install mercurial software TORTOISEHG. Address: mercurial.selenic.com

Can't download? The programmer who has to turn over the wall and not turn over the wall is not a qualified programmer, ha.

2. Prompt exec: "git": Executable file not found in%PATH%

Git is not installed correctly. The environment variable may not be configured properly.

3, SSL certificate problem

Turn off authentication before running go get, execute at command line:

Git config–global http.sslverify false4, if there is a problem with the network connection, if you need to turn over the wall, first install the wall software, such as Goagent, and then also before the go Get command execution, set up a proxy for git: git config– Global Http.proxy "127.0.0.1:8087″
Original: http://www.baiyuxiong.com/?p=876
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.