-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
Running dotnet CLI 2.1.5 on Ubuntu 18.04.1 LTS, git-istage throws this exception:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'git2-8e0b172' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgit2-8e0b172: cannot open shared object file: No such file or directory
at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
at LibGit2Sharp.Core.NativeMethods.LoadNativeLibrary()
at LibGit2Sharp.Core.NativeMethods..cctor()
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.NativeMethods.git_repository_discover(GitBuf buf, FilePath start_path, Boolean across_fs, FilePath ceiling_dirs)
at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
at LibGit2Sharp.Repository.Discover(String startingPath)
at GitIStage.Program.ResolveRepositoryPath() in /home/vsts/work/1/s/src/git-istage/Program.cs:line 36
at GitIStage.Program.Main() in /home/vsts/work/1/s/src/git-istage/Program.cs:line 14
error: git-istage died of signal 6
Turning up LD_DEBUG yields this nugget:
7259: /usr/lib/x86_64-linux-gnu/libcurl.so.4: error: version lookup error: version `CURL_OPENSSL_3' not found (required by /home/thor/.dotnet/tools/.store/git-istage/0.2.2/git-istage/0.2.2/tools/netcoreapp2.1/any/runtimes/linux-x64/native/libgit2-8e0b172.so) (fatal)
It looks like LibGit2Sharp depends on libcurl3 as referenced in this issue. So this will probably go away when LibGit2Sharp updates their native library.
For completion's sake, my dotnet config:
.NET Core SDK (reflecting any global.json):
Version: 2.1.403
Commit: 04e15494b6
Runtime Environment:
OS Name: ubuntu
OS Version: 18.04
OS Platform: Linux
RID: ubuntu.18.04-x64
Base Path: /usr/share/dotnet/sdk/2.1.403/
Host (useful for support):
Version: 2.1.5
Commit: 290303f510
.NET Core SDKs installed:
2.1.403 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
nozzlegearterrajobst
Metadata
Metadata
Assignees
Labels
No labels