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

Error: package or namespace load failed for ‘magick’ in dyn.load(file, DLLpath = DLLpath, ...): #395

Open
Gitman0810 opened this issue Apr 8, 2024 · 0 comments

Comments

@Gitman0810
Copy link

Hi!
After installed the ImageMagick by 'mamba install imagemagick -c conda-forge'. But when I tried to install 'magick' R package, it reported error. I would really appreciate it if you can tell me how can I deal with it? (I have no root permission)

> install.packages("magick")
Installing package into ‘/exports/immu-dc-bio-tme/biosoft/R_packages’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/magick_2.8.3.tar.gz'
Content type 'application/x-gzip' length 4600396 bytes (4.4 MB)
==================================================
downloaded 4.4 MB
* installing *source* package ‘magick’ ...
** package ‘magick’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7
Using PKG_LIBS=-L/exports/immu-dc-bio-tme/biosoft/miniconda3/lib -lMagick++-7.Q16HDRI -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI
** libs
using C++ compiler: ‘g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20)’
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c animation.cpp -o animation.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c attributes.cpp -o attributes.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c base.cpp -o base.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c color.cpp -o color.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c composite.cpp -o composite.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c config.cc -o config.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c convolve.cpp -o convolve.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c device.cpp -o device.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c edges.cpp -o edges.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c edit.cpp -o edit.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c fonts.cpp -o fonts.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c options.cpp -o options.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c properties.cpp -o properties.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c resize.cpp -o resize.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c segment.cpp -o segment.o
g++ -std=gnu++17 -I"/share/software/statistical/R/R-4.3.2/lib64/R/include" -DNDEBUG -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/exports/immu-dc-bio-tme/biosoft/miniconda3/include/ImageMagick-7 -I'/exports/immu-dc-bio-tme/biosoft/R_packages/Rcpp/include' -I/usr/local/include   -fvisibility=hidden -fpic  -g -O2  -c transformations.cpp -o transformations.o
g++ -std=gnu++17 -shared -L/share/software/statistical/R/R-4.3.2/lib64/R/lib -L/usr/local/lib64 -o magick.so RcppExports.o animation.o attributes.o base.o color.o composite.o config.o convolve.o device.o edges.o edit.o fonts.o options.o properties.o resize.o segment.o transformations.o -L/exports/immu-dc-bio-tme/biosoft/miniconda3/lib -lMagick++-7.Q16HDRI -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI -L/share/software/statistical/R/R-4.3.2/lib64/R/lib -lR
installing to /exports/immu-dc-bio-tme/biosoft/R_packages/00LOCK-magick/00new/magick/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘magick’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/exports/immu-dc-bio-tme/biosoft/R_packages/00LOCK-magick/00new/magick/libs/magick.so':
  libMagick++-7.Q16HDRI.so.5: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/exports/immu-dc-bio-tme/biosoft/R_packages/magick’
Warning in install.packages :
  installation of package ‘magick’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpG86uPQ/downloaded_packages’

The session information is as follows.

`> sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Rocky Linux 8.9 (Green Obsidian)

Matrix products: default
BLAS/LAPACK: /usr/lib64/libopenblas-r0.3.15.so;  LAPACK version 3.9.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Amsterdam
tzcode source: system (glibc)

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

other attached packages:
 [1] irGSEA_3.2.5       AUCell_1.24.0      lubridate_1.9.3    forcats_1.0.0      stringr_1.5.1      purrr_1.0.2       
 [7] readr_2.1.5        tidyr_1.3.1        tibble_3.2.1       tidyverse_2.0.0    ggplot2_3.5.0      GSVA_1.50.2       
[13] dplyr_1.1.4        Seurat_5.0.3       SeuratObject_5.0.1 sp_2.1-3           argparse_2.2.2     clustermole_1.1.1 

loaded via a namespace (and not attached):
  [1] fs_1.6.3                    matrixStats_1.2.0           spatstat.sparse_3.0-3       bitops_1.0-7               
  [5] devtools_2.4.5              httr_1.4.7                  RColorBrewer_1.1-3          doParallel_1.0.17          
  [9] ggsci_3.0.3                 profvis_0.3.8               tools_4.3.2                 sctransform_0.4.1          
 [13] utf8_1.2.4                  R6_2.5.1                    HDF5Array_1.30.1            lazyeval_0.2.2             
 [17] uwot_0.1.16                 GetoptLong_1.0.5            rhdf5filters_1.14.1         urlchecker_1.0.1           
 [21] withr_3.0.0                 gridExtra_2.3               progressr_0.14.0            cli_3.6.2                  
 [25] Biobase_2.62.0              spatstat.explore_3.2-7      fastDummies_1.7.3           spatstat.data_3.0-4        
 [29] ggridges_0.5.6              pbapply_1.7-2               yulab.utils_0.1.4           R.utils_2.12.3             
 [33] parallelly_1.37.1           sessioninfo_1.2.2           limma_3.58.1                rstudioapi_0.16.0          
 [37] RSQLite_2.3.6               generics_0.1.3              gridGraphics_0.5-1          shape_1.4.6.1              
 [41] ica_1.0-3                   spatstat.random_3.2-3       Matrix_1.6-5                fansi_1.0.6                
 [45] S4Vectors_0.40.2            abind_1.4-5                 R.methodsS3_1.8.2           lifecycle_1.0.4            
 [49] edgeR_4.0.16                SummarizedExperiment_1.32.0 rhdf5_2.46.1                SparseArray_1.2.4          
 [53] Rtsne_0.17                  grid_4.3.2                  blob_1.2.4                  promises_1.3.0             
 [57] crayon_1.5.2                miniUI_0.1.1.1              lattice_0.21-9              beachmat_2.18.1            
 [61] cowplot_1.1.3               annotate_1.80.0             KEGGREST_1.42.0             ComplexHeatmap_2.18.0      
 [65] knitr_1.46                  pillar_1.9.0                fgsea_1.28.0                GenomicRanges_1.54.1       
 [69] rjson_0.2.21                future.apply_1.11.2         codetools_0.2-19            fastmatch_1.1-4            
 [73] leiden_0.4.3.1              glue_1.7.0                  ggfun_0.1.4                 data.table_1.15.4          
 [77] remotes_2.5.0               treeio_1.26.0               vctrs_0.6.5                 png_0.1-8                  
 [81] spam_2.10-0                 gtable_0.3.4                cachem_1.0.8                xfun_0.43                  
 [85] S4Arrays_1.2.1              mime_0.12                   survival_3.5-7              SingleCellExperiment_1.24.0
 [89] iterators_1.0.14            statmod_1.5.0               ellipsis_0.3.2              fitdistrplus_1.1-11        
 [93] ROCR_1.0-11                 nlme_3.1-163                ggtree_3.10.1               usethis_2.2.3              
 [97] bit64_4.0.5                 RcppAnnoy_0.0.22            GenomeInfoDb_1.38.8         irlba_2.3.5.1              
[101] KernSmooth_2.23-22          colorspace_2.1-0            BiocGenerics_0.48.1         DBI_1.2.2                  
[105] tidyselect_1.2.1            processx_3.8.4              bit_4.0.5                   compiler_4.3.2             
[109] curl_5.2.1                  graph_1.80.0                xml2_1.3.6                  desc_1.4.3                 
[113] DelayedArray_0.28.0         plotly_4.10.4               scales_1.3.0                lmtest_0.9-40              
[117] callr_3.7.6                 tiff_0.1-12                 digest_0.6.35               goftest_1.2-3              
[121] fftwtools_0.9-11            spatstat.utils_3.0-4        XVector_0.42.0              jpeg_0.1-10                
[125] htmltools_0.5.8.1           pkgconfig_2.0.3             sparseMatrixStats_1.14.0    MatrixGenerics_1.14.0      
[129] fastmap_1.1.1               rlang_1.1.3                 GlobalOptions_0.1.2         htmlwidgets_1.6.4          
[133] shiny_1.8.1.1               DelayedMatrixStats_1.24.0   zoo_1.8-12                  jsonlite_1.8.8             
[137] BiocParallel_1.36.0         R.oo_1.26.0                 BiocSingular_1.18.0         RCurl_1.98-1.14            
[141] magrittr_2.0.3              GenomeInfoDbData_1.2.11     ggplotify_0.1.2             dotCall64_1.1-1            
[145] patchwork_1.2.0             Rhdf5lib_1.24.2             munsell_0.5.1               Rcpp_1.0.12                
[149] ape_5.7-1                   reticulate_1.35.0           stringi_1.8.3               zlibbioc_1.48.2            
[153] MASS_7.3-60                 plyr_1.8.9                  pkgbuild_1.4.4              parallel_4.3.2             
[157] listenv_0.9.1               ggrepel_0.9.5               deldir_2.0-4                Biostrings_2.70.3          
[161] splines_4.3.2               tensor_1.5                  hms_1.1.3                   circlize_0.4.16            
[165] locfit_1.5-9.9              ps_1.7.6                    igraph_2.0.3                spatstat.geom_3.2-9        
[169] RcppHNSW_0.6.0              reshape2_1.4.4              stats4_4.3.2                ScaledMatrix_1.10.0        
[173] pkgload_1.3.4               XML_3.99-0.16.1             BiocManager_1.30.22         tzdb_0.4.0                 
[177] foreach_1.5.2               httpuv_1.6.15               RMTstat_0.3.1               RANN_2.6.1                 
[181] polyclip_1.10-6             clue_0.3-65                 future_1.33.2               scattermore_1.2            
[185] rsvd_1.0.5                  xtable_1.8-4                tidytree_0.4.6              RSpectra_0.16-1            
[189] roxygen2_7.3.1              later_1.3.2                 viridisLite_0.4.2           singscore_1.22.0           
[193] aplot_0.2.2                 memoise_2.0.1               AnnotationDbi_1.64.1        IRanges_2.36.0             
[197] cluster_2.1.4               timechange_0.3.0            globals_0.16.3              GSEABase_1.64.0    `
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

1 participant