Win64 machine-go1.3 source compiled installation record

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

1. First download the go1.3 source package and unzip it.

2. Enter the GO/SRC directory, run All.bat to perform the compilation, and if you are prompted to find GCC, see 3.

3. Go to download Win's gcc download the corresponding Windows version of the installer (follow runs on), download and run select the corresponding version of the download, the download will take some time, after completion will be installed automatically. You will need to add the GCC directory to the PATH environment variable after the installation is complete. This person is lazy, so run the command directly in CMD:

Set path=%path%;D: \dev\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\bin

Then we re-execute the 2nd step above.

4. Wait for the compilation installation, test, check API (This step requires network, may take 20 minutes, can skip it)

5. Configure the Goroot environment variables, Gopath, Gobin environment variables, and add the Gobin to the PATH environment variable.

6. Gopath equivalent to your working directory, the third-party library that go get download will be saved here, if more than one Gopath item is configured, go get default download to the first item's configuration, However, if you check whether the library already exists, all Gopath items are scanned. ex:gopath=gpath1;gpath2 

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.