Skip to content

mac3.6客户端驱动找不到taosnative.dylib #30535

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

Open
biduolin opened this issue Mar 27, 2025 · 13 comments
Open

mac3.6客户端驱动找不到taosnative.dylib #30535

biduolin opened this issue Mar 27, 2025 · 13 comments
Labels
bug Something isn't working

Comments

@biduolin
Copy link

macos15.4 taos-jdbc3.6 服务端客户端3.3.6 已对新库仿照老库加了软链

Image
@biduolin biduolin added the bug Something isn't working label Mar 27, 2025
@biduolin
Copy link
Author

调用c本地方法的差异:3358客户端connectImp会返回图中的长整型 360客户端会返回0

Image

@biduolin
Copy link
Author

jdk20+可以解决macos15找不到库,但是打出的dist驱动包依然不行,所以最终妥协办法是:linux服务器安装3363包,再专门源码3363a编译taosd,mac客户端使用6041连taosadapter

Image

@freemine
Copy link
Contributor

freemine commented Apr 19, 2025

我还是没想明白,为什么java.version的不一致,最终会导致在native connectImpl可以被调用,但是却执行失败,而不是在调用connectImpl的这一刻,由jdk runtime抛出java异常。

@freemine
Copy link
Contributor

注意到warning message中有提到
使用--enable-native-access=ALL-UNNAMED去启动java应用程序的提示,可以尝试看看是否可以解决。

@tomchon
Copy link
Contributor

tomchon commented Apr 21, 2025

@DuanKuanJun @sheyanjie-qq 你们可以回复下

@sheyanjie-qq
Copy link
Contributor

This issue will be fixed in next Community Edition.

@sheyanjie-qq
Copy link
Contributor

问题原因是 mac 系统下,libtaos 加载 libtaosnative,找的路径不全,需要加上安装路径。

@Qiaofanxing
Copy link

添加环境变量:DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib;TD_LIBRARY_PATH=/usr/local/lib/

@yyszq1
Copy link

yyszq1 commented Apr 25, 2025

我和你一样的报错,你解决了么?你为何创建软连? 目前/opt/homebrew/Cellar/tdengine/3.3.6.0/driver 下有文件libtaos.3.3.6.0.dylib libtaosws.dylib
libtaosnative.3.3.6.0.dylib /usr/local/lib 下有文件 libtaos.1.dylib libtaosnative.1.dylib libtaosws.dylib
libtaos.dylib libtaosnative.dylib

@Qiaofanxing
Copy link

我和你一样的报错,你解决了么?你为何创建软连? 目前/opt/homebrew/Cellar/tdengine/3.3.6.0/driver 下有文件libtaos.3.3.6.0.dylib libtaosws.dylib libtaosnative.3.3.6.0.dylib /usr/local/lib 下有文件 libtaos.1.dylib libtaosnative.1.dylib libtaosws.dylib libtaos.dylib libtaosnative.dylib

不用创建软连接,添加DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib;TD_LIBRARY_PATH=/usr/local/lib/ 就行。Mac OS在2023年之后,/usr/local/lib:/usr/lib不再是DYLD_FALLBACK_LIBRARY_PATH的默认值,你可以试试

@yyszq1
Copy link

yyszq1 commented Apr 25, 2025

哎。手快已经创建了软链,清不掉了,然后添加了配置,依然没有用啊

Image

Image

@Qiaofanxing
Copy link

哎。手快已经创建了软链,清不掉了,然后添加了配置,依然没有用啊

Image

Image

Image在IDEA里面试试呢?

@yyszq1
Copy link

yyszq1 commented Apr 25, 2025

好了,感谢感谢感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants