libgit2 / libgit2/libgit2sharp
NativeMethods. Version GLIBC_2.25' not found
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 3.5k
- Fork
- 925
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi!
I test my LibGit2Sharp application on old Linux platform and stuck with error, after some research i execute ldd command inside terminal:
ldd libgit2-a418d9d.so
Output:
version GLIBC_2.25' not found (required by /usr/lib/versioncontrol/libgit2-a418d9d.so)
It seems that this is the real cause of the load DLL error.
How can I embed this dependency directly into the application so that it doesn't try to look for it in the system?
Currently, GLIBC_2.24 is installed on the machine. Updating GLIBC to a newer version, like 2.25, is not possible due to company policies.
Reproduction steps
Start application and execute "pull" command through LibGit2Sharp.
Expected behavior
Execute of "pull" command successfully finished.
Actual behavior
Error on application "Pull" command:
The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
InnerException = {"Unable to load DLL 'git2-a418d9d' or one of its dependencies: }
Version of LibGit2Sharp (release number or SHA1)
0.30.0
Operating system(s) tested; .NET runtime tested
Astra Linux 1.6
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi của lệnh pull trên Astra Linux 1.6 với LibGit2Sharp 0.30.0, sau đó kiểm tra đầu ra của ldd cho libgit2-a418d9d.so và ngoại lệ trình khởi tạo kiểu của NativeMethods. Xác định xem có thể xử lý phần phụ thuộc GLIBC_2.25 trong ứng dụng hay không; được xem là hoàn tất khi lệnh pull hoàn thành trên một hệ thống có GLIBC_2.24 mà không có lỗi tải DLL.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp
- Lĩnh vực
- operating-systems
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100