alexbrainman / odbc

odbc driver written in go
BSD 3-Clause "New" or "Revised" License
356 stars 141 forks source link

error when build from linux #176

Closed revoluta closed 2 years ago

revoluta commented 2 years ago

Hello, when i build from linux i get this error:

/root/go/pkg/mod/github.com/alexbrainman/odbc@v0.0.0-20211220213544-9c9a2e61c5e2/api/api_unix.go:15:18: fatal error: sql.h: No such file or directory

this is build from a docker container, could it be that I am missing a package?

revoluta commented 2 years ago

I have found the problem, I answer myself in case it helps someone:

I was missing in the docker base image the one that compiles the project to include the obdc

RUN yum -y install unixODBC unixODBC-devel

I thought that it was only necessary in the final image the one that executes the app

alexbrainman commented 2 years ago

@revoluta

Should you close this issue?

Alex