Upgrading Git on Linux/Ubuntu

Git uses gnuTLS by default on Ubuntu. If you are using a version of Ubuntu that is older than 14.10, You must upgrade the Linux Git client version to 1.8.1.2 or higher and either configure Git to use openSSL instead of gnuTLS or upgrade Unubtu to 14.10 or higher, which uses a version of gnuTLS that is compatible with Qualcomm's servers.

Here are the steps to configure Git to use openSSL:

sudo apt-get install libcurl4-openssl-dev build-essential autoconf
git clone https://github.com/git/git
cd git
git checkout v2.1.2
make configure
./configure with-openssl
make prefix=/usr/local all
sudo make prefix=/usr/local install

After upgrading, log out and log back in, and do git —version to verify the upgrade was successful.

Error You May Find During Installation

tclsh failed; using unoptimized loading
MSGFMT    po/de.msg make[1]: *** [po/de.msg] Error 127
make: *** [all] Error 2

Solution:

$ sudo apt-get install gettext

Alternate method:

sudo apt-get install libcurl4-openssl-dev build-essential wget http://git-core.googlecode.com/files/git-1.8.2.tar.gz tar xvfz git-1.8.2.tar.gz cd git-1.8.2 ./configure with-openssl make prefix=/usr/bin all sudo make prefix=/usr/bin install Preferred Package To upgrade Git on Linux, it is easiest to install using the preferred package manager of your Linux distribution.

See http://git-scm.com/download/linux for commands for your Linux OS Check the version of git by using the following command:

git --version

Alternate Package

If the preferred package version of Git on your Linux OS is not sufficient for use with Qualcomm® Package Manager, then you will need to download the source and then build it for your system.

Download or clone the code from https://github.com/git/git.git Navigate your shell to the cloned path of the Git source code and then type the following commands:

make make install

Check the version of Git after the install

git --version

Built Git files may not be placed in usr/bin by default. If they are not, then you must copy them there, or adjust your PATH to point to the location where Git was built and placed. For example:

sudo cp ~/bin/git* /usr/bin sudo cp -r ~/lib/* /usr/lib sudo cp -r ~/libexec/* /usr/libexec sudo cp -r ~/share/* /usr/share

Installer Dependencies

The Git installer is reasonably self-sufficient, but does require some basic libraries to be present. Here are a few that have been known to be missing. If you receive any compile errors, you can use these commands to verify you are up-to-date on the required components:

sudo apt-get install libexpat1-dev
sudo apt-get install libc6-dev
sudo apt-get install libcurl4-openssl-dev