Fix cannot find package "Golang.org/x/text/unicode/norm"

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

Similar to the above, it is also a problem in installing BLEVE, the full-text search engine.

Compile error message

"golang.org/x/text/unicode/norm"in any of:/Users/.../projects/go-projects/src/github.com/blevesearch/bleve/vendor/golang.org/x/text/unicode/norm (vendor tree)/usr/local/go/src/golang.org/x/text/unicode/norm (from $GOROOT)/Users/.../projects/go-projects/src/golang.org/x/text/unicode/norm (from $GOPATH)

Solution Solutions

cd src/golang.org/xgit clone git@github.com:weisd/golang.org-x-text.git1

Related instructions

    • Some of the package images in the relevant vendor manifest configuration file corresponding to the address can not be downloaded such as the following:
    • Https://github.com/blevesearch/bleve/blob/master/vendor/manifest

      "importpath""golang.org/x/text/unicode/norm","repository""https://go.googlesource.com/text",
    • From the above, Https://go.googlesource.com/text this warehouse outside the wall, sometimes the wall can not open, we can directly find other alternative images to manually install the way to solve
    • If some address download is a compressed package, then you need to do: Download, unzip, replace the steps
    • A reference issue on GitHub is attached here

Reference

    • Https://gopm.io/download?pkgname=golang.org/x/text
    • Https://golanglibs.com/search?q=golang.org%2Fx%2Ftext
    • Https://gowalker.org/github.com/weisd/golang.org-x-text
    • Https://github.com/weisd/golang.org-x-text
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.