Closed thiagoveloso closed 5 years ago
Hi,
It probably won't help you, as your configuration and mine are quite different, but I was able to successfully install velox
on macOS High Sierra. Here is my R sessionInfo()
:
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin17.7.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS/LAPACK: /usr/local/Cellar/openblas/0.3.3/lib/libopenblasp-r0.3.3.dylib
locale:
[1] en_US.UTF-8/C/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.1
As you can see, it is an Homebrew installation, with openBLAS (brew install R --with-openblas
)
I used the macOS R Toolchain. This makes sure R to use supported compiler (clang4
) and writes a customized ~/.R/Makevars
.
I also installed the GDAL Framework instead of gdal
provided by Homebrew, while I installed geos
and proj
via Homebrew. To be sure gdal-config
is found, one needs to echo 'export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH' >> ~/.bash_profile
.
Hope this might help.
@pascaloettli, thanks for your hint. I already had all the requirements working well, at least apparently, my only issue was trying to install velox
.
Can you please paste the contents of your ~/.R/Makevars
file?
Mine currently looks like this (using Macports compilers):
# Check out some configurations options at this StackOverflow discussion:
# https://stackoverflow.com/questions/43597632/understanding-the-contents-of-the-makevars-file-in-r-macros-variables-r-ma/43599233#43599233
# Macports' GCC
CC=/opt/local/bin/gcc
CXX=/opt/local/bin/g++
C11=/opt/local/bin/g++
# Macports' gfortran
F77=/opt/local/bin/gfortran
FC=/opt/local/bin/gfortran
FLIBS=-L/opt/local/lib/gcc7
@thiagoveloso Here it is:
CPPFLAGS = -I/Library/Frameworks/GTK+.framework/Versions/2.24.X11/Resources/include/gtk-2.0/ -I/opt/X11/include/
# CFLAGS = -g -O3
CC=/usr/local/clang4/bin/clang
CXX=/usr/local/clang4/bin/clang++
CXX1X=/usr/local/clang4/bin/clang++
CXX98=/usr/local/clang4/bin/clang++
CXX11=/usr/local/clang4/bin/clang++
CXX14=/usr/local/clang4/bin/clang++
CXX17=/usr/local/clang4/bin/clang++
LDFLAGS=-L/usr/local/clang4/lib
# The following statement changes the Fortran linking path
FLIBS=-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin16/6.3.0
# End Fortran linking path statement
@thiagoveloso Does it work?
@thiagoveloso Does it work?
Yes, it does! I just had to point out my Macports' GCC compiler to the CXX1X
,CXX98
,CXX11
,CXX14
,CXX17
variables and the package compiled fine (after throwing quite a few warnings though).
My Makevars
file looks like this now:
# Macports' GCC
CC=/opt/local/bin/gcc
CXX=/opt/local/bin/g++
C11=/opt/local/bin/g++
CXX1X=/opt/local/bin/g++
CXX98=/opt/local/bin/g++
CXX11=/opt/local/bin/g++
CXX14=/opt/local/bin/g++
CXX17=/opt/local/bin/g++
# Macports' gfortran
F77=/opt/local/bin/gfortran
FC=/opt/local/bin/gfortran
FLIBS=-L/opt/local/lib/gcc7
Thanks for the hint, @pascaloettli!
When trying to install the package on my MacBook Pro, I get the following error:
If I install it from CRAN, I get the same error when loading it.
Any ideas on what can be wrong? My session info below: