zoukankan      html  css  js  c++  java
  • /usr/lib64/python2.6/site-packages/pycurl.so: undefined symbol: CRYPTO_set_locking_callback

    [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
    
    
    
    
    
    

  • 相关阅读:
    C语言I博客作业04
    C语言II博客作业03
    C语言II博客作业02
    C语言II博客作业01
    学期总结
    C语言I博客作业08
    C语言I博客作业07
    C语言I博客作业06
    C语言I博客作业05
    C语言I博客作业04
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199163.html
Copyright © 2011-2022 走看看