JuliaInterop / JuliaCall

Embed Julia in R
https://non-contradiction.github.io/JuliaCall/index.html
Other
267 stars 36 forks source link

FATAL ERROR: Symbol "ccalllib_libR.dylib362"not found #160

Open camilogarciabotero opened 3 years ago

camilogarciabotero commented 3 years ago

Hi @all,

I was trying to execute a simple Julia command on a Rmarkdown code chunk:

chunk options: {julia engine.path="usr/local/bin/"}

x = 1

Then I got the following message:

FATAL ERROR: Symbol "ccalllib_libR.dylib362"not found
signal (6): Abort trap: 6
in expression starting at /usr/local/lib/R/4.0/site-library/JuliaCall/julia/setup.jl:72

The Rstudio session was then aborted.


I'm using the following setup:

For R:

R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin19.6.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /usr/local/Cellar/r/4.0.3_2/lib/R/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 
[6] methods   base     

other attached packages:
[1] JuliaCall_0.17.2

loaded via a namespace (and not attached):
 [1] compiler_4.0.3  htmltools_0.5.1 tools_4.0.3    
 [4] yaml_2.2.1      Rcpp_1.0.6      rmarkdown_2.6  
 [7] knitr_1.31      xfun_0.20       digest_0.6.27  
[10] rlang_0.4.10    evaluate_0.14  

for Julia

Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

If there is anything else I can communicate, I'll be looking forward to it. Camilo García.

PS: a similar issue was reported previously on Stack Overflow here

Non-Contradiction commented 3 years ago

Thanks for the feedback! What happens if you using RCall in julia?

camilogarciabotero commented 3 years ago

Hey @Non-Contradiction thanks for the quick response.

I'm getting this error message:

FATAL ERROR: Symbol "ccalllib_libR.dylib721"not found
signal (6): Abort trap: 6
in expression starting at REPL[3]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 7893462 (Pool: 7889200; Big: 4262); GC: 9
[1]    17104 abort      julia