centos6.5环境下安装python2.7 解压python源码包 tar -xf Python-2.7.6.tar.xz 进入软件包目录 cd Python-2.7.6 添加配置项 ./configure --prefix=/usr/local/python27 编译 make 报错 Python build finished, but the necessary bits to build these modules were not found: _bsddb …
Centos6自带的gcc4.4.7不支持c++11, 于是编译安装最新版的gcc wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz .tar.xz cd gmp- ./configure --prefix=/usr/local/gmp make && make install wget http://www.mpfr.org/mpfr-current/mpfr-3.1.6.tar.gz .tar.gz cd mpfr- ./con…