Goagent linux 部署python
2015-07-02 17:35
513 查看
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
密码不输为空
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
密码不输为空
相关文章推荐
- archlinux下ionic build android---坑爹错误
- Linux下配置phpMyAdmin
- Linux puppet的安装配置部署
- Linux系统手动格式化小于2TB数据盘操作指引
- VMWare Linux 瘦身
- Linux系统手动格式化大于2TB数据盘操作指引
- 每天一个linux命令之umount命令
- Linux下PHP源码安装
- 在各种Linux系统的服务器上设置时间同步的方法
- linux日志文件系统-ext3
- linux 流量统计小程序
- 详解Linux系统中md5sum命令的用法
- ./pdffigures/pdffigures: /usr/lib/x86_64-linux-gnu/libstdc++.so.6:version `GLIBCXX_3.4.20' not found
- linux下查看进程和端口
- ubuntu文件管理常用命令 分类: linux ubuntu 学习笔记 2015-07-02 16:57 29人阅读 评论(0) 收藏
- Linux下硬链接和软链接的区别
- Linux sssd 认证
- Linux sssd 认证
- 解决linux下mysql登录提示1045错误
- 在Linux的命令行中操作屏幕录制的方法