Problem Note 69920: Attempting to clone a Git repository fails with "ERROR: Unable to load libgit2.module"
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 installed OpenSSL version is different from the versions used to build the libgit2.so and libssh2.so files deployed by SAS.
Windows:
For both SAS® 9.4M7 and SAS® 9.4M8, you only need to install the hot fix.
Linux:
The installation steps for this hot fix vary depending on the version of SAS 9.4 and OpenSSL that are installed.
You can obtain the OpenSSL version by issuing the following Linux command:
openssl version
OpenSSL 1.0.x
Installing this hot fix requires that you to update to OpenSSL 1.1.x. Then, follow the steps outlined for OpenSSL 1.1.x.
OpenSSL 1.1.x
For SAS 9.4M8, you only need to install the hot fix.
For SAS 9.4M7, you need to install the hot fix and then download the openssl11x.tgz file from the Downloads tab and install it using the steps outlined below.
OpenSSL 3.x
For SAS 9.4M8, you need to install the hot fix and then download the openssl3x.tgz file from the Downloads tab and install it using the steps outlined below.
For SAS 9.4M7, OpenSSL 3.x is not supported. You must upgrade to SAS 9.4M8 or later to use OpenSSL 3.x.
Installing updated libgit2.so and libssh2.so files
- Download and extract the appropriate .tgz file for your SAS 9.4 and installed OpenSSL verisons. Each tgz contains two files, libgit2.so and libssh2.so.1.
- In <SASHome>/SASFoundation/9.4/sasexe, rename the files libgit2.so, libssh2.so.1, and libssh2.so if they exist.
- Copy the extracted libgit2.so and libssh2.so.1 files to <SASHome>/SASFoundation/9.4/sasexe.
- Enter the directory <SASHome>/SASFoundation/9.4/sasexe
- Create a symbolic link pointing libssh2.so to libssh2.so.1 by running the following:
ln -s libssh2.so.1 libssh2.so
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Studio | Solaris for x64 | 9.4 TS1M7 | |
Linux for x64 | 9.4 TS1M7 | |
HP-UX IPF | 9.4 TS1M7 | |
64-bit Enabled Solaris | 9.4 TS1M7 | |
64-bit Enabled AIX | 9.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.
Right-click the link, select Save link as from the context menu, and browse to the location where you want to save the file: openssl11x.tgz
Right-click the link, select Save link as from the context menu, and browse to the location where you want to save the file: openssl3x.tgz
Note: You might encounter an issue where the browser shows an error on the top right of your screen when you try to save the file. If this happens, click Keep next to the file name in the pop-up error. Then, the file is saved successfully.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2025-07-22 11:16:13 |
Date Created: | 2023-03-03 11:23:20 |