-
Notifications
You must be signed in to change notification settings - Fork 3
Description
我的环境是:centos7.5,安装了git和go,配置了$GOROOT和$GOPATH。但是执行make命令时失败了。错误信息如下:
[root@vm16 lua-antpath-1.0.1]# make
get from internet
--2019-06-28 10:53:51-- https://raw.githubusercontent.com/vibrantbyte/go-antpath/v1.1/antpath.go
正在解析主机 raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.108.133
正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|151.101.108.133|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1901 (1.9K) [text/plain]
正在保存至: “antpath.go”
100%[=========================================================================>] 1,901 --.-K/s 用时 0s
2019-06-28 10:53:53 (127 MB/s) - 已保存 “antpath.go” [1901/1901])
--2019-06-28 10:53:53-- https://raw.githubusercontent.com/vibrantbyte/lua2go/v1.0/lua/lua2go.lua
正在解析主机 raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.108.133
正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|151.101.108.133|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:5135 (5.0K) [text/plain]
正在保存至: “lua2go.lua”
100%[=========================================================================>] 5,135 --.-K/s 用时 0.1s
2019-06-28 10:53:55 (36.9 KB/s) - 已保存 “lua2go.lua” [5135/5135])
execute script
go build -ldflags "-s -w" -buildmode=c-shared -o libcgoantpath.so ./antpath.go
antpath.go:8:2: cannot find package "github.com/vibrantbyte/go-antpath/antpath" in any of:
/usr/software/go/src/github.com/vibrantbyte/go-antpath/antpath (from $GOROOT)
/usr/software/go/bin/src/github.com/vibrantbyte/go-antpath/antpath (from $GOPATH)
make: *** [build] 错误 1
求解!