新建文件夹 mingw
将 MinGW.zip 解压到mingw目录下,进入mingw\lib目录下
新建文件夹pkg-config
执行命令 go get github.com/wendal/go-oci8
将github.com\wendal\go-oci8\windows文件夹下的oci8.pc文件拷贝到当前pkg-config文件夹下并修改文件内容如下
### 异常总结
1 当报该异常时,请升级golang的编译版本,该方法需要1.8版本
- gopkg.in\kataras\iris.v6\response_writer.go:65: undefined: http.Pusher
2 当报该异常时,是本地oracle客户端版本不匹配,可以下载一个对应的
- C:/mingw/bin/..b/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
- skipping incompatible C:/javaTool/oracle/instantclient_11_2/oci.dll when searching for -loci
- C:/mingw/bin/..b/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
- skipping incompatible C:/javaTool/oracle/instantclient_11_2/oci.dll when searching for -loci
- C:/mingw/bin/..b/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -loci
- collect2.exe: error: ld returned 1 exit status