TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

dylib (/usr/local/lib/libtaos.dylib) was built for newer macOS version (12.0) than being linked (10.15)

Open kevinhfcai opened this issue 2 years ago • 4 comments

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

kevinhfcai avatar Jul 04 '23 14:07 kevinhfcai

遇到同样的问题

526326991 avatar Aug 07 '23 06:08 526326991

尝试下本地编译吧

526326991 avatar Aug 07 '23 06:08 526326991

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

mirandole avatar Jan 26 '24 08:01 mirandole

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

mirandole avatar Jan 26 '24 12:01 mirandole

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 .

HtwoO avatar Apr 21 '24 08:04 HtwoO