You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dragoș Moldovan-Grünfeld (Jira)" <ji...@apache.org> on 2021/10/20 12:59:00 UTC

[jira] [Comment Edited] (ARROW-14371) [R] Improve the R-only development guide

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

Dragoș Moldovan-Grünfeld edited comment on ARROW-14371 at 10/20/21, 12:58 PM:
------------------------------------------------------------------------------

Numpy seems to be installed. My Python installation might be messed up though. I've just reinstalled {{numpy, }}but to no effect.
{code:java}
(base) dragos@Dragoss-MacBook-Pro ~ % brew install numpy
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 3 formulae.
==> Updated Casks
Updated 5 casks.Warning: numpy 1.21.2 is already installed and up-to-date.
To reinstall 1.21.2, run:
  brew reinstall numpy
(base) dragos@Dragoss-MacBook-Pro ~ %  brew reinstall numpy
==> Downloading https://ghcr.io/v2/homebrew/core/numpy/manife {code}


was (Author: dragosmg):
Numpy seems to be installed. My Python installation might be messed up though. I've just reinstalled {{numpy}}
{code:java}
(base) dragos@Dragoss-MacBook-Pro ~ % brew install numpy
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 3 formulae.
==> Updated Casks
Updated 5 casks.Warning: numpy 1.21.2 is already installed and up-to-date.
To reinstall 1.21.2, run:
  brew reinstall numpy
(base) dragos@Dragoss-MacBook-Pro ~ %  brew reinstall numpy
==> Downloading https://ghcr.io/v2/homebrew/core/numpy/manife {code}

> [R] Improve the R-only development guide
> ----------------------------------------
>
>                 Key: ARROW-14371
>                 URL: https://issues.apache.org/jira/browse/ARROW-14371
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: R
>         Environment: MacBook Pro (13-inch, 2018, Four Thunderbolt 3 Ports) running macOS BigSur (11.6)
>            Reporter: Dragoș Moldovan-Grünfeld
>            Priority: Major
>              Labels: documentation
>         Attachments: arrow_install_error
>
>
> There are a few ways we could make the R-only development guide better (this list isn't exhaustive, but are things that have come up in the discussion here):
> * A note that the brew-based method and the build-your-own methods are incompatible (mostly because of {{ARROW_HOME}}, but folks using brew shouldn't need to even think about that, so we should be careful how we phrase this)
> * A note about confirming that {{brew install apache-arrow --HEAD}} completes successfully and how to confirm it's being picked up in the install process
> * This might be part of the point above, but a description of what the difference/meaning of the following are: {{*** Using Homebrew ${PKG_BREW_NAME}}}, {{*** Arrow C++ libraries found via pkg-config}}, any mention of {{autobrew}}. Specifically, if one is trying to use homebrew for development, only the first one is ok, if someone sees something else that means that something isn't quite right.
> Original ticket description:
> I cannot get a working install using the [R-only development instructions|https://arrow.apache.org/docs/r/articles/developing.html#r-only-development].  
> Steps I took:
> 1. run brew install apache-arrow --HEAD
> 2. run unset ARROW_HOME
> 3. clone arrow repo
> 4. navigate to arrow/r
> 5. run R CMD INSTALL .
> {code:r}
> (base) dragos@Dragoss-MacBook-Pro r % R CMD INSTALL .
> * installing to library ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library’
> * installing *source* package ‘arrow’ ...
> ** using staged installation
> *** Arrow C++ libraries found via pkg-config at
> **** Warning: library version mismatch
> **** C++ is 5.0.0 but R is 5.0.0.9000
> **** If installation fails, upgrade the C++ library to match
> **** or retry with ARROW_USE_PKG_CONFIG=false
> PKG_CFLAGS=-I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON
> PKG_LIBS=-L/usr/local/Cellar/apache-arrow/5.0.0_2/lib -larrow_dataset -lparquet -larrow
> ** libs
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c RTasks.cpp -o RTasks.o
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c altrep.cpp -o altrep.o
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c array.cpp -o array.o
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c array_to_vector.cpp -o array_to_vector.o
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c arraydata.cpp -o arraydata.o
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c arrowExports.cpp -o arrowExports.o
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c buffer.cpp -o buffer.o
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c chunkedarray.cpp -o chunkedarray.o
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c compression.cpp -o compression.o
> clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/Cellar/apache-arrow/5.0.0_2/include -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_JSON -I../inst/include/  -I/usr/local/include   -fPIC  -Wall -g -O2  -c compute-exec.cpp -o compute-exec.o
> compute-exec.cpp:25:10: fatal error: 'arrow/compute/exec/options.h' file not found
> #include <arrow/compute/exec/options.h>
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> make: *** [compute-exec.o] Error 1
> ERROR: compilation failed for package ‘arrow’
> * removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/arrow’
> {code}



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