skale-me / node-parquet

NodeJS module to access apache parquet format files
Apache License 2.0
57 stars 11 forks source link

npm install fail #58

Open kakao-kong-j opened 5 years ago

kakao-kong-j commented 5 years ago

Hi

AWS athena because i am trying to use parquet.

However, there was a problem with the installation.

I need help.

i installed brew install cmake before npm install

  ~ brew install cmake
Warning: cmake 3.12.2 is already installed and up-to-date
➜  assistant git:(113-admin_006-post-s3-athena-parquet) ✗ npm i node-parquet

> node-parquet@0.2.7 preinstall /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet
> ./build_parquet-cpp.sh

-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
clang-tidy not found
clang-format not found
-- Compiler id: AppleClang
Selected compiler clang 4.0
-- Performing Test CXX_SUPPORTS_SSE3
-- Performing Test CXX_SUPPORTS_SSE3 - Success
-- Performing Test CXX_SUPPORTS_ALTIVEC
-- Performing Test CXX_SUPPORTS_ALTIVEC - Success
Configured for RELEASE build (set with cmake -DCMAKE_BUILD_TYPE={release,debug,...})
-- Build Type: RELEASE
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   regex
-- Boost include dir: /usr/local/include
-- Boost libraries: /usr/local/lib/libboost_regex-mt.dylib
-- THRIFT_HOME:
-- Thrift compiler/libraries NOT found:  (THRIFT_INCLUDE_DIR-NOTFOUND, THRIFT_STATIC_LIB-NOTFOUND). Looked in system search paths.
-- Thrift include dir: /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep/src/thrift_ep-install/include
-- Thrift static library: /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep/src/thrift_ep-install/lib/libthrift.a
-- Thrift compiler: /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep/src/thrift_ep-install/bin/thrift
-- Thrift version:
-- Checking for module 'arrow'
--   No package 'arrow' found
-- Could not find the Arrow library. Looked for headers in , and for libs in
-- Building Apache Arrow from commit: 501d60e918bd4d10c429ab34e0b8e8a87dffb732
-- CMAKE_CXX_FLAGS:  -Qunused-arguments  -O3 -DNDEBUG  -Wall -std=c++11 -stdlib=libc++
-- Found cpplint executable at /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/deps/parquet-cpp/build-support/cpplint.py
-- Configuring done
CMake Warning (dev):
  Policy CMP0068 is not set: RPATH settings on macOS do not affect
  install_name.  Run "cmake --help-policy CMP0068" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, the install_name fields for
  the following targets are still affected by RPATH settings:

   parquet_shared

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/build_deps/parquet-cpp
Scanning dependencies of target thrift_ep
[  1%] Creating directories for 'thrift_ep'
[  3%] Performing download step (download, verify and extract) for 'thrift_ep'
-- thrift_ep download command succeeded.  See also /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-download-*.log
[  5%] No patch step for 'thrift_ep'
[  7%] No update step for 'thrift_ep'
[  9%] Performing configure step for 'thrift_ep'
-- thrift_ep configure command succeeded.  See also /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-configure-*.log
[ 10%] Performing build step for 'thrift_ep'
CMake Error at /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-build-RELEASE.cmake:16 (message):
  Command failed: 2

   '/Applications/Xcode.app/Contents/Developer/usr/bin/make'

  See also

    /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-build-*.log

make[2]: *** [thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-build] Error 1
make[1]: *** [CMakeFiles/thrift_ep.dir/all] Error 2
make: *** [all] Error 2
npm WARN assistant No description
npm WARN assistant No repository field.
npm WARN assistant No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! node-parquet@0.2.7 preinstall: `./build_parquet-cpp.sh`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the node-parquet@0.2.7 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hongjinho/.npm/_logs/2018-09-15T18_38_47_846Z-debug.log
dobesv commented 4 years ago

Was there anything interesting in /Users/hongjinho/Documents/cosmee/assistant/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-build-*.log ?

darionco commented 4 years ago

Contents of my log file:

/Users/dsegura/Projects/aspects/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep-prefix/src/thrift_ep/compiler/cpp/src/thrift/thrifty.yy:1.1-5: invalid directive: `%code'
/Users/dsegura/Projects/aspects/node_modules/node-parquet/build_deps/parquet-cpp/thrift_ep-prefix/src/thrift_ep/compiler/cpp/src/thrift/thrifty.yy:1.7-14: syntax error, unexpected identifier
make[5]: *** [compiler/cpp/thrift/thrifty.cc] Error 1
make[4]: *** [compiler/cpp/CMakeFiles/parse.dir/all] Error 2
make[3]: *** [all] Error 2