Revel installation Error Unrecognized import path "Golang.org/x/net/websocket"

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

Because GFW reason, unable to download WebSocket source code, in fact, the source code in Git also, as long as the download down, and then Gopath write on the corresponding path can be compiled, the specific steps are as follows:


1. Clone the code on git to local, such as clone to home directory (~/)

git clone https://github.com/golang/net.git


2. Create the appropriate directory in Gopath, such as Gopath=~/test

CD ~/test

Mkdir-p src/golang.org/x/net/


3. Copy the WebSocket source to the directory created above

CD ~/test

Cp-r ~/net/websocket/src/golang.org/x/net/websocket


4. Manual Build Revel cmd

Go Build Github.com/revel/cmd/revel


5. The binary file revel is generated in Gopath and the revel is copied to the path to complete the installation

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.