hunzikp / velox

https://hunzikp.github.io/velox/
119 stars 23 forks source link

Failed trying to install in Mac #44

Open pepbioalerts opened 4 years ago

pepbioalerts commented 4 years ago

I tried installing velox in Mac and get these errors during compilation

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/gethostuuid.h:39:17: error: C++ requires a type specifier for all declarations /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:662:27: error: unknown type name 'uuid_t'; did you mean 'uid_t'? /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:664:27: error: unknown type name 'uuid_t'; did you mean 'uid_t'? /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:727:31: error: unknown type name 'uuid_t'; did you mean 'uid_t'? /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:729:31: error: unknown type name 'uuid_t'; did you mean 'uid_t'? 5 errors generated. make: *** [boostgeom.o] Error 1 ERROR: compilation failed for package ‘velox’

sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Catalina 10.15.3

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] udunits2_0.13 BH_1.72.0-3 raster_3.0-12 sp_1.4-1 sf_0.8-1 devtools_2.2.2 usethis_1.5.1

loaded via a namespace (and not attached): [1] Rcpp_1.0.4 compiler_3.6.1 prettyunits_1.1.1 remotes_2.1.1 class_7.3-15 tools_3.6.1
[7] testthat_2.3.2 digest_0.6.25 pkgbuild_1.0.6 pkgload_1.0.2 lattice_0.20-38 memoise_1.1.0
[13] rlang_0.4.5 cli_2.0.2 DBI_1.1.0 rstudioapi_0.11 curl_4.3 e1071_1.7-3
[19] withr_2.1.2 desc_1.2.0 fs_1.3.1 classInt_0.4-2 rprojroot_1.3-2 grid_3.6.1
[25] glue_1.3.1 R6_2.4.1 processx_3.4.2 fansi_0.4.1 sessioninfo_1.1.1 callr_3.4.2
[31] magrittr_1.5 codetools_0.2-16 backports_1.1.5 ps_1.3.2 ellipsis_0.3.0 units_0.6-7
[37] assertthat_0.2.1 KernSmooth_2.23-15 crayon_1.3.4

I checked the dependencies and I installed udunits ... I am not really sure how to proceed now as I really do not get the errors' meaning. Any hint?

cjcarlson commented 4 years ago

I think this is because you have a version of Rcpp with a known issue; we just fixed this on a Mac with this solution:

https://community.rstudio.com/t/later-package-not-compiling-on-macos-unknown-type-name-uuid-t/57171/2

Does that help?

cjcarlson commented 4 years ago

Here's a few more posts that helped us sort this out. I think it's doable - we had a triple threat of compiler issues, GDAL issues, and Rcpp issues. Try this:

https://community.rstudio.com/t/later-package-not-compiling-on-macos-unknown-type-name-uuid-t/57171/2 https://github.com/hunzikp/velox/issues/30 https://github.com/rstudio/httpuv/issues/120 https://stackoverflow.com/questions/12141422/error-gdal-config-not-found

pepbioalerts commented 4 years ago

GreaT that helped a lot! Thanks

Missatge de Colin J. Carlson notifications@github.com del dia ds., 4 d’abr. 2020 a les 23:33:

Here's a few more posts that helped us sort this out. I think it's doable

  • we had a triple threat of compiler issues, GDAL issues, and Rcpp issues. Try this:

https://community.rstudio.com/t/later-package-not-compiling-on-macos-unknown-type-name-uuid-t/57171/2

30 https://github.com/hunzikp/velox/issues/30

rstudio/httpuv#120 https://github.com/rstudio/httpuv/issues/120 https://stackoverflow.com/questions/12141422/error-gdal-config-not-found

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hunzikp/velox/issues/44#issuecomment-609092051, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCIPX2MPY7KX6SBZA66PC3RK6RSNANCNFSM4LOSYNWQ .

-- Josep M Serra-Diaz Spatial Ecology and Conservation AgroParisTech - Nancy https://www6.nancy.inra.fr/silva GScholar Profile https://scholar.google.com/citations?user=4OVXy7cAAAAJ&hl=ca Twitter @JMSerraDiaz