arduanov / homebrew-clickhouse

ClickHouse for MacOS Sierra and High Sierra.
https://clickhouse.yandex
50 stars 18 forks source link

dyld: Symbol not found: __ZNKSt3_V214error_category10_M_messageB5cxx11Ei #4

Closed sc0rp10 closed 5 years ago

sc0rp10 commented 6 years ago

Hi, tried to install clickhouse on my mac (macOS 10.13.6 (17G65)) and got error:

$ clickhouse-client
dyld: Symbol not found: __ZNKSt3_V214error_category10_M_messageB5cxx11Ei
  Referenced from: /usr/local/bin/clickhouse-client (which was built for Mac OS X 10.13)
  Expected in: /usr/lib/libstdc++.6.0.9.dylib
 in /usr/local/bin/clickhouse-client
sc0rp10 commented 6 years ago

During the install im got error about libc++

Warning: arduanov/clickhouse/clickhouse dependency gmp was built with a different C++ standard
library (libc++ from clang). This may cause problems at runtime.

how should i fix this?

arduanov commented 6 years ago

This should help

brew link --overwrite gcc
iambudi commented 6 years ago

I got this error during install.

CMake Error at CMakeLists.txt:22 (message):
  Submodules are not initialized.  Run

    git submodule update --init --recursive

-- Configuring incomplete, errors occurred!
See also "/tmp/clickhouse-20181015-28266-1kihrbn/build/CMakeFiles/CMakeOutput.log".

cat the log file does not exist.

jbwl commented 5 years ago

This homebrew package is broken for Mac OS 10.14.5 (and maybe earlier). Executing the binaries exits with a missing symbol error.

At install time,

Warning: arduanov/clickhouse/clickhouse dependency gmp was built with a different C++ standard library (libc++ from clang). This may cause problems at runtime.

is shown.

This is not fixed by

brew link --overwrite gcc

because that command only relinks the current gcc version (9.x.x), while it seems that gcc@8 is a dependency.

ernestp commented 5 years ago

So far found no working methods to build clickhouse on mac. Tried tap, build master, build stable with gcc-9. Will try gcc-8, but itis not building on 10.15.1 and xcode 11.1