arrow: [R] Error: package or namespace load failed for ‘arrow’ in dyn.load(file, DLLpath = DLLpath, ...):
Describe the bug, including details regarding any error messages, version, and platform.
Hi there - I am trying to install the R package arrow on my Mac OS M1.
I have tried to re-install the apache-arrow library with home brew and multiple other solution I read from different github and stackoverflow issue but it still does not solve the issue.
Could you help me out there?
Here is the log below:
install.packages("arrow")
Installing package into ‘/opt/homebrew/lib/R/4.3/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/arrow_14.0.0.2.tar.gz'
Content type 'application/x-gzip' length 4263864 bytes (4.1 MB)
==================================================
downloaded 4.1 MB
* installing *source* package ‘arrow’ ...
** package ‘arrow’ successfully unpacked and MD5 sums checked
** using staged installation
*** pkg-config found.
*** Trying Arrow C++ found by pkg-config: /opt/homebrew/Cellar/apache-arrow/14.0.1_2
**** Not using: C++ library version (14.0.1) does not match R package (14.0.0.2)
*** Found libcurl and OpenSSL >= 3.0.0
trying URL 'https://apache.jfrog.io/artifactory/arrow/r/14.0.0/libarrow/bin/darwin-arm64-openssl-3.0/arrow-14.0.0.zip'
Content type 'application/zip' length 22764076 bytes (21.7 MB)
==================================================
downloaded 21.7 MB
*** Successfully retrieved libarrow (darwin-arm64-openssl-3.0)
*** Checksum validated successfully for libarrow: darwin-arm64-openssl-3.0/arrow-14.0.0.zip
PKG_CFLAGS=-DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS
PKG_LIBS=-L/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/lib -L/opt/homebrew/opt/openssl@3/lib -larrow_dataset -lparquet -larrow_acero -larrow -larrow_bundled_dependencies -lcurl -lssl -lcrypto
** libs
using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.0.40.1)’
using C++17
using SDK: ‘MacOSX14.0.sdk’
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c RTasks.cpp -o RTasks.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c altrep.cpp -o altrep.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c array.cpp -o array.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c array_to_vector.cpp -o array_to_vector.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c arraydata.cpp -o arraydata.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c arrowExports.cpp -o arrowExports.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c bridge.cpp -o bridge.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c buffer.cpp -o buffer.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c chunkedarray.cpp -o chunkedarray.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c compression.cpp -o compression.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c compute-exec.cpp -o compute-exec.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c compute.cpp -o compute.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c config.cpp -o config.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c csv.cpp -o csv.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c dataset.cpp -o dataset.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c datatype.cpp -o datatype.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c expression.cpp -o expression.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c extension-impl.cpp -o extension-impl.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c feather.cpp -o feather.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c field.cpp -o field.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c filesystem.cpp -o filesystem.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c io.cpp -o io.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c json.cpp -o json.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c memorypool.cpp -o memorypool.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c message.cpp -o message.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c parquet.cpp -o parquet.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c r_to_arrow.cpp -o r_to_arrow.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c recordbatch.cpp -o recordbatch.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c recordbatchreader.cpp -o recordbatchreader.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c recordbatchwriter.cpp -o recordbatchwriter.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c safe-call-into-r-impl.cpp -o safe-call-into-r-impl.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c scalar.cpp -o scalar.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c schema.cpp -o schema.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c symbols.cpp -o symbols.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c table.cpp -o table.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c threadpool.cpp -o threadpool.o
clang++ -std=gnu++17 -I"/opt/homebrew/Cellar/r/4.3.2/lib/R/include" -DNDEBUG -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/include -I/opt/homebrew/opt/openssl@3/include -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -I'/opt/homebrew/lib/R/4.3/site-library/cpp11/include' -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/xz/include -I/opt/homebrew/include -fPIC -g -O2 -c type_infer.cpp -o type_infer.o
clang++ -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/opt/homebrew/Cellar/r/4.3.2/lib/R/lib -L/opt/homebrew/opt/gettext/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/xz/lib -L/opt/homebrew/lib -o arrow.so RTasks.o altrep.o array.o array_to_vector.o arraydata.o arrowExports.o bridge.o buffer.o chunkedarray.o compression.o compute-exec.o compute.o config.o csv.o dataset.o datatype.o expression.o extension-impl.o feather.o field.o filesystem.o io.o json.o memorypool.o message.o parquet.o r_to_arrow.o recordbatch.o recordbatchreader.o recordbatchwriter.o safe-call-into-r-impl.o scalar.o schema.o symbols.o table.o threadpool.o type_infer.o -L/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpVoPXG1/R.INSTALL5d16635befe4/arrow/libarrow/arrow-14.0.0/lib -L/opt/homebrew/opt/openssl@3/lib -larrow_dataset -lparquet -larrow_acero -larrow -larrow_bundled_dependencies -lcurl -lssl -lcrypto -L/opt/homebrew/Cellar/r/4.3.2/lib/R/lib -lR -lintl -Wl,-framework -Wl,CoreFoundation
installing to /opt/homebrew/lib/R/4.3/site-library/00LOCK-arrow/00new/arrow/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘arrow’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/opt/homebrew/lib/R/4.3/site-library/00LOCK-arrow/00new/arrow/libs/arrow.so':
dlopen(/opt/homebrew/lib/R/4.3/site-library/00LOCK-arrow/00new/arrow/libs/arrow.so, 0x0006): symbol not found in flat namespace '__ZN5arrow2fs10GcsOptions15FromAccessTokenERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_6chrono10time_pointINSB_12system_clockENSB_8durationIxNS2_5ratioILl1ELl1000000000EEEEEEE'
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/opt/homebrew/lib/R/4.3/site-library/arrow’
The downloaded source packages are in
‘/private/var/folders/q2/rt91d_wn5x3bhkfft38g2xww0000gn/T/RtmpQcK0se/downloaded_packages’
Warning message:
In install.packages("arrow") :
installation of package ‘arrow’ had non-zero exit status
Component(s)
R
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 1
- Comments: 21 (9 by maintainers)
Just as a side note, while Homebrew’s R formula has the issues mentioned above, the Cask version works great (it’s just the CRAN
.pkg
installer), so saying homebrew’s R isn’t recommended isn’t quite right since Homebrew is great at managing the CRAN version of R.So while this gives you a problematic version of R:
This gives you the CRAN version of R:
And comes with the benefit that Homebrew will automatically upgrade it for you when you run
brew upgrade
.I was working with
renv
and had the package source set to the Posit Package Manager. Testing different sources, this is what I see:type = "source"
, as withremotes::install_version
)type = "source"
)Created on 2023-12-13 with reprex v2.0.2
Session info
@sj-io Thanks for confirming that.
We’ve also now rebuilt arrow with the fix for 14.0.0 and 14.0.0.1, so installing these older versions should work as well.
@glin I believe it’s working. I removed the package and uninstalled/reinstalled a couple different ways (including using
repos = "https://packagemanager.posit.co/cran/latest"
, a regular install with no conditions, and installing inside and outside of an renv package) and didn’t run into any issues when I tried to render pages that use arrow.When I load it outside of a project with renv it lists “Repository: CRAN”.
We believe we’ve now fixed this for arrow 14.0.0.2 in Package Manager. Older arrow versions with the issue haven’t been rebuilt yet, but we’ll get those fixed soon as well.
@sj-io If you’re able to reinstall that arrow binary from Package Manager, could you provide the output of running
packageDescription("arrow")
in R?FWIW, I’m encountering the same with versions newer than 13.0.0.1
14.0.0.2 (fails)
Created on 2023-12-12 with reprex v2.0.2
14.0.0.1 (fails)
Longer Install Log
Created on 2023-12-12 with reprex v2.0.2
13.0.0.1 (works)
Created on 2023-12-12 with reprex v2.0.2
Session info
Thank you so much for the suggestion! It’s working great!!
@juanfcocontreras I am going to close this issue as the actual matter is closed (Thanks for that and the brew help too @glin!)
As @glin said homebrew R is not recommended for arrow specifically and also overall 😉 If you want the ease of a packagemanager to update and switch R versions I would highly recommend https://github.com/r-libs/rig!
You can of course open another issue if the problems persists after following the suggestions 😃
I think there are two different issues in this thread, one about installing arrow from source on Homebrew R, and one about installing the precompiled arrow package binaries from Posit Package Manager (https://packagemanager.posit.co/cran/latest).
We’ve addressed the issues with installing precompiled arrow from Posit Package Manager, but I don’t think there was a resolution with installing arrow from Homebrew R.
I’m not sure what the Homebrew issue may be, but @juanfcocontreras you can try installing arrow from https://packagemanager.posit.co/cran/latest instead of https://cran.rstudio.com/. CRAN binary packages on macOS typically aren’t compatible with Homebrew R, but the Package Manager binary packages may happen to work on Homebrew R.
The non-working PPM binary is caused by the issue reported by Jeroen in #38855 where the host system is used to download the pre-compiled binary which is of course not suiteable for the target system (mac):
I can repro on github actions: https://github.com/assignUser/test-repo-a/actions/runs/7202352843/job/19620310001#step:3:96 CRAN version works fine though.
I can reproduce @psadil’s error by installing from Posit package manager:
Perhaps since you’re using renv that’s where the binary is coming from?
For the original source build in the post, I see you are building from R installed via Homebrew. I don’t think we test or support that…perhaps R installed from the official CRAN page will work? (Even though we don’t test or support installation via Homebrew, this error may point to something else that is incorrect about our installation process on MacOS, so thank you for reporting!). I suspect that in your case the linked libraries are different than those by CRAN-provided R, so I’m not sure our precompiled binaries will work (although a source build should).
For the
install.packages()
error reported by @psadil, that looks like a normal R installation and the missing symbol is from Arrow itself. Normally that type of error occurs when Arrow R and Arrow C++ were built against different versions of Arrow headers.On one of my MacOS M1s I get a somewhat concerning:
(edit: This was because Arrow was already loaded in my session…restarting R and then installing rectified the error)
On my other MacOS M1, I don’t have any issues. Those are both on R 4.3.1 (i.e., “release”).
hm this reads like maybe the precompiled binaries where build without s3/gcs but the package was (correctly) build with them enabled? I don’t have a mac so I will have to look at the binary but maybe @paleolimbot can test it? (which we did prior to release so it’s weird that it’s not working now…)
@psadil using the package version 13.0.0.1 worked for me as well! It did the trick!
I don’t know how I did not think about installing an other version before, probably the killing overload before the christmas break killed me ! 🤦♂️ 😶🌫️
Thanks for the quick response, sharing and support @psadil !!
However, I will let the issue open to get the apache-arrow support team be aware about the issue with the package version > 13.0.0.1!