[
https://issues.apache.org/jira/browse/ARROW-17849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17618851#comment-17618851
]
Benson Muite commented on ARROW-17849:
--------------------------------------
Rough steps to get R, and a minimal Arrow build. Probably also want a recent
version of Python and run tests.
{code:bash}
yum install -y centos-release-scl curl diffutils gcc-c++ libcurl-devel make
openssl-devel wget which
yum install -y devtoolset-8
source scl_source enable devtoolset-8
yum install -y epel-release || yum install -y
https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(cut -d: -f5
/etc/system-release-cpe | cut -d. -f1).noarch.rpm
export R_VERSION=4.2.1
curl -O https://cran.rstudio.com/src/base/R-4/R-${R_VERSION}.tar.gz
tar -xzvf R-${R_VERSION}.tar.gz
yum install readline-devel
./configure --prefix=/opt/R/${R_VERSION} --enable-memory-profiling
--enable-R-shlib --with-blas --with-lapack
yum install x11-devel
yum install xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps
yum install libX11-devel xorg-x11-server-devel
yum install libXt-devel
yum install libjpeg-devel libpng-devel libtiff-devel libcairo-devel
yum install cairo-devel
yum install perl
wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh
cd R-${R_VERSION}
yum install pandoc texinfo
./configure --prefix=/opt/R/${R_VERSION} --enable-memory-profiling
--enable-R-shlib --with-blas --with-lapack
tlmgr install grfext
yum install java-11-openjdk-devel
make
make check
make install
make install-pdf
make install-info
tlmgr install texi2dvi
yum install texinfo-tex
export PATH=$PATH:/opt/R/4.2.1/bin/
cd ..
git clone https://github.com/apache/arrow
wget
https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz
tar -xf cmake-3.24.2.tar.gz
cd cmake-3.24.2
./configure
make
make -j 4
make install
make test
cd ..
arrow/
cd ci
cd scripts/
bash install_sccache.sh unknown-linux-musl /usr/local/bin
cd ..
cd ..
bash r/inst/build_arrow_static.sh
R --vanilla -e
"install.packages('assertthat',repos='http://cran.us.r-project.org')"
R --vanilla -e "install.packages('bit64',repos='http://cran.us.r-project.org')"
R --vanilla -e "install.packages('glue',repos='http://cran.us.r-project.org')"
R --vanilla -e "install.packages('purrr',repos='http://cran.us.r-project.org')"
R --vanilla -e "install.packages('R6',repos='http://cran.us.r-project.org')"
R --vanilla -e "install.packages('rlang',repos='http://cran.us.r-project.org')"
R --vanilla -e
"install.packages('tidyselect',repos='http://cran.us.r-project.org')"
R --vanilla -e "install.packages('vectrs',repos='http://cran.us.r-project.org')"
R --vanilla -e "install.packages('styler',repos='http://cran.us.r-project.org')"
{code}
> [R][Docs] Document changes due to C++17 for centos-7 users
> ----------------------------------------------------------
>
> Key: ARROW-17849
> URL: https://issues.apache.org/jira/browse/ARROW-17849
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Documentation, R
> Reporter: Jacob Wujciak-Jens
> Assignee: Benson Muite
> Priority: Blocker
> Fix For: 10.0.0
>
>
> With the switch to C++17 centos 7 users need to install and enable devtoolset
> (and possibly change makevars) to be able to compile the R package, even when
> using the libarrow binary (see [ARROW-17594]) but that they can use
> INSTALL_opts = "--build" to get a binary package that is installable on a
> centos machine WITHOUT dts -> offline build section. Centos 7 RSPM is an
> alternative source for that binary package.
> Also add messaging in configure or build_arrow_static.sh so that if someone
> is trying to install from source with gcc 4.8, we tell them what they need to
> do.
> This should be documented and noted in the release notes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)