You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/08/07 17:51:38 UTC

[GitHub] Ruoyu-Qian opened a new issue #12066: Unable to library the package "mxnet" in R 3.5.1 on Mac

Ruoyu-Qian opened a new issue #12066: Unable to library the package "mxnet" in R 3.5.1 on Mac
URL: https://github.com/apache/incubator-mxnet/issues/12066
 
 
   ## Description
   I installed the package "mxnet" successfully using the following code:
   
   cran <- getOption("repos")
   cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/"
   options(repos = cran)
   install.packages("mxnet")
   
   However, I cannot library or require it.
   
   ## Environment info (Required)
   
   > sessionInfo()
   R version 3.5.1 (2018-07-02)
   Platform: x86_64-apple-darwin15.6.0 (64-bit)
   Running under: macOS High Sierra 10.13.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/3.5/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] Matrix_1.2-14
   
   loaded via a namespace (and not attached):
    [1] Rcpp_0.12.18       plyr_1.8.4         pillar_1.3.0       compiler_3.5.1     RColorBrewer_1.1-2
    [6] influenceR_0.1.0   bindr_0.1.1        viridis_0.5.1      tools_3.5.1        digest_0.6.15     
   [11] jsonlite_1.5       viridisLite_0.3.0  gtable_0.2.0       tibble_1.4.2       lattice_0.20-35   
   [16] rgexf_0.15.3       pkgconfig_2.0.1    rlang_0.2.1        igraph_1.2.2       rstudioapi_0.7    
   [21] bindrcpp_0.2.2     gridExtra_2.3      stringr_1.3.1      downloader_0.4     DiagrammeR_1.0.0  
   [26] dplyr_0.7.6        htmlwidgets_1.2    hms_0.4.2          grid_3.5.1         tidyselect_0.2.4  
   [31] glue_1.3.0         R6_2.2.2           Rook_1.1-1         XML_3.98-1.13      ggplot2_3.0.0     
   [36] tidyr_0.8.1        purrr_0.2.5        readr_1.1.1        magrittr_1.5       scales_0.5.0      
   [41] htmltools_0.3.6    assertthat_0.2.0   colorspace_1.3-2   brew_1.0-6         stringi_1.2.4     
   [46] visNetwork_2.0.4   lazyeval_0.2.1     munsell_0.5.0      crayon_1.3.4 
   
   
   ## Error Message:
   
   > library(mxnet)
   Error: package or namespace load failed for ‘mxnet’:
    .onLoad failed in loadNamespace() for 'mxnet', details:
     call: dyn.load(file, DLLpath = DLLpath, ...)
     error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/mxnet/libs/libmxnet.so':
     dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/mxnet/libs/libmxnet.so, 10): Library not loaded: /usr/local/opt/openblas/lib/libopenblasp-r0.3.1.dylib
     Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/mxnet/libs/libmxnet.so
     Reason: image not found
   
   ## Minimum reproducible example
   (If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
   
   ## Steps to reproduce
   (Paste the commands you ran that produced the error.)
   
   (In RStudio:)
   cran <- getOption("repos")
   cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/"
   options(repos = cran)
   install.packages("mxnet")
   library(mxnet)
   
   
   ## What have you tried to solve it?
   
   In command:
   ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
   brew install openblas
   brew install opencv
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services