You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On macOS, when the database is SQLite3, an error occurs as below.
$ ./plant_erd sqlite3 --database development.sqlite3
2019/12/17 09:45:05 Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
So I built on Ubuntu with CGO_ENABLED=1 but an error message was shown.
$ GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build
# os/user
../../../../.goenv/versions/1.13.0/src/os/user/getgrouplist_darwin.go: In function‘mygetgrouplist’:
../../../../.goenv/versions/1.13.0/src/os/user/getgrouplist_darwin.go:16:11: warning: implicit declaration of function‘getgrouplist’; did you mean ‘mygetgrouplist’? [-Wimplicit-function-declaration]
int rv = getgrouplist(user, (int) group, buf, ngroups);
^~~~~~~~~~~~
mygetgrouplist
# net
../../../../.goenv/versions/1.13.0/src/net/cgo_bsd.go:15:72: could not determine kind of name for C.AI_MASK
I suppose that though a cross-compile is required to build go-sqlite3 for darwin, Ubuntu cannot do cross-compile for darwin (or doing so is very difficult).
On macOS, when the database is
SQLite3
, an error occurs as below.$ ./plant_erd sqlite3 --database development.sqlite3 2019/12/17 09:45:05 Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
So I built on Ubuntu with
CGO_ENABLED=1
but an error message was shown.I suppose that though a cross-compile is required to build
go-sqlite3
for darwin, Ubuntu cannot do cross-compile for darwin (or doing so is very difficult).References
I referenced below articles.
Note
Environment
macOS
Ubuntu
The text was updated successfully, but these errors were encountered: