Issue
Based on the Pro Git book by Scott Chacon on page 9, to install Git on Ubuntu we need to have libraries that Git depends on: curl, zlib, openssl, expat, and libioconv. Thus, I type
$ sudo apt-get install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
and I got the error message
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package curl-devel
So has anyone ever met this issue?
I'm using Ubuntu 10.04 LTS, and the Git version I'm trying to install is git-1.7.3.
Thank you.
Solution
Have you tried simply sudo apt-get install git-core
? Package managers are designed to resolve dependencies for you, so that you don't have to do it manually. Granted, the version of Git that's in the lucid package repository is 1.7.0, but unless you really need the very latest version, it may be much simpler to just go with the one supported for your release (or update Git later after installing the supported version).
apt
would go and find the dependencies listed here for you, and prompt you to have it automatically install them as well.
Answered By - Amber Answer Checked By - Pedro (WPSolving Volunteer)