RCall.jl icon indicating copy to clipboard operation
RCall.jl copied to clipboard

conflict libcurl.so in Julia >1.8

Open mtoniott opened this issue 11 months ago • 3 comments

The issue mentioned in https://github.com/JuliaInterop/RCall.jl/issues/475 is still relevant and happen with every version of Julia since 1.8.

mtoniott avatar Jan 20 '25 22:01 mtoniott

These kind of linking problems are somehow bound to happen. There are multiple versions of libcurl knocking about and it's not clear whether RCall.jl can arrange for the correct one to be loaded at the correct time. It would be good to know exactly what doesn't work.

Using CondaPkg with Conda versions of R packages may help, since this way everything gets set up to point to the right place. Otherwise hacking your library loading paths may help.

frankier avatar Mar 19 '25 14:03 frankier

This is also an issue specific to an individual's setup -- I run Julia with RCall on half a dozen machines (Linux on x86-64 and aarch64 as well as macOS on Apple silicon) and don't encounter this issue. I'm not denying that it happens, but I don't encounter it and so it's hard for me debug it.

Can you provide your versioninfo(), Pkg.status(), reval("sessionInfo()") as well as an example piece of code where you encounter this?

palday avatar Mar 20 '25 03:03 palday

A slightly nicer way to get Julia to use the version of libcurl you want than using LD_LIBRARY_PATH would be to use Preferences. However, only jlls in Yggdrasil offer that, not LibCURL_jll which is a stdlib bundled JLL. I've opened an issue in case this could be supported by LibCURL_jll in which case it could become the official workaround.

frankier avatar Apr 15 '25 14:04 frankier