[root@frontend01 yum.repos.d]# cd /etc/yum.repos.d;wget http://rpms.adiscon.com/v8-stable/rsyslog.repo
--2016-09-26 10:25:40-- http://rpms.adiscon.com/v8-stable/rsyslog.repo
Resolving rpms.adiscon.com... 45.55.202.239
Connecting to rpms.adiscon.com|45.55.202.239|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 227
Saving to: “rsyslog.repo.1” 100%[=======================================================================================================================================================================================>] 227 --.-K/s in 0s 2016-09-26 10:25:40 (28.2 MB/s) - “rsyslog.repo.1” saved [227/227] [root@frontend01 yum.repos.d]# yum install rsyslog
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was: /usr/lib64/python2.6/site-packages/pycurl.so: undefined symbol: CRYPTO_set_locking_callback Please install a package which provides this module, or
verify that the module is installed correctly. It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq 解决:
[root@frontend01 pycurl-7.19.0]# python setup.py install --curl-config=/root/soft/curl-7.44.0/curl-config
sh: /root/soft/curl-7.44.0/curl-config: Permission denied
Traceback (most recent call last):
File "setup.py", line 90, in <module>
raise Exception, ("`%s' not found -- please install the libcurl development files" % CURL_CONFIG)
Exception: `/root/soft/curl-7.44.0/curl-config' not found -- please install the libcurl development files
[root@frontend01 pycurl-7.19.0]# ls -lltr /root/soft/curl-7.44.0/curl-config
-rw-r--r-- 1 root root 4780 Aug 24 14:14 /root/soft/curl-7.44.0/curl-config
[root@frontend01 pycurl-7.19.0]# vim python setup.py install --curl-config=/data/apps/deps/curl/bin/curl-config^C
[root@frontend01 pycurl-7.19.0]# vim /root/soft/curl-7.44.0/curl-config
[root@frontend01 pycurl-7.19.0]# chmod +x /root/soft/curl-7.44.0/curl-config
[root@frontend01 pycurl-7.19.0]# python setup.py install --curl-config=/root/soft/curl-7.44.0/curl-config src/pycurl.c:3423: warning: return type defaults to ‘int’
src/pycurl.c: In function ‘DL_EXPORT’:
src/pycurl.c:3423: error: expected declaration specifiers before ‘initpycurl’
src/pycurl.c:3906: error: expected ‘{’ at end of input
error: command 'gcc' failed with exit status 1 [root@frontend01 ~]# rpm -qa | grep pycurl-7.19.0
python-pycurl-7.19.0-8.el6.x86_64 zjtest7-frontend:/usr/lib64# ls -ltr *curl*
-rwxr-xr-x 1 root root 346008 Jun 26 2013 libcurl.so.4.1.1
lrwxrwxrwx. 1 root root 16 Jan 15 2015 libcurl.so.4 -> libcurl.so.4.1.1 解决方法:
[root@frontend01 lib64]# ls -ltr *curl*
-rwxr-xr-x 1 root root 346424 May 28 2014 libcurl.so.4.1.1
-rwxr-xr-x 1 root root 367232 Aug 24 14:15 libcurl.so.4.4.0
-rwxr-xr-x 1 root root 940 Aug 24 14:15 libcurl.la
-rw-r--r-- 1 root root 729124 Aug 24 14:15 libcurl.a
lrwxrwxrwx 1 root root 16 Sep 26 11:26 libcurl.so.4 -> libcurl.so.4.1.1

/usr/lib64/python2.6/site-packages/pycurl.so: undefined symbol: CRYPTO_set_locking_callback的更多相关文章

  1. yum运行报错:/usr/lib64/python2.7/site-packages/pycurl.so: undefined symbol: CRYPTO_num_locks

    是因为yum动态库使用了新安装libcurl库导致的.使用ldd查看动态库依赖关系: ldd /usr/lib64/python2.7/site-packages/pycurl.so 删除动态库配置中 ...

  2. /usr/lib64/python2.6/lib-dynload/pyexpat.so: symbol XML_SetHashSalt, version EXPAT_2_0_1_RH not defined in file libexpat.so.1 with link time reference

    解决方法:[root]$cd /usr/lib64/python2.6/lib-dynload[root]$ln -s /lib64/libexpat.so.1.5.2 libexpat.so.0[r ...

  3. centos perl: symbol lookup error: /usr/local/lib64/perl5/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init

    之前在安装天兔数据库监控工具lepus的时候,运行时一直报perl: symbol lookup error: /usr/local/lib64/perl5/auto/DBD/mysql/mysql. ...

  4. /usr/lib64/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team

    升级python2.6到2.7后,执行ansible后一直显示警告,如标题所示. 因为安装ansible,使用的是yum的方式,而yum使用的是python2.6,所以ansible安装环境为pyth ...

  5. /usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child

    https://www.jb51.net/article/142787.htm gn gn  问题如何解决?????

  6. R语言 启动报错 *** glibc detected *** /usr/lib64/R/bin/exec/R: free(): invalid next size (fast): 0x000000000263a420 *** 错误 解决方案

    *** glibc detected *** /usr/lib64/R/bin/exec/R: free(): invalid next size (fast): 0x000000000263a420 ...

  7. error while loading shared libraries: /usr/lib64/libc.so.6: invalid ELF header

    在安装一个程序的时候提示libc.so.6过旧,但是查看libc.so的版本是最新的,于是尝试使用尝试软链接  ln -s /usr/lib64/libc.so /usr/lib64/libc.so. ...

  8. yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between

    yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between attempted installs of php-pecl-f ...

  9. /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found,解压rpm包

    如果是64位系统报错信息如下: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by 原因是没有GLIB ...

随机推荐

  1. C++ —— 非常量引用不能指向临时对象

    目录 举例 分析 解决 1.举例 非常量引用 指向 临时对象 —— 即:将 临时对象 传递给 非常量引用类型. 如以下情况就会出现: 实现实数Rational类,实数可以使用+号相加,运算的结果要可以 ...

  2. Django URL传递参数的方法总结

    1 无参数情况 配置URL及其视图如下: 1 2 3 4 (r'^hello/$', hello)   def hello(request): return HttpResponse("He ...

  3. iOS CoreBluetooth 教程

    去App Store搜索并下载“LightBlue”这个App,对调试你的app和理解Core Bluetooth会很有帮助. ================================ Cor ...

  4. Linux 机器之间建立互信

    原理: 就是两台机器(web-1和web-2)经过预先设置好经过认证的key文件,双方互相访问时,进行自动认证,从而实现互信.   互信的原理了解了,我们可以把配置ssh互信的步骤进行有效的分割. 1 ...

  5. OD: Windows Kernel Debug

    内核调试入门 内核程序运行在内核态,因此不能像对用户态应用程序那样来调试.关于内核调试方面的知识请参考<软件调试>这本书.目前内核调试主要有以下三种方法. 一是使用硬件调试器,它通过特定的 ...

  6. file控件change事件触发问题

    最近,项目中需要用到一个图片上传的功能,我用的file控件来选取图片文件,然后利用js读取文件来预览图片,最后再根据用户的操作来决定是否上传文件. 其中碰到了一个奇怪的问题:在选取完第一张图片,并上传 ...

  7. Android开发手记(10) 下拉菜单Spinner

    1.自定义Spinner 首先,定义Spinner要显示的项目列表/res/values/arrays.xml <?xml version="1.0" encoding=&q ...

  8. c-参数(argument)

    In  C,  array arguments behave as though they are passed by reference, and scalar variables and cons ...

  9. ajax上传文件进度条

    <!doctype html> <html> <head> <meta charset="utf-8"> <title> ...

  10. intent.setFlags方法中参数值的含义

    intent.setFlags()方法中参数的含义 1.FLAG_ACTIVITY_NEW_TASK: 例如现在栈一的情况是:A    B   C(C位于栈顶),C通过intent跳转到D,并且这个I ...