Git Basic Environment Configuration

Source: Internet
Author: User

Git Basic Environment Configuration

The existing git version in the yum source is too low, so it is easy to compile the source code. Because many projects on git require different python environments, keep the python2.x version that comes with the system and compile python3.x.

# wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz# tar xvf Python-3.5.2.tgz -C /usr/local/src# cd /usr/local/src/Python-3.5.2# ./configure --prefix=/usr/local/python3# make && make install# ln -sv /usr/local/python3/bin/python3.5 /usr/local/bin/python3

Python compilation Error
urllib.error.URLError: <urlopen error unknown url type: https>

After openssl is installed and openssl-devel is installed, cancel the following SSL comments and re-compile

vim Python-path/Modules/Setup.dist207 #SSL=/usr/local/sslSL)/include -I$(SSL)/include/openssl \208 #_ssl _ssl.c \ib -lssl -lcrypto209 #       -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \210 #       -L$(SSL)/lib -lssl -lcryptoefault because it breaks builds

Install setuptools & pip
Https://pypi.python.org/pypi/setuptools
Http://peak.telecommunity.com/DevCenter/EasyInstall

# Python -- versionPython 2.7.5 # wget https://bootstrap.pypa.io/ez_setup.py-O-| python # system comes with python2.x # wget https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a # Install pip # tar xvf pip-8.1.2.tar.gz-C/usr/local/# cd/usr /local/pip-8.1.2/# python setup. py install # pip -- versionpip 8.1.2 from/usr/lib/python2.7/site-packages/pip-8.1.2-py2.7.egg (python 2.7) # python3-VPython 3.5.2 # wget https://bootstrap.pypa.io/ez_setup.py-O-| python3 custom python # cd/usr/local/pip-8.1.2/# python3 setup. py install # pip3-Vpip 8.1.2 from/usr/local/python3/lib/python3.5/site-packages/pip-8.1.2-py3.5.egg (python 3.5)

Install git

 # yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc xmlto docbook2x # tar xvf git-2.9.2.tar.gz -C /usr/local/src/ # cd /usr/local/src/git-2.9.2/ # make configure # ./configure --prefix=/usr/local # make && make install

GitHub Tutorials:

Create a personal technical blog via GitHub

GitHub tutorials

Git tag management details

Git branch management

Git remote repository details

Git local Repository (Repository) Details

Git server setup and Client installation

Git Overview

Share practical GitHub tutorials

GitHub details: click here
GitHub: click here

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.