microsoft / SEAL

Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library.
https://www.microsoft.com/en-us/research/group/cryptography-research/
MIT License
3.62k stars 711 forks source link

System.DllNotFoundException: Unable to load shared library 'sealc' or one of its dependencies. #636

Open rauleteee opened 1 year ago

rauleteee commented 1 year ago

I am trying to run a C# Program (an api created with dotnet) inside an ubuntu20.04 server using the Seal libraries with the nuget Package previously installed from visual studio. When doing dotnet run, it seems that there is no error, but when trying to use the libraries in one of the functions, I get the following error: System.DllNotFoundException: Unable to load shared library 'sealc' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.4/sealc.so: cannot open shared object file: No such file or directory /root/apitfgraul/bin/Debug/net7.0/sealc.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.4/libsealc.so: cannot open shared object file: No such file or directory /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.32' not found (required by /root/apitfgraul/bin/Debug/net7.0/libsealc.so) /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.4/sealc: cannot open shared object file: No such file or directory /root/apitfgraul/bin/Debug/net7.0/sealc: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.4/libsealc: cannot open shared object file: No such file or directory /root/apitfgraul/bin/Debug/net7.0/libsealc: cannot open shared object file: No such file or directory

at Microsoft.Research.SEAL.NativeMethods.EncParams_Create(Byte scheme, IntPtr& encParams) at Microsoft.Research.SEAL.EncryptionParameters..ctor(SchemeType scheme) at ApiUsersFlow.Controllers.UserController.PostSchedule(Schedule schedule, Int32 user_id) in /root/apitfgraul/Controllers/UserController.cs:line 151 ` I have tried to change the compiler to x64 from what I have read in other issues, but the error persists. Obviously I have installed the seal nuget package from Visual Studio in my mac. Is there any easy way to add the dependencies correctly from the ubuntu server? I don't really understand the error.

Any help is welcome.

Best regards, R.

patriciaOrtuno28 commented 1 year ago

I have the same issue, has anyone found the solution yet?

DANIHLARA commented 1 year ago

I'm also experiencing this issue and haven't found a solution yet. Has anyone been able to resolve it?