[ 
https://issues.apache.org/jira/browse/ARROW-9237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17147014#comment-17147014
 ] 

Neal Richardson commented on ARROW-9237:
----------------------------------------

Thanks for the report. A few thoughts:

* Because arrow is developing quickly, you need to have exact match between the 
C++ library version and the R package version. Sometimes patch releases will 
just work but that wasn't the case with 0.17.1.
* Odd that https://aur.archlinux.org/packages/arrow/ didn't get updated for 
0.17.1, must have been an oversight in the patch release process.
* The bundled C++ build with the R package doesn't involve grpc because the R 
package doesn't have bindings for Flight, so that wasn't the issue.
* It appears that the bundled build couldn't find Thrift. I wonder if it would 
work if you set the environment variable 
{{EXTRA_CMAKE_FLAGS="-DThrift_SOURCE=BUNDLED"}} to force the bundled C++ build 
to build Thrift (rather than rely on system Thrift).

> [R] 0.17 install on Arch Linux
> ------------------------------
>
>                 Key: ARROW-9237
>                 URL: https://issues.apache.org/jira/browse/ARROW-9237
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>    Affects Versions: 0.17.1
>         Environment: LSB Version:    1.4,
> Distributor ID: Arch,
> Description:    Arch Linux,
> Release:        rolling,
> (fully updated)
> Binaries:
> aur/arrow 0.17.0-1 - https://aur.archlinux.org/packages/arrow/
> community/grpc 1.29.1-1 - 
> https://www.archlinux.org/packages/community/x86_64/grpc/
> R Cran arrow 0.17.1
>            Reporter: Stuart Russell
>            Priority: Major
>              Labels: Linux, R, install
>         Attachments: PKGBUILD
>
>
> After reading the installation vignette I'm reporting this installation issue.
> I couldn't install the R package by building the C++ libraries as I hit:
> {code:r}
> # arch arrow install unable to load shared object 
> R/x86_64-pc-linux-gnu-library/4.0/00LOCK-arrow/00new/arrow/libs/arrow.so : 
> undefined symbol: _ZTIN6apache6thrift8protocol9TProtocolE{code}
> I tried to set R_LD_LIBRARY_PATH as suggested but it didn't help. Maybe I 
> made a mistake.
> Using a prebuild arrow binary was failing as the version on the Arch AUR was 
> 0.17.0 while the CRAN was wanting 0.17.1, and the even the AUR 0.17.0 install 
> was failing because there are apparently issues with grpc 1.28+ (I was on 
> 1.29.1) according to [https://aur.archlinux.org/packages/arrow/]
> I finally solved the issue by setting -DARROW_FLIGHT to OFF during 
> installation from the AUR ( I also turned -DARROW_WITH_SNAPPY to ON):
> {code:bash}
> yay --editmenu -S arrow
> {code}
> Then to install the R package I had to set NOT_CRAN=true & install the 0.17.0 
> version:
> {code:r}
> Sys.setenv("NOT_CRAN"="true")
> packageurl <- 
> "http://cran.r-project.org/src/contrib/Archive/arrow/arrow_0.17.0.tar.gz";
> install.packages(packageurl, repos=NULL, type="source")
> {code}
> This led to a working R install, but I never solved my issue compiling the 
> C++ binaries during R install. Perhaps this relates to the same issue with 
> grpc?
> I'm sorry I didn't save all the error messages I hit, but I've included a 
> working PKGBUILD for my system, edited from 
> [https://aur.archlinux.org/packages/arrow/]. I hope it helps.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to