我正在尝试按照这些说明安装 Oracle Driver for Go (go-oci8)
我面临的问题是 $GOPATH 环境变量。当我执行命令时:
sudo go get github.com/mattn/go-oci8
我收到错误:
cannot download, $GOPATH not set. For more details see: go help gopath
但是,我正确设置了 GOPATH。我的环境是这样的:
env | grep GO
GOARCH=amd64
GOROOT=/usr/local/go
GOOS=linux
GOPATH=/home/myuser/go/
ls $GOPATH
bin pkg src
HUH函数
相关分类