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
密码不输为空

你可能感兴趣的:(goagent)