Golang's Windows Local development environment builds

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

One: Installation Golang

1. Download and install the Go language.

Website Download Address:

https://code.google.com/p/go/wiki/Downloads?tm=2

Select the . msi installation package that corresponds to the integration and development environment, such as:Go1.2.2.windows-amd64.msi

2, installation.

Note: Never have Chinese in the path. Otherwise, the Go Language development tool will not work properly

Because the MSI installation file is used, the Go Language environment variable is set up automatically.

Note: If the following HelloWorld program does not work, or if you are using a ZIP package, you can set the environment variable here:

System Variable Name:

Goroot

Value:

Where Go is installed


System Variable Name:

Path

Append value:

;%goroot%\bin

4, check the installation:

In the command console, enter: Go version

==================

Second, install the GCC compiler MinGW

1. Download

Download Address: The package that shows Windows64bits

Http://sourceforge.net/projects/mingw-w64/files/latest/download

2. Installation

Direct installation

3, configure environment variables,

Add the address of the Bin folder of the installed MinGW in path

4. Testing

Gcc-v, can see the correct configuration information is the installation configuration success


=======================

Iii. Installing IDE Tools liteide

1. Download

Https://code.google.com/p/golangide/downloads/list

Download Windows version

2. Testing

After decompression

Start: Liteide\bin\liteide.exe

New Go1 commend project.

Compile the Man.go file.

The discovery will be an error:

3. Recompile the Golang

Go to C:\Go\src, start Make.bat

If normal, you will see

Will succeed in the end.

4. Recompile the Main.go

'll see


5, success.



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.