mstkbar.go:227:19: too many errors
omposite literal)
/usr/local/go/src/runtime/mstkbar.go:162:44: undefined: stkbar
/usr/local/go/src/runtime/mstkbar.go:212:4: gp.stkbar undefined (type *g has no field or method stkbar)
/usr/local/go/src/runtime/mstkbar.go:213:15: gp.stkbar undefined (type *g has no field or method stkbar)
/usr/local/go/src/runtime/mstkbar.go:216:23: undefined: stackBarrierPC
/usr/local/go/src/runtime/mstkbar.go:226:28: gp.stkbarPos undefined (type *g has no field or method stkbarPos)
/usr/local/go/src/runtime/mstkbar.go:227:19: gp.stkbarPos undefined (type *g has no field or method stkbarPos)
/usr/local/go/src/runtime/mstkbar.go:248:41: undefined: stkbar
/usr/local/go/src/runtime/mstkbar.go:227:19: too many errors
SOLUTION : you must first delete previous golang install prior to installing new go version
type go    # issue this to confirm where your go lives
a typical output :
go is /usr/local/go/bin/go  # delete /usr/local/go not just /usr/local/go/bin/go
so just remove it
sudo rm -rf /usr/local/go  #  OP's missing step else above errors
before you install new version
wget https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf  go1.9.linux-amd64.tar.gz
                    
                
                
            
        
浙公网安备 33010602011771号