Liu Yuelin | About Golang Environment Construction success case

Source: Internet
Author: User

Go.gif
Liuyuelin@liuyuelindemacbook-pro⮀~⮀brew install goupdating homebrew...^c⇒downloading [https://homebrew.bintray.com/ BOTTLES/GO-1.10.3.SIERRA.BOTTLE.TAR.G] (HTTPS://HOMEBREW.BINTRAY.COM/BOTTLES/GO-1.10.3.SIERRA.BOTTLE.TAR.G) # # # # # # # # ################################################################## 100.0%⇒pouring Go-1.10.3.sierra.bottle.tar.gz⇒caveatsa valid Gopath is required to use the ' Go get ' command. If $GOPATH is not specified, $HOME/go'll be used by Default:[https://golang.org/doc/code.html#gopath] (https:// Golang.org/doc/code.html#gopath) wish to add the Goroot-based install location to your path:export path=[image upload failed ... ( image-48625e-1532350472293)]{path} "Liuyuelin@liuyuelindemacbook-pro⮀~⮀export Pathliuyuelin@liuyuelindemacbook-pro⮀~⮀source ~/.bash_profileliuyuelin@liuyuelindemacbook-pro⮀~⮀go Get github.com /beego/bee^[[a^c✘liuyuelin@liuyuelindemacbook-pro⮀~⮀go Get Github.com/beego/beeliuyuelin@liuyuelindemacbook-pro⮀ ~⮀go Get Github.com/astaxie/beego^c✘liuyuelin@liuyuelindemacbook-pro⮀~⮀go Get GITHUB.COM/ASTAXIE/BEEGOLIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~⮀CD go/srcli Uyuelin@liuyuelindemacbook-pro⮀~/go/src⮀bee run QUICSTART2018/07/23 20:25:41 ERROR 0001 You need to set GOPATH Enviro Nment variable* * *| ***\| |*/ / _**  ***|***\ / *\ / *\| |*/ /| **/| **/_**_/ \***| ___|  V1.10.02018/07/23 20:25:41 FATAL 0002 gopath environment variable is not set or Empty✘liuyuelin@liuyuelindemacbook-pro⮀ ~/GO/SRC⮀CD. LIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~/GO⮀CD. Liuyuelin@liuyuelindemacbook-pro⮀~⮀ls2+3*4 Movies get-pip.pyapplications Music gocreative Cloud Files Pictures Hellowo Rlddesktop public nofly.txtdocuments abc.txt oddindex.mdownloads bcaon.txt simpson.mflush Eclipse Styles.lessideaprojects eclipse-workspace Baidu Cloud synchronization Disk Library FIRST_APPLIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~⮀CD Goliuyuelin@liuyuelindemacbook-pro⮀~/go⮀lsbin Pkg SRCLIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~/GO⮀CD. Liuyuelin@liuyuelindemacbook-pro⮀~⮀go get gitHub.com/beego/beeliuyuelin@liuyuelindemacbook-pro⮀~⮀go Get github.com/astaxie/ BEEGOLIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~⮀CD GOLIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~/GO⮀CD BINLIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~/GO/BIN⮀LSBEELIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~/GO/BIN⮀CD. LIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~/GO⮀CD Pkgliuyuelin@liuyuelindemacbook-pro⮀~/go/pkg⮀lsdarwin_ AMD64LIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~/GO/PKG⮀CD. Liuyuelin@liuyuelindemacbook-pro⮀~/go⮀cs Srczsh:command not FOUND:CS✘LIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~/GO⮀CD s Rcliuyuelin@liuyuelindemacbook-pro⮀~/go/src⮀lsgithub.com golang.org gopkg.inliuyuelin@liuyuelindemacbook-pro⮀~/ GO/SRC⮀CD. LIUYUELIN@LIUYUELINDEMACBOOK-PRO⮀~/GO⮀CD. Liuyuelin@liuyuelindemacbook-pro⮀~⮀go Get Github.com/beego/beeliuyuelin@liuyuelindemacbook-pro⮀~⮀man beegoNo Manua L entry for Beego✘liuyuelin@liuyuelindemacbook-pro⮀~⮀go get github.com/beego/beeliuyuelin@liuyuelindemacbook-pro⮀~ ⮀go get GitHub.Com/beego/beeliuyuelin@liuyuelindemacbook-pro⮀~⮀go Get Github.com/astaxie/beegoliuyuelin@liuyuelindemacbook-pro⮀ ~⮀CD Go/srcliuyuelin@liuyuelindemacbook-pro⮀~/go/src⮀bee Run QUICSTART2018/07/23 20:28:47 ERROR 0001 you need to SE T Gopath Environment variable* * *| ***\| |*/ / _**  ***|***\ / *\ / *\| |*/ /| **/| **/_**_/ \***| ___|  V1.10.02018/07/23 20:28:47 FATAL 0002 gopath environment variable is not set or Empty✘liuyuelin@liuyuelindemacbook-pro⮀ ~/go/src⮀echo $PATH "/users/liuyuelin/.npm-global/bin/:/users/liuyuelin/go/bin:/users/liuyuelin/.npm-global/bin :/users/liuyuelin/.rvm/gems/ruby-2.3.3/bin:/users/liuyuelin/.rvm/gems/ruby-2.3.3@global/bin:/users/liuyuelin/. Rvm/rubies/ruby-2.3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/users/liuyuelin/.rvm/bin " Liuyuelin@liuyuelindemacbook-pro⮀~/go/src⮀echo $GOPATHliuyuelin @liuyuelindemacbook-pro⮀~/go/src⮀pwd/users/ Liuyuelin/go/srcliuyuelin@liuyuelindemacbook-pro⮀~/go/src⮀export Gopath=/users/liuyuelin/goliuyUelin@liuyuelindemacbook-pro⮀~/go/src⮀echo $GOPATH/users/liuyuelin/goliuyuelin@liuyuelindemacbook-pro⮀~/go/src⮀ Bee Run quicstart* * *| ***\| |*/ / _**  ***|***\ / *\ / *\| |*/ /| **/| **/_**_/ \***| ___|  V1.10.02018/07/23 20:41:29 FATAL 0001 No application ' Quicstart ' found in your Gopath✘liuyuelin@liuyuelindemacbook-pro⮀ ~/go/src⮀bee New quickstarte* * *| ***\| |*/ / _**  ***|***\ / *\ / *\| |*/ /| **/| **/_**_/ \***| ___| V1.10.02018/07/23 20:44:54 INFO 0001 Creating application...create/users/liuyuelin/go/src/quickstarte/create/users/ Liuyuelin/go/src/quickstarte/conf/create/users/liuyuelin/go/src/quickstarte/controllers/create/users/liuyuelin /go/src/quickstarte/models/create/users/liuyuelin/go/src/quickstarte/routers/create/users/liuyuelin/go/src/ quickstarte/tests/create/users/liuyuelin/go/src/quickstarte/static/create/users/liuyuelin/go/src/quickstarte/ Static/js/create/users/liuyuelin/go/src/quickstarte/static/css/create/users/liuyuelin/go/src/quickstarte/static/img/create/users/liuyuelin/go/src/quickstarte/views/create/users/liuyuelin/go/src/quickstarte/conf/ app.confcreate/users/liuyuelin/go/src/quickstarte/controllers/default.gocreate/users/liuyuelin/go/src/ quickstarte/views/index.tplcreate/users/liuyuelin/go/src/quickstarte/routers/router.gocreate/users/liuyuelin/ GO/SRC/QUICKSTARTE/TESTS/DEFAULT_TEST.GOCREATE/USERS/LIUYUELIN/GO/SRC/QUICKSTARTE/MAIN.GO2018/07/23 20:44:54 SUCCESS 0002 New Application successfully created!liuyuelin@liuyuelindemacbook-pro⮀~/go/src⮀bee run quicstart* * *| ***\| |*/ / _**  ***|***\ / *\ / *\| |*/ /| **/| **/_**_/ \***| ___|  V1.10.02018/07/23 20:45:00 FATAL 0001 No application ' Quicstart ' found in your Gopath✘liuyuelin@liuyuelindemacbook-pro⮀ ~/go/src⮀bee Run quickstarte* * *| ***\| |*/ / _**  ***|***\ / *\ / *\| |*/ /| **/| **/_**_/ \***| ___| V1.10.02018/07/23 20:45:37 info 0001 Using ' quickstarte ' as ' appname ' 2018/07/23 20:45:37 info 0002 Initializing Watcher ... Quickstarte/controllersquickstARTE/ROUTERSQUICKSTARTE2018/07/23 20:45:39 SUCCESS 0003 Built successfully!2018/07/23 20:45:39 INFO 0004 Restarting ' qui Ckstarte ' ... 2018/07/23 20:45:39 SUCCESS 0005 './quickstarte ' is running ... 2018/07/23 20:45:39.738 [I] [asm_amd64.s:2361] HTTP server Running on [http://:8080] (http://:8080/) 2018/07/23 20:46:32.926 [D] [server.go:2694] | :: 1| 200 | 1.7958ms| match| GET/R:/2018/07/23 20:46:32.956 [D] [server.go:2694] | :: 1| 200 | 175.803µs| match| GET/STATIC/JS/RELOAD.MIN.JS2018/07/23 20:46:32.987 [D] [server.go:2694] | :: 1| 404 | 375.565µs| nomatch| Get/favicon.ico

Cause of Error:
1+ setting $gopath
No new project
The name of the project is wrong

Liu Yuelin
Written in Shayang, Hubei province
2018/07/23

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.