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
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 https://github.com/libgit2/libgit2
cd libgit2
mkdir build && cd build
sudo su
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
cmake --build . --target install
cd ..
rm -rf libgit2
exit
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
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.