alt

配置centos上网

cd /etc/sysconfig/network-scripts/  
vi ifcfg-enoxxxxxxxxx  
将最后一行的ONBOOT=no改为ONBOOT=yes  
service network restart  
yum install net-tools  

GCC安装
yum install gcc-c++


一键安装开发工具集合
yum groupinstall "Development Tools"


EPEL仓库安装
yum install epel-release


安装GDB

yum install ncurses-devel  
wget http://ftp.gnu.org/gnu/gdb/gdb-7.6.1.tar.gz  
tar -zxvf gdb-7.6.1.tar.gz  
./configure  
make  
sudo make install  
cp gdb-7.6.1/gdb/gdb /usr/bin/gdb   
gdb -v  

OPEN SSL 安装
yum install openssl-devel


iconv 下载安装

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz  
tar -zxvf libiconv-1.14.tar.gz   
cd cd srclib/  
sed -i -e '/gets is a security/d' ./stdio.in.h  

./configure --prefix=/usr/local  
make  
make install

mysqlclient安装
yum install mysql-devel


CURL安装

wget http://curl.haxx.se/download/curl-7.39.0.tar.gz
tar -xzvf curl-7.39.0.tar.gz
cd curl-7.39.0
./configure --with-ssl
make
make install

BOOST安装

yum install boost    
yum install boost-devel    
yum install boost-doc

libevent安装
yum install libevent-devel


安装PIL图像处理模块
yum install python-imaging