dnsproxy icon indicating copy to clipboard operation
dnsproxy copied to clipboard

树莓派编译报错

Open PHCSJC opened this issue 6 years ago • 0 comments

树莓派3B+,编译时报下面的错,老哥怎么解决呢?

root@raspberrypi:/usr/src/aaa/src/github.com/ARwMq9b6/dnsproxy/cmd/dnsproxy# export GOPATH=/usr/src/aaa root@raspberrypi:/usr/src/aaa/src/github.com/ARwMq9b6/dnsproxy/cmd/dnsproxy# make env GOOS=linux GOARCH=arm go build -o target/dnsproxy

github.com/ARwMq9b6/dnsproxy

../../proxyserve.go:283: r.req.URL.Hostname undefined (type *url.URL has no field or method Hostname) ../../proxyserve.go:287: r.req.URL.Hostname undefined (type *url.URL has no field or method Hostname) Makefile:19: recipe for target 'target/dnsproxy' failed make: *** [target/dnsproxy] Error 2 root@raspberrypi:/usr/src/aaa/src/github.com/ARwMq9b6/dnsproxy/cmd/dnsproxy#

PHCSJC avatar Jan 25 '19 01:01 PHCSJC