-
Notifications
You must be signed in to change notification settings - Fork 663
Closed
Description
I installed GitVersion.Tool 5.0.0-beta5.11 on a freshly setup Ubuntu 19.04 machine with dotnet-sdk-2.2 using the dotnet cli.
When trying to execute it with dotnet gitversion from within a clone of the GitVersion repo, I get the following error message:
INFO [07/15/19 2:39:01:23] Working directory: /home/***/Repositories/GitVersion
INFO [07/15/19 2:39:01:23] IsDynamicGitRepository: False
ERROR [07/15/19 2:39:01:26] An unexpected error occurred:
System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'git2-572e4d8' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgit2-572e4d8: cannot open shared object file: No such file or directory
at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary()
at LibGit2Sharp.Core.NativeMethods..cctor()
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.NativeMethods.git_buf_dispose(GitBuf buf)
at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
at LibGit2Sharp.Repository.Discover(String startingPath)
at GitVersion.GitPreparer.GetDotGitDirectory() in D:\a\1\s\src\GitVersionCore\GitPreparer.cs:line 158
at GitVersion.GitPreparer.GetProjectRootDirectory() in D:\a\1\s\src\GitVersionCore\GitPreparer.cs:line 172
at GitVersion.ConfigFileLocator.Verify(GitPreparer gitPreparer, IFileSystem fileSystem) in D:\a\1\s\src\GitVersionCore\Configuration\ConfigFileLocator.cs:line 57
at GitVersion.Program.VerifyArgumentsAndRun() in D:\a\1\s\src\GitVersionExe\Program.cs:line 97
INFO [07/15/19 2:39:01:26]
INFO [07/15/19 2:39:01:26] Attempting to show the current git graph (please include in issue):
INFO [07/15/19 2:39:01:26] Showing max of 100 commitsOn a Ubuntu 18.04 server the tool works fine...
Metadata
Metadata
Assignees
Labels
No labels