Closed RingXu999 closed 8 years ago
i think know what leads this problem.
because the api_unix code go to the /opt/local/include to find the header files
and my unixodbc setup in /usr/local path . then i copy the unixodbc files to the opt path and the
problem solved. so lucky haha. Apology for my thoughtless~ ^ ^
Apology for my thoughtless
No worries.
Alex
@alexbrainman FYI for Centos 7 users - to "go get" the odbc package without this sql.h 'file not found' error occurring, as a prerequisite you will need the unixODBC-devel RPM installed, who's version must match the unixODBC RPM (yum takes care of this.) Might be worth mentioning this on https://github.com/alexbrainman/odbc/wiki/InstallingUnixODBC
edit: I updated the wiki page, specifically the Fedora section (it's the same as Centos) - hope you don't mind :-)
edit: I updated the wiki page, specifically the Fedora section (it's the same as Centos) - hope you don't mind :-)
I don't mind you changing wiki. I don't use these systems myself, so help from real user always appreciated. Thank you very much.
Alex
github.com/alexbrainman/odbc/api
../../Projects/Go/src/github.com/alexbrainman/odbc/api/api_unix.go:13:11: fatal error: 'sql.h' file not found
include
1 error generated
hello. I am building a projects in OS X 10.11.3 and the above error arise.
seems like the go projects can't find the unixodbc/2.3.4/include/sql.h
but I can find it in the finder . do i miss some configure ?
i have already install the unixodbc in homebrew and install FreeTDS myself.
this problem is driving me crazy and I have no idea how to figure it out . >_<~.