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.
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: version
GLIBC_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 directoryat 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.