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

Fails to build on Ubuntu #171

Closed
shaynevanasperen opened this issue Dec 14, 2018 · 3 comments
Closed

Fails to build on Ubuntu #171

shaynevanasperen opened this issue Dec 14, 2018 · 3 comments
Labels
question Further information is requested

Comments

@shaynevanasperen
Copy link

When building my project on Ubuntu, I get the following error:

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 helpdiagnose 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_open(git_repository*& repository, FilePath path)
     at LibGit2Sharp.Core.Proxy.git_repository_open(String path)
     at LibGit2Sharp.Repository..ctor(String path, RepositoryOptions options, RepositoryRequiredParameter requiredParameter)
     at MinVer.Lib.RepositoryEx.TryCreateRepo(String path, Repository& repository) in C:\projects\min-ver\MinVer.Lib\RepositoryEx.cs:line 16
     at MinVer.Program.GetVersion(String path, String tagPrefix, MajorMinor range, String buildMetadata, Verbosity level) in C:\projects\min-ver\minver-cli\Program.cs:line 80
     at MinVer.Program.<>c__DisplayClass1_0.<Main>b__0() in C:\projects\min-ver\minver-cli\Program.cs:line 34
     at MinVer.Program.Main(String[] args) in C:\projects\min-ver\minver-cli\Program.cs:line 27
  Aborted (core dumped)
@adamralph adamralph added the question Further information is requested label Dec 14, 2018
@adamralph
Copy link
Owner

@shaynevanasperen thanks for raising this. Please see the FAQ.

@slang25
Copy link
Contributor

slang25 commented Dec 14, 2018

Hey @shaynevanasperen, you could also try referencing LibGit2Sharp version 0.26.0-preview-0070 as a private dependency, they have done some reduce the native dependencies in that version. I can't guarantee it will work, I'm more curious that anything.

Edit: scrap that, because minver is ran as a separate process, that won't work

@slang25
Copy link
Contributor

slang25 commented Dec 20, 2018

Try now with beta2 @shaynevanasperen

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

No branches or pull requests

3 participants