Sublime-text3 Install Gosublime, start error

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

Sublime3 Install Gosublime, start error

Sublime-text3gosublimeGOPATHmissed

Error message

After installing the Gosublime plugin, the following error has been reported SUBLIME-TEXT3 startup:

Solution Solutions

It can be seen from the lack of Gopath environment variables (Golang working directory in essence)

Programme I

    1. Add the GOPATH environment variable to the system and point to the working directory of Golang
    2. Different OS add environment variable way not the same, the specific method can be Baidu, the following list of Linux and Mac operation methods
 
  
  
  1. echo 'export GOPATH=yourgolangpath' >> yourbashfile
  2. source yourbashfile

Programme II

    1. Add the configuration file in the Settings-user of the Gosublime plugin as follows:
 
  
  
  1. {
  2. "env": {
  3. "GOPATH": "yourgolangpath"
  4. }
  5. }

Author: King.han
January 3, 2015

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.