gonum.org issue
KhenfouciYa opened this issue · 8 comments
Good Morning,
I think i have gonum.org package installation issue and i don't know how i can fix it any idea please
my go vresion is go version go1.14.1 linux/amd64
thank you
What are you trying to do?
What did you do?
What did you expect to happen?
What actually happened?
What version of Go and Gonum are you using?
Does this issue reproduce with the current master?
There is not enough information here to be able to properly diagnose the problem, but I suspect that you are attempting to install gonum/plot while in GOPATH mode. We don't support that, so you will need to ensure that you are in module mode. If that is not the problem, then you will need to provide more information (the template would help with this).
I suspect that you are attempting to do this in GOPATH mode which we don't support. Please paste the text output of go version
and go env
(no images please). You can also try running GO111MODULE=on go get gonum.org/v1/plot
to see if that fixes the problem.
(base) khenfouci@khenfouci-Inspiron-5570:$ GO111MODULE=on$ go get gonum.org/v1/plot
(base) khenfouci@khenfouci-Inspiron-5570:
gonum.org/v1/plot/font
go/src/gonum.org/v1/plot/font/font.go:93:8: undefined: opentype.Font
go/src/gonum.org/v1/plot/font/font.go:184:18: undefined: opentype.Font
go/src/gonum.org/v1/plot/font/font.go:200:28: undefined: opentype.Font
go/src/gonum.org/v1/plot/font/font.go:210:25: undefined: opentype.Font
go/src/gonum.org/v1/plot/font/font.go:221:28: undefined: opentype.Font
go/src/gonum.org/v1/plot/font/font.go:263:35: undefined: opentype.Font
(base) khenfouci@khenfouci-Inspiron-5570:$ go version$ go env
go version go1.14.1 linux/amd64
(base) khenfouci@khenfouci-Inspiron-5570:
GO111MODULE=""
GOARCH="amd64"
GOBIN="/home/khenfouci/go/bin"
GOCACHE="/home/khenfouci/.cache/go-build"
GOENV="/home/khenfouci/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/khenfouci/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="/home/khenfouci/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ar"
CC="/home/khenfouci/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc"
CXX="/home/khenfouci/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build481625587=/tmp/go-build -gno-record-gcc-switches"
Please try again with GO111MODULE=on go get gonum.org/v1/plot
all on the same line, or export GO111MODULE=on
before executing go get.
thanks for your response actually it 's working but i my code shoud be on my go env
So can this be closed?