fatal error: oci.h: No such file or directory

4.2k views Asked by At

go version go1.8.1 windows/amd64 when I tried go get for oracle library

go get -v gopkg.in/rana/ora.v4
output: 
**gopkg.in/rana/ora.v4
# gopkg.in/rana/ora.v4
F:\CODING\src\gopkg.in\rana\ora.v4\bndBfile.go:9:10: fatal error: oci.h: No such file or directory
 #include <oci.h>
          ^~~~~~~
compilation terminated.**

and

**go get github.com/mattn/go-oci8
# github.com/mattn/go-oci8
F:\CODING\src\github.com\mattn\go-oci8\oci8.go:4:10: fatal error: oci.h: No such file or directory
 #include <oci.h>
          ^~~~~~~
compilation terminated.**

now when I type pkg-config --cflags --libs oci8 I get following result which means oci8.pc is working fine

-IC:instantclient_12_2sdkinclude -IC:mingw64include  -LC:instantclient_12_2sdklibmsvc -LC:mingw64lib -loci

please suggest whats going wrong oci8.pc

prefix=/devel/target/1.0
exec_prefix=${prefix}
oralib=C:\instantclient_12_2\sdk\lib\msvc
orainclude=C:\instantclient_12_2\sdk\include
gcclib=C:\mingw64\lib
gccinclude=C:\mingw64\include
glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums

Name: oci8
Version: 12.2
Description: oci8 library
Libs: -L${oralib} -L${gcclib} -loci
Libs.private: 
Cflags: -I${orainclude} -I${gccinclude}
0

There are 0 answers