{"action":"created","issue":{"url":"https://api.github.com/repos/astaxie/beego/issues/2925","repository_url":"https://api.github.com/repos/astaxie/beego","labels_url":"https://api.github.com/repos/astaxie/beego/issues/2925/labels{/name}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/2925/comments","events_url":"https://api.github.com/repos/astaxie/beego/issues/2925/events","html_url":"https://github.com/astaxie/beego/issues/2925","id":272887410,"number":2925,"title":"go get -u github.com/astaxie/beego  安装出错,求解决","user":{"login":"yuandong17","id":12396993,"avatar_url":"https://avatars2.githubusercontent.com/u/12396993?v=4","gravatar_id":"","url":"https://api.github.com/users/yuandong17","html_url":"https://github.com/yuandong17","followers_url":"https://api.github.com/users/yuandong17/followers","following_url":"https://api.github.com/users/yuandong17/following{/other_user}","gists_url":"https://api.github.com/users/yuandong17/gists{/gist_id}","starred_url":"https://api.github.com/users/yuandong17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuandong17/subscriptions","organizations_url":"https://api.github.com/users/yuandong17/orgs","repos_url":"https://api.github.com/users/yuandong17/repos","events_url":"https://api.github.com/users/yuandong17/events{/privacy}","received_events_url":"https://api.github.com/users/yuandong17/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-10T10:29:46Z","updated_at":"2017-11-10T11:32:24Z","closed_at":"2017-11-10T10:34:55Z","author_association":"NONE","body":"go get -u github.com/astaxie/beego\r\n# github.com/astaxie/beego/utils\r\ngolib/src/github.com/astaxie/beego/utils/mail.go:407:20: error: reference to undefined identifier ‘sync.Pool’\r\n var bufPool = sync.Pool{\r\n                    ^\r\ngolib/src/github.com/astaxie/beego/utils/mail.go:407:24: error: expected ‘;’ or newline after top level declaration\r\n var bufPool = sync.Pool{\r\n                        ^\r\ngolib/src/github.com/astaxie/beego/utils/mail.go:410:2: error: expected declaration\r\n  },\r\n  ^\r\ngolib/src/github.com/astaxie/beego/utils/utils.go:13:29: error: reference to undefined identifier ‘strings.Compare’\r\n  if gopath == \"\" && strings.Compare(runtime.Version(), \"go1.8\") >= 0 {\r\n                             ^\r\n# github.com/astaxie/beego/logs\r\ngolib/src/github.com/astaxie/beego/logs/log.go:139:17: error: reference to undefined identifier ‘sync.Pool’\r\n var logMsgPool *sync.Pool\r\n                 ^\r\ngolib/src/github.com/astaxie/beego/logs/log.go:169:21: error: reference to undefined identifier ‘sync.Pool’\r\n  logMsgPool = &sync.Pool{\r\n                     ^\r\ngolib/src/github.com/astaxie/beego/logs/log.go:169:25: error: expected ‘;’ or ‘}’ or newline\r\n  logMsgPool = &sync.Pool{\r\n                         ^\r\ngolib/src/github.com/astaxie/beego/logs/log.go:170:27: error: expected ‘;’ or newline after top level declaration\r\n   New: func() interface{} {\r\n                           ^\r\ngolib/src/github.com/astaxie/beego/logs/log.go:172:3: error: expected declaration\r\n   },\r\n   ^\r\ngolib/src/github.com/astaxie/beego/logs/log.go:174:2: error: expected declaration\r\n  bl.wg.Add(1)\r\n  ^\r\ngolib/src/github.com/astaxie/beego/logs/log.go:175:2: error: expected declaration\r\n  go bl.startLogger()\r\n  ^\r\ngolib/src/github.com/astaxie/beego/logs/log.go:176:2: error: expected declaration\r\n  return bl\r\n  ^\r\ngolib/src/github.com/astaxie/beego/logs/log.go:177:1: error: expected declaration\r\n }\r\n ^\r\ngolib/src/github.com/astaxie/beego/logs/log.go:170:25: error: missing return at end of function\r\n   New: func() interface{} {\r\n                         ^\r\n\r\n出现这个问题 怎么解决呢 有知道的吗"},"comment":{"url":"https://api.github.com/repos/astaxie/beego/issues/comments/343450315","html_url":"https://github.com/astaxie/beego/issues/2925#issuecomment-343450315","issue_url":"https://api.github.com/repos/astaxie/beego/issues/2925","id":343450315,"user":{"login":"yuandong17","id":12396993,"avatar_url":"https://avatars2.githubusercontent.com/u/12396993?v=4","gravatar_id":"","url":"https://api.github.com/users/yuandong17","html_url":"https://github.com/yuandong17","followers_url":"https://api.github.com/users/yuandong17/followers","following_url":"https://api.github.com/users/yuandong17/following{/other_user}","gists_url":"https://api.github.com/users/yuandong17/gists{/gist_id}","starred_url":"https://api.github.com/users/yuandong17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuandong17/subscriptions","organizations_url":"https://api.github.com/users/yuandong17/orgs","repos_url":"https://api.github.com/users/yuandong17/repos","events_url":"https://api.github.com/users/yuandong17/events{/privacy}","received_events_url":"https://api.github.com/users/yuandong17/received_events","type":"User","site_admin":false},"created_at":"2017-11-10T11:32:24Z","updated_at":"2017-11-10T11:32:24Z","author_association":"NONE","body":" thinks  !!  @astaxie \r\n已解决,情况是这样的; \r\n今天在部署服务器,版本Ubuntu14.14的,apt golang  只是1.2  为了保持与本地的go版本1.9.2,选择了源码安装;\r\n出现这个问题 安装的go版本 也是1.9.2  是参照 https://github.com/northbright/Notes/blob/master/Golang/china/install-go1.6-from-source-on-centos7-in-china.md\r\nclone了一个git库  checkout 1.9.2来进行安装的,安装也出现了\"ALL TESTS PASSED\"字样,安装beego,结果就是上面那样;\r\n\r\n后面去https://studygolang.com/  下载了一个 linux的集成包\r\n同样是1.9.2  从新解压 -> ./all.bash -> 配置环境变量 后,安装beego结果成功了...   \r\n\r\n"}}
{"actor":{"display_login":"yuandong17"}}