SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 69920: Attempting to clone a Git repository fails with "ERROR: Unable to load libgit2.module"

DetailsDownloadsHotfixAboutRate It

When you attempt to clone a Git repository in SAS® Studio, it fails with the following messages:

NOTE: libgit2.so not found in the system location, trying the extension path.
NOTE: libgit2.so not found in the system location, trying the install path.
ERROR: libgit2.so not found.
ERROR: Unable to load libgit2 module.

This problem occurs if the OpenSSL version is different from what the libgit2 and libshh2 versions that shipped with SAS were built with. The default version of OpenSSL that is supported with Git is 1.0.x

You can obtain the OpenSSL version by issuing the following Linux command:

openssl version

OpenSSL 1.1.x Is Installed

SAS® Viya® platform: Download the libgit2.zip and libssh2.so.zip files from the Downloads tab. 

SAS® 9.4M7 or SAS® 9.4M8: Install the hot fix and download libgit2.zip and libssh2.so.zip from the Downloads tab.

OpenSSL 3 Is Installed

SAS Viya platform: Install OpenSSL 1.0.x and use the libraries shipped with SAS, or install OpenSSL 1.1.x and download the libgit2.zip and libssh2.so.zip files from the Downloads tab.

SAS 9.4M7 or SAS9.4M8: Install the hot fix, install OpenSSL 1.0.x, and use the libraries shipped with SAS, or install OpenSSL 1.1.x and download the libgit2.zip and libssh2.so.zip files from the Downloads tab.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS StudioSolaris for x649.4 TS1M7
Linux for x649.4 TS1M7
HP-UX IPF9.4 TS1M7
64-bit Enabled Solaris9.4 TS1M7
64-bit Enabled AIX9.4 TS1M7
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.