Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用golang客户端报错 #66

Closed
xiao9878 opened this issue Dec 23, 2021 · 5 comments
Closed

使用golang客户端报错 #66

xiao9878 opened this issue Dec 23, 2021 · 5 comments

Comments

@xiao9878
Copy link

使用dirver-go的样例代码进行测试,无法通过编译,报错如下:

# github.com/taosdata/driver-go/v2/wrapper
D:\Develop\go\pkg\mod\github.com\taosdata\driver-go\v2@v2.0.0\wrapper\field.go:4:10: fatal error: taos.h: No such file or directory
 #include <taos.h>
          ^~~~~~~~
compilation terminated.

环境是:Windows11 go版本为:1.17.3
使用mac编译也是相同的报错

@sangshuduo
Copy link
Contributor

需要按照 TDengine server 或 TDengine client 安装包,或者自己源码编译 TDengine 并安装

@xiao9878
Copy link
Author

image
安装也会报这样的错,需要用客户端的主机在此之前需要做什么准备工作吗

@sangshuduo
Copy link
Contributor

参考: #43

@xiao9878
Copy link
Author

image
emmm...尝试使用win分支也是相同的报错

@xiao9878
Copy link
Author

不好意思,之前没下驱动...问题解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants