zpliu created ARROW-17522: ----------------------------- Summary: Sys.setenv(ARROW_WITH_ZSTD = "ON") nor working before install.packages("arrow") Key: ARROW-17522 URL: https://issues.apache.org/jira/browse/ARROW-17522 Project: Apache Arrow Issue Type: Bug Affects Versions: 9.0.0 Environment: Ubuntu 20.04.4 LTS Reporter: zpliu
when I tried to read a feather file, I got a error: "NotImplemented: Support for codec 'zstd' not built" Then, a suggestion prompts: {code:java} Error in (function (cond) : error in evaluating the argument 'object' in selecting a method for function 'getRanking': NotImplemented: Support for codec 'zstd' not built In order to read this file, you will need to reinstall arrow with additional features enabled. Set one of these environment variables before installing: * Sys.setenv(LIBARROW_MINIMAL = "false") (for all optional features, including 'zstd') * Sys.setenv(ARROW_WITH_ZSTD = "ON") (for just 'zstd') See https://arrow.apache.org/docs/r/articles/install.html for details {code} I checked the website and do the Sys.setenv() settings as suggested. Then re-installed arrow using install.packages("arrow"). But the ARROW_WITH_ZSTD is still off: {code:java} **** arrow with SOURCE_DIR='tools/cpp' BUILD_DIR='/tmp/RtmpCgqXQr/file5e2349e017f8' DEST_DIR='libarrow/arrow-9.0.0' CMAKE='/usr/bin/cmake' EXTRA_CMAKE_FLAGS=' -DARROW_SIMD_LEVEL=NONE -DARROW_RUNTIME_SIMD_LEVEL=NONE' CC='x86_64-conda-linux-gnu-cc' CXX='x86_64-conda-linux-gnu-c++ -std=gnu++11' LDFLAGS='-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/USER1/anaconda3/envs/r_env/lib -Wl,-rpath-link,/home/USER1/anaconda3/envs/r_env/lib -L/home/USER1/anaconda3/envs/r_env/lib' ARROW_S3='OFF' ARROW_GCS='OFF' ARROW_MIMALLOC='OFF' ARROW_JEMALLOC='OFF' ARROW_JSON='OFF' ARROW_PARQUET='OFF' ARROW_DATASET='OFF' ARROW_WITH_GOOGLE_CLOUD_CPP='OFF' ARROW_WITH_NLOHMANN_JSON='OFF' ARROW_SUBSTRAIT='OFF' ARROW_WITH_PROTOBUF='OFF' ARROW_WITH_BROTLI='OFF' ARROW_WITH_BZ2='OFF' ARROW_WITH_LZ4='OFF' ARROW_WITH_SNAPPY='OFF' ARROW_WITH_ZLIB='OFF' ARROW_WITH_ZSTD='OFF' ARROW_WITH_RE2='OFF' ARROW_WITH_UTF8PROC='OFF' ***** ***** ***** -- ARROW_WITH_ZSTD=OFF [default=OFF] -- Build with zstd compression{code} Any suggestions for this? Thanks -- This message was sent by Atlassian Jira (v8.20.10#820010)