Git commands don't work on RHEL 6
See original GitHub issue/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load shared library '/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/../tools/netcoreapp2.0/runtimes/rhel-x64/native/libgit2-b0d9952.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/../tools/netcoreapp2.0/runtimes/rhel-x64/native/libgit2-b0d9952.so) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(String unmanagedDllPath) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at System.Runtime.Loader.AssemblyLoadContext.LoadUnmanagedDllFromPath(String unmanagedDllPath) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at Microsoft.Build.Tasks.Git.GitLoaderContext.LoadUnmanagedDll(String unmanagedDllName) in /_/src/Microsoft.Build.Tasks.Git/GitLoaderContext.cs:line 48 [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at System.Runtime.Loader.AssemblyLoadContext.ResolveUnmanagedDll(String unmanagedDllName, IntPtr gchManagedAssemblyLoadContext) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at LibGit2Sharp.Core.NativeMethods.git_libgit2_init() [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary()
[/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at LibGit2Sharp.Core.NativeMethods..cctor() [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: --- End of inner exception stack trace --- [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at LibGit2Sharp.Core.NativeMethods.git_buf_free(GitBuf buf) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
[/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at LibGit2Sharp.Repository.Discover(String startingPath) [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at Microsoft.Build.Tasks.Git.RepositoryTasks.LocateRepository(LocateRepository task) in /_/src/Microsoft.Build.Tasks.Git.Operations/RepositoryTasks.cs:line 50 [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at Microsoft.Build.Tasks.Git.LocateRepository.Execute() in /_/src/Microsoft.Build.Tasks.Git/LocateRepository.cs:line 22 [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/git/corefx/external/netstandard/netstandard.depproj]
/root/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63201-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/git/corefx/external/netstandard/netstandard.depproj]
For now corefx will just disable SourceLink on this platform but I thought I’d file an issue to consider fixing this for platforms that don’t have GLIBC.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
[Solved] Cannot install git on RHEL 6 - UNIX and Linux Forums
Hi, I am trying to install git on RHEL 6. From the research I have done I should be able to just say:...
Read more >How to fix a "Command not found" error in Linux
5. Install a package. Sometimes when you try to use a command and Bash displays the "Command not found" error, it might be...
Read more >How to install Git on redhat RHEL 6.5
1 Answer 1 ... It seems yum repo is not configured on your machine. To verify please run command "yum repolist". "yum update"...
Read more >Problems While Installing Git in RHEL 7.6
I am trying to install git and I get the following error though I have a valid subscription of the RHEL Client 7.6....
Read more >How to Install Git on RHEL 6 (Red Hat Enterprise Linux ...
Step 1 – Enable Wandisco repository · Step 2 – Install Git into Red Hat Linux · Step 3 – Check Git Version...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Please prioritize this right as it currently blocks local Ubuntu 18.04 and WSL builds in corefx.
Should be fixed in version
1.0.0-beta2-18618-05
.