Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rauleteee opened this issue Apr 18, 2023 · 2 comments

Comments

@rauleteee
Copy link

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
Copy link

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

@DANIHLARA
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants