Closed Andrew-liu closed 8 years ago
Looks like you're on macOS 10.12 Sierra. You need to upgrade to Go 1.7 or later.
When I try to install httpstat, I receive this error.
go get -u github.com/davecheney/httpstat
cd .; git clone https://github.com/davecheney/httpstat /root/projects/src/src/github.com/davecheney/httpstat Cloning into '/root/projects/src/src/github.com/davecheney/httpstat'... fatal: unable to access 'https://github.com/davecheney/httpstat/': Peer's Certificate issuer is not recognized. package github.com/davecheney/httpstat: exit status 128
go version
go version go1.7 linux/amd64
Any help ?
What heppens if you run that git clone command manually? That will rule out the go installation.
Check which version of git you have installed, if homebrew has installed something overriding the xcode version it may not be able to correctly resolve ssl certificates
On Tue, 27 Sep 2016, 01:02 FalcoSuessgott notifications@github.com wrote:
When I try to install httpstat, I receive this error.
go get -u github.com/davecheney/httpstat http://github.com/davecheney/httpstat cd .; git clone https://github.com/davecheney/httpstat /root/projects/src/src/github.com/davecheney/httpstat Cloning into '/root/projects/src/src/github.com/davecheney/httpstat'... fatal: unable to access 'https://github.com/davecheney/httpstat/': Peer's Certificate issuer is not recognized. package github.com/davecheney/httpstat: exit status 128
go version go version go1.7 linux/amd64
Any help ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/davecheney/httpstat/issues/69#issuecomment-249596383, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAcA6GYmKohGIVUjHOIqPocPmGNDNDUks5qt95vgaJpZM4KGnYM .
When I upgrade go into version 1.7.1
on macOS 10.12 Sierra, I fix this question. Thanks. @moorereason @davecheney
$ sw_vers [8:54:46]
ProductName: Mac OS X
ProductVersion: 10.12
$ go version [8:53:13]
go version go1.7.1 darwin/amd64
but, What a pity.
$ httpstat https://example.com/ [8:58:43]
zsh: command not found: httpstat
Is $GOPATH/bin in your $PATH?
On Wed, Sep 28, 2016 at 10:59 AM, Andrew-liu notifications@github.com wrote:
When I upgrade go into version 1.7.1 on macOS 10.12 Sierra, I fix this question. Thanks. @moorereason https://github.com/moorereason @davecheney https://github.com/davecheney
$ sw_vers [8:54:46] ProductName: Mac OS X ProductVersion: 10.12
$ go version [8:53:13] go version go1.7.1 darwin/amd64
but, What a pity.
$ httpstat https://example.com/ [8:58:43] zsh: command not found: httpstat
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davecheney/httpstat/issues/69#issuecomment-250043350, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAcAxI-URPSny6MO8qZ8H3zQB7wPAA8ks5qubvzgaJpZM4KGnYM .
I have set env variable for golang in ~/.zshrc
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOROOT/bin
@Andrew-liu use this command:
export GOBIN="$GOPATH/bin"
export PATH=$PATH:$GOBIN
go install
or go get
(which calls go install
on the source it just cloned) will place the binary in $GOPATH/bin
. To make your life easy, you should place that location in your $PATH
.
I'm going to close this issue now as there is no httpstat bug to address. Thank you.
When I use installation command, I failed.
I install
go
using homebrew