vim7.4 with python2.7.10 support on RHEL 5 x86_64

  baidu一堆blog讲解怎么装。搞烦了,直接google,终于解决怎么安装了!自己太菜了,baidu太坑了~~

  参考url:https://github.com/vinodpandey/blog/blob/master/vim7.3-centos-with-python-2.7.3-support.txt

安装必要的环境

yum -y groupinstall ‘Development Tools‘
yum -y install openssl-devel zlib ncurses ncurses-devel bzip2-devel

  安装 python 2.7.10

sudo yum -y groupinstall ‘Development Tools‘
sudo yum -y install openssl-devel zlib ncurses ncurses-devel bzip2-devel
mkdir -p ~/temp
cd ~/temp
wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar zxvf Python-2.7.3.tgz
cd Python-2.7.3
./configure --prefix=/usr/local --with-threads --enable-shared
make
sudo make altinstall

echo "/usr/local/lib" >> python2.7.conf | sudo mv python2.7.conf /etc/ld.so.conf.d/python2.7.conf
"(/usr/local/lib should have libpython2.7.so )
sudo /sbin/ldconfig

" make python2.7 as default python in bash profile for vim setup
mkdir -p ~/bin
ln -s /usr/local/bin/python2.7 ~/bin/python
echo "export PATH=$HOME/bin:$PATH" >> ~/.bashrc
source ~/.bashrc

vim installation
=================
tar jxf vim-7.4.tar.bz2
tar zxf vim-7.2-extra.tar.gz
tar zxf vim-7.2-lang.tar.gz
mv vim72 vim74

mkdir -p ~/temp
cd ~/temp
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
tar jxvf vim-7.3.tar.bz2
cd vim73
./configure --enable-pythoninterp --with-python-config-dir=/usr/local/lib/python2.7/config --with-features=huge --disable-selinux
(compile with python support)
make
sudo make install

时间: 2024-10-11 23:11:15

vim7.4 with python2.7.10 support on RHEL 5 x86_64的相关文章

CentOS6默认的python2.6.6升级到python2.7.10

1.下载解压 wget http://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz tar -zxvf Python-2.7.10.tgz 2.编译安装 cd Python-2.7.10 ./configure --prefix=/usr/local/python2.7 make make install 3.添加软连接和修改yum mv /usr/bin/python /usr/bin/python2.6.6 ln -s /usr/loc

1.python环境搭建(python2.7.10+ PyCharm3.4.1+selenium)

1.下载软件并配置     (1) 需要软件:python2.7.10 和 PyCharm3.4.1,地址略,百度一大把的 (2) 安装python2.7.10 下一步一直下去,直到安装成功,我这里放在D:\Program Files\Python27 (3) 安装 PyCharm3.4.1 下一步一直下去,直到安装成功,打开后如下图: --点击configure --点击settings 点击settings,进入下图: 找到本地安装的python2.7.10中的python.exe后点击ok

CentOS 6.9编译安装Python-2.7.10

Python官网:https://www.python.org/ 一.查看CentOS版本和系统默认Python版本: # cat /etc/redhat-release # python -V 二.编译安装Python-2.7.10: 1.  安装依赖软件包及包组: # yum -y groupinstall "Development tools" # yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devels

Centos 安装 python2.7.10以及pip

安装python2.7.10 1. 下载安装包并解压 wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz tar -xf Python-2.7.10.tgz 2. 进行编译和安装 ./configure --prefix=/usr/local/bin make && make install 3. 调整/usr/bin/python的连接 因为原先有安装python2.6,所以需要调整命令连接 mv /usr/bi

Solaris 10u11 安装python2.7.10

##检查GCC版本 -bash-3.2# gcc --version gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Copyright (C) 2004 Free Software Foundation, Inc. ##下载python编译程序 -bash-3.2# wget   --no-check-certificate ##解压缩Python -bash-3.2# gunzip Python-2.7.10.tgz  -bash-3.2#

Centos7下编译安装python2.7.10

先安装必要的软件包  yum -y install openssl openssl-devel ncurses-devel.x86_64  bzip2-devel sqlite-devel python-devel zlib zlib-devel 2.下载 python2.7.10源码包 wget  mkdir -pv /usr/local/python/2.7.10/lib  tar zxvf Python-2.7.10.tgz cd Python-2.7.10/ ./configure --

CentOS6.6上安装Python2.7.10

CenoOS6.6 64位系统默认的Python版本是2.6.6,工作中需要使用Python2.7.10.本文介绍一下Python2.7.10的安装方法.切记:不可覆盖Python2.6.6,小心你的系统不能用了.总的来说安装过程是:Python2.7.10源码安装---->setuptools16.0安装---->pip安装 Python2.7.10源码安装预安装 yum groupinstall "Development tools";yum install zlib-

python2.7.10安装配置

因工作需要使用python 2.7版本,而Centos自带的是python2.6.6.所以得安装python2.7 ------------- 本来打算使得pyenv,可是公司网络不给力总下载不了,15M的东西都下载不了....不说,,,已跪!!! ===================================== 只好手动一点一点的安装配置了....记录下. python2.7.10安装配置文档 下载: wget https://www.python.org/ftp/python/2.

编译Python2.7.10

为了测试 mesos,搞了一个 centos7.1,使用最小化安装,然后自己安装了 net-tools,"开发工具"集.后来想装一下 DCOS Cli工具,结果发现 python 的 pip 不可用. 搜了一下,发现 Centos7自动的 python 版本为2.7.5,不带 openssl 加密,而要下载的东西都是 https 的,找了好久,希望能让 pip 忽略 https 的验证无果.查到一个信息,说是2.7.9以上版本自带了 openssl 插件.好吧,试试这个吧! 1.安装一