nodefluent / kafka-streams

equivalent to kafka-streams :octopus: for nodejs :sparkles::turtle::rocket::sparkles:
https://nodefluent.github.io/kafka-streams/
MIT License
831 stars 111 forks source link

mac install #129

Open facealone opened 5 years ago

facealone commented 5 years ago

npm install --save kafka-streams --allow-root

node-rdkafka@2.7.0 install /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka node-gyp rebuild

ACTION deps_librdkafka_gyp_librdkafka_target_configure deps/librdkafka/config.h checking for OS or distribution... ok (osx) checking for C compiler from CC env... failed checking for gcc (by command)... ok checking for C++ compiler from CXX env... failed checking for C++ compiler (g++)... ok checking executable ld... ok checking executable nm... ok checking executable objdump... ok checking executable strip... ok checking for debug symbols compiler flag (-g...)... ok checking for pkgconfig (by command)... ok checking for install (by command)... failed checking for PIC (by compile)... ok checking for GNU-compatible linker options... failed checking for OSX linker options... ok checking for GNU linker-script ld flag... failed checking for Solaris linker-script ld flag... failed (ignore) checking for __atomic_32 (by compile)... ok checking for __atomic_64 (by compile)... ok checking for socket (by compile)... ok parsing version '0x01000002'... ok (1.0.0) checking for librt (by pkg-config)... failed checking for librt (by compile)... failed checking for c11threads (by pkg-config)... failed checking for c11threads (by compile)... failed (disable) checking for libpthread (by pkg-config)... failed checking for libpthread (by compile)... ok checking for libdl (by pkg-config)... failed checking for libdl (by compile)... ok checking for zlib (by pkg-config)... ok checking for zlib (by compile)... ok (cached) checking for libcrypto (by pkg-config)... failed checking for libcrypto (by compile)... failed (disable) checking for libzstd (by pkg-config)... ok checking for libzstd (by compile)... ok (cached) checking for libm (by pkg-config)... failed checking for libm (by compile)... ok checking for liblz4 (by pkg-config)... ok checking for liblz4 (by compile)... ok (cached) checking for rapidjson (by compile)... failed (disable) checking for libssl (by pkg-config)... ok checking for libssl (by compile)... ok (cached) checking for libsasl2 (by pkg-config)... failed checking for libsasl2 (by compile)... ok checking for crc32chw (by compile)... ok checking for regex (by compile)... ok checking for strndup (by compile)... ok checking for strerror_r (by compile)... ok checking for pthread_setname_gnu (by compile)... failed (disable) checking for nm (by env NM)... ok (cached) Generated Makefile.config Generated config.h

Configuration summary: prefix /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps ARCH x86_64 CPU generic GEN_PKG_CONFIG y ENABLE_DEVEL n ENABLE_VALGRIND n ENABLE_REFCNT_DEBUG n ENABLE_SHAREDPTR_DEBUG n ENABLE_LZ4_EXT y ENABLE_SSL y ENABLE_SASL y libdir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps MKL_APP_NAME librdkafka MKL_APP_DESC_ONELINE The Apache Kafka C/C++ library LDFLAGS -L/Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps MKL_DISTRO osx SOLIB_EXT .dylib CC gcc CXX g++ LD ld NM nm OBJDUMP objdump STRIP strip CPPFLAGS -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align PKG_CONFIG pkg-config INSTALL install LIB_LDFLAGS -shared -dynamiclib -Wl,-install_name,$(DESTDIR)$(libdir)/$(LIBFILENAME) RDKAFKA_VERSION_STR 1.0.0 MKL_APP_VERSION 1.0.0 LIBS -lsasl2 -L/usr/local/Cellar/openssl/1.0.2s/lib -lssl -L/usr/local/Cellar/lz4/1.9.2/lib -llz4 -lm -L/usr/local/Cellar/zstd/1.4.3//lib -lzstd -lz -ldl -lpthread CFLAGS -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include CXXFLAGS -Wno-non-virtual-dtor SYMDUMPER $(NM) -g exec_prefix /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps bindir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/bin sbindir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/sbin libexecdir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/libexec datadir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/share sysconfdir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/etc sharedstatedir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/com localstatedir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/var includedir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/include infodir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/info mandir /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/man Generated config.cache

Now type 'make' to build TOUCH 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate ACTION deps_librdkafka_gyp_librdkafka_target_build_dependencies 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka.c -o rdkafka.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_broker.c -o rdkafka_broker.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_msg.c -o rdkafka_msg.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_topic.c -o rdkafka_topic.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_conf.c -o rdkafka_conf.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_timer.c -o rdkafka_timer.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_offset.c -o rdkafka_offset.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_transport.c -o rdkafka_transport.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_buf.c -o rdkafka_buf.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_queue.c -o rdkafka_queue.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_op.c -o rdkafka_op.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_request.c -o rdkafka_request.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_cgrp.c -o rdkafka_cgrp.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_pattern.c -o rdkafka_pattern.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_partition.c -o rdkafka_partition.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_subscription.c -o rdkafka_subscription.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_assignor.c -o rdkafka_assignor.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_range_assignor.c -o rdkafka_range_assignor.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_roundrobin_assignor.c -o rdkafka_roundrobin_assignor.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_feature.c -o rdkafka_feature.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdcrc32.c -o rdcrc32.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c crc32c.c -o crc32c.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdmurmur2.c -o rdmurmur2.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdaddr.c -o rdaddr.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdrand.c -o rdrand.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdlist.c -o rdlist.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c tinycthread.c -o tinycthread.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c tinycthread_extra.c -o tinycthread_extra.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdlog.c -o rdlog.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdstring.c -o rdstring.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_event.c -o rdkafka_event.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_metadata.c -o rdkafka_metadata.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdregex.c -o rdregex.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdports.c -o rdports.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_metadata_cache.c -o rdkafka_metadata_cache.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdavl.c -o rdavl.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_sasl.c -o rdkafka_sasl.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_sasl_plain.c -o rdkafka_sasl_plain.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_interceptor.c -o rdkafka_interceptor.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_msgset_writer.c -o rdkafka_msgset_writer.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_msgset_reader.c -o rdkafka_msgset_reader.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_header.c -o rdkafka_header.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_admin.c -o rdkafka_admin.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_aux.c -o rdkafka_aux.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_background.c -o rdkafka_background.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_idempotence.c -o rdkafka_idempotence.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdvarint.c -o rdvarint.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdbuf.c -o rdbuf.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdunittest.c -o rdunittest.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_sasl_cyrus.c -o rdkafka_sasl_cyrus.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_sasl_scram.c -o rdkafka_sasl_scram.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c snappy.c -o snappy.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdgz.c -o rdgz.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_zstd.c -o rdkafka_zstd.o rdkafka_zstd.c:151:2: warning: "libzstd not linked statically (or zstd version < 1.2.1): decompression in consumer may be more costly due to decompressed size not included in header by librdkafka producer" [-W#warnings]

warning "libzstd not linked statically (or zstd version < 1.2.1): decompression in consumer may be more costly due to decompresse...

^ 1 warning generated. gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdhdrhistogram.c -o rdhdrhistogram.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_lz4.c -o rdkafka_lz4.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -O3 -c xxhash.c -o xxhash.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rddl.c -o rddl.o gcc -MD -MP -gstrict-dwarf -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I/usr/local/Cellar/zstd/1.4.3//include -I/usr/local/Cellar/lz4/1.9.2/include -I/usr/local/Cellar/openssl/1.0.2s/include -c rdkafka_plugin.c -o rdkafka_plugin.o Creating shared library librdkafka.1.dylib gcc -L/Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps -shared -dynamiclib -Wl,-install_name,/Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka/build/deps/librdkafka.1.dylib rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_conf.o rdkafka_timer.o rdkafka_offset.o rdkafka_transport.o rdkafka_buf.o rdkafka_queue.o rdkafka_op.o rdkafka_request.o rdkafka_cgrp.o rdkafka_pattern.o rdkafka_partition.o rdkafka_subscription.o rdkafka_assignor.o rdkafka_range_assignor.o rdkafka_roundrobin_assignor.o rdkafka_feature.o rdcrc32.o crc32c.o rdmurmur2.o rdaddr.o rdrand.o rdlist.o tinycthread.o tinycthread_extra.o rdlog.o rdstring.o rdkafka_event.o rdkafka_metadata.o rdregex.o rdports.o rdkafka_metadata_cache.o rdavl.o rdkafka_sasl.o rdkafka_sasl_plain.o rdkafka_interceptor.o rdkafka_msgset_writer.o rdkafka_msgset_reader.o rdkafka_header.o rdkafka_admin.o rdkafka_aux.o rdkafka_background.o rdkafka_idempotence.o rdvarint.o rdbuf.o rdunittest.o rdkafka_sasl_cyrus.o rdkafka_sasl_scram.o snappy.o rdgz.o rdkafka_zstd.o rdhdrhistogram.o rdkafka_lz4.o xxhash.o rddl.o rdkafka_plugin.o -o librdkafka.1.dylib -lsasl2 -L/usr/local/Cellar/openssl/1.0.2s/lib -lssl -L/usr/local/Cellar/lz4/1.9.2/lib -llz4 -lm -L/usr/local/Cellar/zstd/1.4.3//lib -lzstd -lz -ldl -lpthread Undefined symbols for architecture x86_64: "_CRYPTO_get_locking_callback", referenced from: _rd_kafka_transport_ssl_term in rdkafka_transport.o _rd_kafka_transport_ssl_init in rdkafka_transport.o "_CRYPTO_num_locks", referenced from: _rd_kafka_transport_ssl_init in rdkafka_transport.o "_CRYPTO_set_id_callback", referenced from: _rd_kafka_transport_ssl_term in rdkafka_transport.o _rd_kafka_transport_ssl_init in rdkafka_transport.o "_CRYPTO_set_locking_callback", referenced from: _rd_kafka_transport_ssl_term in rdkafka_transport.o _rd_kafka_transport_ssl_init in rdkafka_transport.o "_ERR_clear_error", referenced from: _rd_kafka_transport_send in rdkafka_transport.o _rd_kafka_transport_recv in rdkafka_transport.o _rd_kafka_transport_io_serve in rdkafka_transport.o "_ERR_error_string_n", referenced from: _rd_kafka_ssl_error in rdkafka_transport.o "_ERR_get_error_line_data", referenced from: _rd_kafka_ssl_error in rdkafka_transport.o "_ERR_peek_error", referenced from: _rd_kafka_transport_ssl_io_update in rdkafka_transport.o "_ERR_remove_thread_state", referenced from: _rd_kafka_broker_thread_main in rdkafka_broker.o "_EVP_DecodeBlock", referenced from: _rd_kafka_sasl_scram_fsm in rdkafka_sasl_scram.o "_EVP_EncodeBlock", referenced from: _rd_kafka_sasl_scram_build_client_final_message in rdkafka_sasl_scram.o "_EVP_PKEY_free", referenced from: _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o "_EVP_PKEY_new", referenced from: _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o "_EVP_sha1", referenced from: _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o "_EVP_sha256", referenced from: _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o "_EVP_sha512", referenced from: _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o "_HMAC", referenced from: _rd_kafka_sasl_scram_Hi in rdkafka_sasl_scram.o _rd_kafka_sasl_scram_HMAC in rdkafka_sasl_scram.o "_OPENSSL_add_all_algorithms_noconf", referenced from: _rd_kafka_transport_ssl_init in rdkafka_transport.o "_PKCS12_free", referenced from: _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o "_PKCS12_parse", referenced from: _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o "_SHA1", referenced from: _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o "_SHA256", referenced from: _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o "_SHA512", referenced from: _rd_kafka_sasl_scram_conf_validate in rdkafka_sasl_scram.o "_X509_STORE_set_flags", referenced from: _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o "_X509_free", referenced from: _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o _rd_kafka_transport_io_serve in rdkafka_transport.o "_X509_new", referenced from: _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o "_X509_verify_cert_error_string", referenced from: _rd_kafka_transport_io_serve in rdkafka_transport.o "_d2i_PKCS12_fp", referenced from: _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o "_sk_pop_free", referenced from: _rd_kafka_transport_ssl_ctx_init in rdkafka_transport.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [librdkafka.1.dylib] Error 1 make[1]: [libs] Error 2 make: *** [11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate] Error 2 rm 11a9e3388a67e1ca5c31c1d8da49cb6d2714eb41.intermediate gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/yanghaoyuan/.nvm/versions/node/v11.15.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:193:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12) gyp ERR! System Darwin 17.7.0 gyp ERR! command "/Users/yanghaoyuan/.nvm/versions/node/v11.15.0/bin/node" "/Users/yanghaoyuan/.nvm/versions/node/v11.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/yanghaoyuan/Downloads/tiku-bncz-backend/node_modules/node-rdkafka gyp ERR! node -v v11.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok

shameersalim commented 5 years ago

Execute these commands first

export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib

And then run

npm install