gcc编译安装
- 解压下载的gcc包:tar -xxx gcc-xxxx.xxx.xx
- 下载安装gcc依赖库:./contrib/download_prerequisites
- configure一个Makefile:./configure --prefix=/usr/local/gcc-6.3.0 --enable-languages=c,c++ --enable-checking=release --disable-multilib --with-system-zlib
- make
- make install
- 设置环境变量
python编译安装
- 解压下载的python包:tar -xxx python-xxxx.xxx.xx
- configure一个Makefile:./configure --enable-optimizations --prefix=/usr/local/Python-2.7.13/ --enable-shared
- 配置Module/Setup #从Setup.dict拷贝后编辑
- make && make install
- 设置环境变量