honghh2018 commented on issue #40326:
URL: https://github.com/apache/arrow/issues/40326#issuecomment-2162709120
install.package('arrow')
I had the save exact same issue,
** building package indices
** testing if installed package can be loaded from temporary location
libgcc_s.so.1 must be installed for pthread_cancel to work
sh: line 1: 155091 Aborted (core dumped) R_TESTS=
'/share/apps/R/R-4.3.2/lib64/R/bin/R' --no-save --no-restore --no-echo 2>&1 <
'/tmp/RtmpmF69pM/file1f0c35ca7b736'
Error: package or namespace load failed for ‘arrow’ in dyn.load(file,
DLLpath = DLLpath, ...):
unable to load shared object
'/share/apps/R/R-4.3.2/lib64/R/library/00LOCK-arrow/00new/arrow/libs/arrow.so':
/share/apps/R/R-4.3.2/lib64/R/library/00LOCK-arrow/00new/arrow/libs/arrow.so:
undefined symbol: _ZN6snappy11RawCompressEPKcmPcPm
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/share/apps/R/R-4.3.2/lib64/R/library/arrow’
Warning message:
In
install.packages("https://cran.r-project.org/src/contrib/Archive/arrow/arrow_13.0.0.tar.gz")
:
installation of package
‘/tmp/RtmpqqWaU7/downloaded_packages/arrow_13.0.0.tar.gz’ had non-zero exit
status
the ldd
$ldd /share/apps/biosoft/arrow-latest/lib64/libarrow_dataset.so
linux-vdso.so.1 => (0x00007fff38bc6000)
libparquet.so.1700 => not found
libarrow_acero.so.1700 => not found
libarrow.so.1700 => not found
libstdc++.so.6 => /usr/local/lib64/libstdc++.so.6 (0x00002aab1e8f1000)
libm.so.6 => /usr/lib64/libm.so.6 (0x00002aab1eccb000)
libgcc_s.so.1 => /usr/local/gcc-9.3.0/lib64/libgcc_s.so.1
(0x00002aab1efcd000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00002aab1f1e5000)
/lib64/ld-linux-x86-64.so.2 (0x00002aab1e2e4000)
i build the arrow myself
git clone https://github.com/apache/arrow.git
cd arrow
mkdir cpp/build
cd cpp/build
#cmake .. -DCMAKE_INSTALL_PREFIX=/share/apps/biosoft/arrow
-DARROW_PARQUET=ON -DARROW_PYTHON=ON -DARROW_BOOST_USE_SHARED=ON
-DARROW_BUILD_TESTS=OFF -DARROW_ACERO=ON -DARROW_DATASET=ON -DARROW_JSON=ON
#cmake .. -DCMAKE_CXX_STANDARD=17
-DCMAKE_INSTALL_PREFIX=/share/apps/biosoft/arrow-latest \
# -DARROW_PARQUET=ON -DARROW_PYTHON=ON -DARROW_BOOST_USE_SHARED=ON \
# -DARROW_BUILD_TESTS=OFF -DARROW_ACERO=ON -DARROW_DATASET=ON
-DARROW_JSON=ON
cmake .. -DCMAKE_C_COMPILER=/usr/local/gcc-9.3.0/bin/gcc \
-DCMAKE_CXX_COMPILER=/usr/local/gcc-9.3.0/bin/g++ \
#-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_INSTALL_PREFIX=/share/apps/biosoft/arrow-latest \
-DARROW_PARQUET=ON \
-DARROW_PYTHON=ON \
-DARROW_BOOST_USE_SHARED=ON \
-DARROW_BUILD_TESTS=OFF \
-DARROW_ACERO=ON \
-DARROW_DATASET=ON \
-DARROW_JSON=ON
make -j$(nproc)
make install
how to fix this error? any advice would be appreciated
best hanhuihong
> sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS: /share/apps/R/R-4.3.2/lib64/R/lib/libRblas.so
LAPACK: /share/apps/R/R-4.3.2/lib64/R/lib/libRlapack.so; LAPACK version
3.11.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: Asia/Shanghai
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.3.2 tools_4.3.2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]