devtools dependency not available in EC2 terminal

I'm trying to install devtools on a EC2 instance and i need to install a dependency -- libgit2-devel -- before devtools. Every time i run

sudo yum install libgit2-devel

i get an error message saying that the package is not available

You might be missing a repository, I don't have experience with RHEL based Linux distributions but if you give more details about what Linux distribution you are using on your EC2 instance someone could give you a solution.
Also, even if there is no libgit2-devel available for your Linux distro, you can always compile it from source.

git clone
cd libgit2
mkdir build && cd build
sudo su
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
cmake --build . --target install
cd ..
rm -rf libgit2
NAME="Amazon Linux"
ID_LIKE="centos rhel fedora"
PRETTY_NAME="Amazon Linux 2"

this is the distro details

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.