When I use the “csv.from()”, it’s an error: error in csv.from(): csv.from() failed to read file: filesystem service is uninitialized.
How can I deal with it?
Pit filling!
My boss said that I can’t use a browser to read a local file because of some security policy.
Perhaps I can use a kind of client library.
Or, if I can deal with the overtime problem, I can use the url way.
$ sudo apt-get install -y clang pkg-config # No problem.
$ brew install pkg-config # Not need.
$ go get github.com/influxdata/pkg-config
# Error:can't connect to github.com.
# reason:need use VPN
#tests:1.I can't find a VPN software used in Ubuntu.
# 2.I downloaded the file and cloned it to home/user/go/src/github.com/influxdata
# (I forget how to installed Go, maybe this is the right path, but i can find another 'path /home/user/snap/go',there are only 3 empty folders )
$ export PATH=${GOPATH}/bin:${PATH}
# error: can't find the file.
$ which -a pkg-config
/home/user/go/bin/pkg-config
/usr/bin/pkg-config
#results:/usr/bin/pkg-config
# /bin/pkg-config
$ go build ./cmd/flux
#error:go: go.mod file not found in current directory or any parent directory; see 'go help modules'
$ ./flux repl
Error conclusions:
1.can’t connect to github.com–could download the pkg-config folder manually
2.don’t know where the pkg-config folder shold be cloned to(where is the gopath?)
3.configuration failed