Linking error related to libcurl.so.4 when using PreCICE.jl

I get the following error from Julia v1.10.0 while using the Julia bindings of preCICE:

version `CURL_OPENSSL_4' not found (required by /lib/x86_64-linux-gnu/libhdf5_openmpi.so.103)

How can I resolve this?

It appears that this error occurs because Julia ships the file libcurl.so.4 which conflicts with the system file of the same name. A quick and dirty solution is to find the libcurl.so.4 file in the Julia installation and do the following:

mv libcurl.so.4 libcurl.so.4.bak
ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4 libcurl.so.4

This workaround is a solution, but may have unintended consequences that have not been investigated.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.