TileDB-SOMA: R - Cannot compile [Bug]
Hello,
I’m trying to install TileDB-SOMA in R 4.1 (non-ARM version) on my M1 Mac. I have tried installing the package using both:
install.packages('tiledbsoma', repos = c('https://tiledb-inc.r-universe.dev', 'https://cloud.r-project.org'))
and
remotes::install_github("https://github.com/single-cell-data/TileDB-SOMA", subdir = "apis/r", dependencies = T)
but I keep encountering the following compilation error:
`* installing *source* package ‘tiledbsoma’ ...
** using staged installation
Error: No 'cmake' binary found
Execution halted
./configure: line 47: tools/build_libtiledbsoma.sh: No such file or directory
** libs
clang++ -mmacosx-version-min=10.13 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I../inst/include/ -I../inst/tiledb/include -I../inst/tiledbsoma/include -mmacosx-version-min=10.14 -I'/Users/alexwhitehead/Documents/Postdoc/CZI_DLs/renv/library/R-4.1/x86_64-apple-darwin17.0/Rcpp/include' -I'/Users/alexwhitehead/Documents/Postdoc/CZI_DLs/renv/library/R-4.1/x86_64-apple-darwin17.0/RcppSpdlog/include' -I/usr/local/include -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
./../inst/include/tiledbsoma_types.h:21:10: fatal error: 'tiledbsoma/tiledbsoma' file not found
#include <tiledbsoma/tiledbsoma>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘tiledbsoma’
* removing ‘/Users/alexwhitehead/Documents/Postdoc/CZI_DLs/renv/library/R-4.1/x86_64-apple-darwin17.0/tiledbsoma’
The downloaded source packages are in
‘/private/var/folders/_m/v1nsm3ws5fnbp4jb9wc69p5w0000gn/T/Rtmpf9Dy2K/downloaded_packages’
Warning messages:
1: In readRDS(dest) : lzma decoder corrupt data
2: In utils::install.packages("tiledbsoma", repos = c("https://tiledb-inc.r-universe.dev", :
installation of package ‘tiledbsoma’ had non-zero exit status`
I tried installing cmake with homebrew, but R doesn’t seem to recognize it. Is this the issue?
Any help would be greatly appreciated!
My session info:
`R version 4.1.2 (2021-11-01)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS 13.4.1
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/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] stats4 stats graphics grDevices datasets utils methods base
other attached packages:
[1] SingleCellExperiment_1.16.0 SummarizedExperiment_1.24.0 Biobase_2.54.0 GenomicRanges_1.46.1 GenomeInfoDb_1.30.1
[6] IRanges_2.28.0 S4Vectors_0.32.4 BiocGenerics_0.40.0 MatrixGenerics_1.6.0 matrixStats_1.0.0
loaded via a namespace (and not attached):
[1] lattice_0.21-8 bitops_1.0-7 grid_4.1.2 zlibbioc_1.40.0 XVector_0.34.0 renv_1.0.2
[7] curl_5.0.0 remotes_2.4.2.1 Matrix_1.5-1 tools_4.1.2 RCurl_1.98-1.12 DelayedArray_0.20.0
[13] compiler_4.1.2 BiocManager_1.30.22 GenomeInfoDbData_1.2.7`
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (13 by maintainers)
@johnkerl For whatever reason, none of my homebrew packages are showing up through
sys.which. I’m going to try installing cmake with conda ( just as soon as my environment gets solved…)