JuliaInterop / JuliaCall

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

Startup error on Debian Linux #178

Closed hwborchers closed 2 years ago

hwborchers commented 2 years ago

When trying to start JuliaCall on Debian Linux 10, I get the following error and error message. Julia is on the path and can be started from the command window. Adding a JULIA_HOME to the setup command does not change the behavior. RCall on Julia works correctly.

fatal: error thrown and no exception handler available.
InitError(mod=:Sys, 
  error=ErrorException("PCRE compilation error: unrecognised compile-time option bit(s) at offset 0"))
error at ./error.jl:33
compile at ./pcre.jl:155
compile at ./regex.jl:82
#occursin#442 at ./regex.jl:265 [inlined]
occursin at ./regex.jl:265 [inlined]
isdirpath at ./path.jl:117 [inlined]
normpath at ./path.jl:369
abspath at ./path.jl:426
abspath at ./path.jl:435 [inlined]
__init_build at ./sysinfo.jl:125
__init__ at ./sysinfo.jl:117
jfptr___init___19479.clone_1 at /home/hwb/Programs/julia-1.7.1/lib/julia/sys.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1788 [inlined]
jl_module_run_initializer at /buildworker/worker/package_linux64/build/src/toplevel.c:73
_finish_julia_init at /buildworker/worker/package_linux64/build/src/init.c:796
julia_init at /buildworker/worker/package_linux64/build/src/init.c:730
jl_repl_entrypoint at /buildworker/worker/package_linux64/build/src/jlapi.c:695
main at /buildworker/worker/package_linux64/build/cli/loader_exe.c:42
__libc_start_main at /usr/lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at /usr/local/bin/julia (unknown line)
Error in julia_setup() : Julia is not found.

Versions: R 4.1.2; JuliaCall 0.17.4; Julia 1.7.1

(If someone can confirm that this error does not occur on Manjaro or Ubuntu Linux I would change to that distribution)

hwborchers commented 2 years ago

I updated my system to Debian Linux 11 (Bullseye) and JuliaCall works again.