xuyiqing / gsynth

Generalized Synthetic Control Method
Other
131 stars 40 forks source link

cannot library package #87

Open torreswang0913 opened 1 year ago

torreswang0913 commented 1 year ago

Hi

when I tried to library gsynth, I got error message,could you please give me some solution Error: package or namespace load failed for ‘gsynth’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/gsynth/libs/gsynth.so': dlopen(/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/gsynth/libs/gsynth.so, 0x0006): Library not loaded: '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib' Referenced from: '/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/gsynth/libs/gsynth.so' Reason: tried: '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib' (no such file), '/usr/local/lib/libRlapack.dylib' (no such file), '/usr/lib/libRlapack.dylib' (no such file)

below is my version of Rstudio: R version 4.3.0 (2023-04-21) Platform: x86_64-apple-darwin20 (64-bit) Running under: macOS Monterey 12.5

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0

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

time zone: Asia/Shanghai tzcode source: internal

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

loaded via a namespace (and not attached): [1] Matrix_1.5-4 gtable_0.3.3 lfe_2.9-0 dplyr_1.1.2
[5] compiler_4.3.0 tidyselect_1.2.0 Rcpp_1.0.11 parallel_4.3.0
[9] globals_0.16.2 doRNG_1.8.6 scales_1.2.1 lattice_0.21-8
[13] ggplot2_3.4.3 R6_2.5.1 generics_0.1.3 Formula_1.2-5
[17] iterators_1.0.14 MASS_7.3-58.4 future_1.33.0 tibble_3.2.1
[21] munsell_0.5.0 pillar_1.9.0 rlang_1.1.1 utf8_1.2.3
[25] doParallel_1.0.17 cli_3.6.1 magrittr_2.0.3 digest_0.6.33
[29] foreach_1.5.2 grid_4.3.0 xtable_1.8-4 rstudioapi_0.15.0 [33] mvtnorm_1.2-2 sandwich_3.0-2 lifecycle_1.0.3 vctrs_0.6.3
[37] glue_1.6.2 listenv_0.9.0 zoo_1.8-12 codetools_0.2-19 [41] rngtools_1.5.2 abind_1.4-5 parallelly_1.36.0 fansi_1.0.4
[45] colorspace_2.1-0 tools_4.3.0 pkgconfig_2.0.3