python linux agent,Goagent linux 部署python

Goagent centos 5.8部署错误解决

python 报错,查看python的版本。需要2.7

# wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2

# tar xf Python-2.7.3.tar.bz2

# cd Python-2.7.3

# ./configure --prefix=/usr/local

# make && make altinstall

运行 进入local 下

python proxy.py

提示缺少什么类 就安装什么类

easy_install-2.7 pyOpenSS

easy_install 安装就是distribute

wget http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz

tar xf distribute-0.6.35.tar.gz

cd distribute-0.6.35

python2.7 setup.py install

提示如下

Installing easy_install-2.7 script to /usr/local/bin

ImportError: No module named OpenSSL

easy_install-2.7 pyOpenSS

这里会报错 提示consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

安装libffi

wget ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz

./configure #这里默认路径是在/usr/local/

make && make instll

所以,原本是在/usr/lib/pkgconfig

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

error  certutil: function failed: security library: bad database.

yum install nss-tool

然后清空用户目录下的

mv $HOME/.pki/nssdb  $HOME/.pki/nssdb.bak

mkdir -p $HOME/.pki/nssdb

certutil -d $HOME/.pki/nssdb -N

密码不输为空

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值