centos6 部署c++11

折腾了一个上午,如果用我之前的办法安装不成功的,请尝试此方法

yum install policycoreutils-python

下载以下四个文件,然后用rpm -ivf安装

http://pan.baidu.com/s/1dEbDg57

之前的链接 http://blog.csdn.net/hificamera/article/details/49992319


sudo yum update binutils
to fix the problem: expecting string instruction after `rep'


要在新的两台服务器上部署c++11代码,需要在centos6上安装 g++ gcc 4.8+

选择了  安装 devtoolset-2,总是提示mirror不行,安装一直失败,不是是服务器网络的原因还是对端网络的原因

因此打算使用 之前自己已经搭建好的代理服务器,但是那台代理是socks,因此又要先安装shadowssocks,然后还有转socks协议为 http

先安装pip

https://pip.pypa.io/en/latest/installing/

wget https://bootstrap.pypa.io/get-pip.py

python get-pip.py

pip install shadowsocks

ln -s /usr/local/python/bin/sslocal /usr/bin/sslocal

sslocal -s 192....... -p 10234 -b 127.0.0.1 -l 1080 -k keywords 600 -m aes-256-cfb


安装 转换为 http协议的工具

http://sourceforge.net/projects/ijbswa/files/Sources/

下载后 解压

tar xzvf privoxy-3.0.23-stable-src.tar.gz

cd privoxy-3.0.23-stable


接下来要安装一个 cvs,虽然我现在还不知道他是干啥用的,好像是要获取最新的代码文件

cvs -d:pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa login
cvs -z3 -d:pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa co current
cd current


yum install automake

遵循INTALL文件中 


autoheader
autoconf
./configure      # (--help to see options)
make             # (the make from GNU, sometimes called gmake)
su               # Possibly required
make -n install  # (to see where all the files will go)
make -s install  # (to really install, -s to silence output)

 # /etc/init.d/privoxy start

参考 http://laowang.me/centos-global-privoxy.html

http://www.ttlsa.com/linux/how-to-install-c11-gcc4-8-x/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值