Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find -lboost_filesystem #208

Open
robin-sto opened this issue Jan 23, 2024 · 2 comments
Open

cannot find -lboost_filesystem #208

robin-sto opened this issue Jan 23, 2024 · 2 comments

Comments

@robin-sto
Copy link

Hello,

When installing into an R/4.2.3 environment, I am getting this error:
g++ -std=gnu++11 -shared -L/usr/local/R/4.2.3/lib64/R/lib -L/usr/local/lib64 -o velocyto.R.so RcppExports.o points_within.o routines.o -lboost_filesystem -lboost_system -lstdc++ -L/usr/local/R/4.2.3/lib64/R/lib -lRlapack -L/usr/local/R/4.2.3/lib64/R/lib -lRblas -fopenmp -lgfortran -lm -lquadmath -L/usr/local/R/4.2.3/lib64/R/lib -lR
/usr/local/binutils/2.30.0/bin/ld: cannot find -lboost_filesystem
/usr/local/binutils/2.30.0/bin/ld: cannot find -lboost_system

The install command: devtools::install_github("velocyto-team/velocyto.R")

Can you please help? Thanks.

@MSGanbold
Copy link

Same problem here. Thanks

sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.6.7

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] stats graphics grDevices utils datasets methods base

other attached packages:
[1] devtools_2.4.5 usethis_2.2.2 SeuratWrappers_0.3.0

loaded via a namespace (and not attached):
[1] Seurat_4.3.0 Rtsne_0.16 colorspace_2.1-0 deldir_1.0-6 ellipsis_0.3.2 ggridges_0.5.5
[7] fs_1.6.3 rstudioapi_0.15.0 spatstat.data_3.0-4 leiden_0.4.3.1 listenv_0.9.0 remotes_2.4.2.1
[13] ggrepel_0.9.3 fansi_1.0.4 codetools_0.2-19 splines_4.1.3 R.methodsS3_1.8.2 cachem_1.0.8
[19] pkgload_1.3.3 polyclip_1.10-4 jsonlite_1.8.4 ica_1.0-3 cluster_2.1.4 png_0.1-8
[25] R.oo_1.25.0 uwot_0.1.16 shiny_1.8.0 sctransform_0.3.5 spatstat.sparse_3.0-1 BiocManager_1.30.22
[31] compiler_4.1.3 httr_1.4.7 SeuratObject_4.1.3 Matrix_1.5-1 fastmap_1.1.1 lazyeval_0.2.2
[37] cli_3.6.1 later_1.3.1 htmltools_0.5.5 tools_4.1.3 rsvd_1.0.5 igraph_1.4.2
[43] gtable_0.3.4 glue_1.6.2 RANN_2.6.1 reshape2_1.4.4 dplyr_1.1.2 Rcpp_1.0.12
[49] scattermore_1.2 vctrs_0.6.2 spatstat.explore_3.1-0 nlme_3.1-162 progressr_0.14.0 lmtest_0.9-40
[55] spatstat.random_3.1-4 stringr_1.5.1 ps_1.7.5 globals_0.16.2 mime_0.12 miniUI_0.1.1.1
[61] lifecycle_1.0.4 irlba_2.3.5.1 goftest_1.2-3 future_1.33.1 MASS_7.3-60 zoo_1.8-12
[67] scales_1.2.1 promises_1.2.0.1 spatstat.utils_3.0-3 parallel_4.1.3 RColorBrewer_1.1-3 curl_5.0.0
[73] memoise_2.0.1 reticulate_1.28 pbapply_1.7-2 gridExtra_2.3 ggplot2_3.4.4 stringi_1.7.12
[79] desc_1.4.3 pkgbuild_1.4.3 rlang_1.1.1 pkgconfig_2.0.3 matrixStats_0.63.0 lattice_0.21-8
[85] ROCR_1.0-11 purrr_1.0.1 tensor_1.5 patchwork_1.2.0 htmlwidgets_1.6.2 processx_3.8.1
[91] cowplot_1.1.2 tidyselect_1.2.0 parallelly_1.36.0 RcppAnnoy_0.0.21 plyr_1.8.8 magrittr_2.0.3
[97] R6_2.5.1 profvis_0.3.8 generics_0.1.3 DBI_1.2.1 pillar_1.9.0 fitdistrplus_1.1-11
[103] survival_3.5-5 abind_1.4-5 sp_1.6-0 tibble_3.2.1 future.apply_1.11.1 KernSmooth_2.23-22
[109] utf8_1.2.3 spatstat.geom_3.2-1 plotly_4.10.4 urlchecker_1.0.1 grid_4.1.3 data.table_1.14.8
[115] callr_3.7.3 digest_0.6.31 xtable_1.8-4 tidyr_1.3.0 httpuv_1.6.10 R.utils_2.12.3
[121] munsell_0.5.0 viridisLite_0.4.2 sessioninfo_1.2.2

@Lantianqianmu
Copy link

Hi, I was running into the same problem on Ubuntu, which can be solved by installing the following dependencies: sudo apt install libboost-filesystem-dev and sudo apt install libboost-system-dev. You may try to install the equivalent dependencies on your system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants