Go git install configuration and use (Windows 7 64bit)

Source: Internet
Author: User

Go language installation using a third-party library method generally uses go get github.com/.../ ... commands. For example:

Get GitHub. Com/astaxie/beego

1. Error condition One:

set. For more details See:go help Gopath

This is due to the fact that the environment variable Gopath is not set.

The first step: Create a new directory under this directory, three basic directories

Step two: Set/new environment variable Gopath to E:\GOPATH.

2. Error condition Two:

Go:missing Git command. See https://golang.org/s/gogetcmd package github.com/astaxie/beego:exec: ' git ': executable file not found In%PATH%//byOsfipin

This is because Git is not installed, or GIT is installed but environment variables are not set.

The first step: check if Git is installed and there is no installed download installation.

: Http://git-scm.com/downloads.

NET disk Link: Http://pan.baidu.com/s/1pJxifDD Password: ag8u

Step Two: Set the environment variables.

The default installation location for Git is at: C:\Program Files\git. The value of the path variable we want to set is: C:\Program files\git\bin.

Final Run Effect:

Auto download Go package in E:\GOPATH\SRC.




Go git install configuration and use (Windows 7 64bit)

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.