curl安装

问题1:

curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file

 

解决方案:

 ldconfig -v

 

ldconfig作用:

/sbin/ldconfig - configure dynamic linker run time bindings

-v     Verbose  mode.   Print  current  version  number,  the name of each directory as it is scanned, and any links that are created.
Overrides quiet mode.

 

问题2:

ImportError: /usr/lib64/python2.6/site-packages/pycurl.so: undefined symbol: Curl_base64_encode

我只要pycurl.so它一个,所以进入pycurl-7.19.0\src
修改下
vim Makefile
PYINCLUDE=/usr/include/python2.6/

注意这儿需要 python-devel, 没安装的就安装吧(就当更新python玩吧)

yum install python-devel

OK, 编译下pycurl.so

make
cp /usr/lib64/python2.6/site-packages/pycurl.so  /home/backup  ##备份下之前,有问题也好恢复
cp  ./pycurl.so  /usr/lib64/python2.6/site-packages/pycurl.so


好了,运行下yum试试。

http://www.ossec.cn/?p=430

http://hi.baidu.com/newcloud/item/c8635bfa6cefeb0bd99e7270

 

posted @ 2013-12-13 19:00  小郭学路  阅读(438)  评论(0编辑  收藏  举报