centos 源码安装 对应安装devel
源码安装不需要安装对应的devel,只需要下面的红字部分,和安装devel是一个效果,下面用python源码安装作为例子,红字部分相当于安装了python2.7-devel
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar xJf Python-2.7.6.tar.xz
cd Python-2.7.6
./configure --enable-shared --prefix=/usr/local/python2.7
make
make install
echo /usr/local/python2.7/lib > /etc/ld.so.conf.d/python2.7.conf
ldconfig
restorecon -RF /