dylib (/usr/local/lib/libtaos.dylib) was built for newer macOS version (12.0) than being linked (10.15)
mac os : 10.15.7 (19H1922) go : go 1.20 TDengine: tdengine/tdengine:latest
test error: /private/var/folders/gc/8jqym2450tqbkbg3cr5nyy1w0000gn/T/GoLand/___go_build_git_code_oa_com_cloud_industry_billing_app dyld: Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv Referenced from: /usr/local/lib/libtaos.1.dylib (which was built for Mac OS X 12.0) Expected in: /usr/lib/libc++.1.dylib
遇到同样的问题
尝试下本地编译吧
I think the cause of this issue is: C++ project was built on a high version macos (12.x +) and not specify -mmacosx-version-min, according to this answer on stackoverflow, it will affect the default choice of C++ STL implementation.
After I specify -mmacosx-version-min=10.15, issue fixed.
see : https://github.com/duckdb/duckdb/issues/3824 https://github.com/duckdb/duckdb/discussions/6307
I manage to resolve this issue on Mac OS 11.7.10 like this :
git clone --branch release/ver-3.2.2.0 https://github.com/taosdata/TDengine.git
mkdir debug && cd debug && cmake .. -DCMAKE_OSX_DEPLOYMENT_TARGET=11.7 && make && sudo make install
for macOS 10.15 try this :
mkdir debug && cd debug && cmake .. -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 && make && sudo make install
The documentation at https://docs.tdengine.com/develop/connect/ should be updated to add prerequisite section about macOS client app installation that TDengine-client-3.2.3.0-macOS-x64.pkg (32.2 M) requires macOS >= 12.0 .