Open hiwane opened 11 months ago
% which python3
/usr/bin/python3
% find /usr -name Python.h
/usr/include/python3.8/Python.h
% env CGO_CFLAGS=-I/usr/include/python3.8 /usr/lib/go-1.18/bin/go build cmd/ganrac-sage/sagemain.go
# github.com/hiwane/ganrac/cas/sage
cas/sage/sage.go:324:8: could not determine kind of name for C.Py_CompileString
> go build cmd/ganrac-sympy/sympymain.go
build constraints exclude all Go files in
> CGO_ENABLED=1
> go build cmd/ganrac-sympy/sympymain.go
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in
> CC=gcc
> go build cmd/ganrac-sympy/sympymain.go
Python.h: No such file or directory
> CGO_CFLAGS=-I/boo/baa/Python.h