You need a C++ compiler for C++ support. 解决问题。
yum install -y gcc gcc-c++
1.Linux 的软件安装有
rpm rpm -i sofe ; rpm -e sofe
yum yum管理rpm包 ,有效解决rpm包依赖问题
二进制编译
1.memcached 做例子:
a.配置 configure --prefix=/安装/路径
b.make & make install
wget http://www.memcached.org/files/memcached-1.4.34.tar.gz
tar xzvf memcached
a.解决依赖
http://libevent.org/
./configure --prefix=/usr/local/libevent
make&&make install(啥时候用是因为libevent is required )
./configure --prefix = usr/local/memcached --with-libevent=/usr/local/libevent 配置变量环境
make && make install