Monthly Archives: September 2014

Centos7 gnome3

Desktop-Install-to-Hard-Drive
CentOS 7的gnome桌面版现在使用的是Gnome 3,支持触屏。
gnome-3-Desktop
也可调成像经典Gnome 2样式。
gnome-classic
感觉比Ubuntu Unity要帅吖。

mac os x10.9.2安装pycurl

vi ~/.bash_profile
export PYCURL_CURL_CONFIG=/usr/bin/curl-config
export PYCURL_SSL_LIBRARY=openssl

$pip install pycurl

出现warning:

src/pycurl.h:152:5: warning: "libcurl was compiled with SSL support, but configure could not determine which "      "library was used; thus no SSL crypto locking callbacks will be set, which may "      "cause random crashes on SSL requests" [-W#warnings]
    #   warning \
        ^
    1 warning generated.

运行后出现

pycurl: libcurl link-time ssl backend (none/other) is different from compile-time ssl backend (openssl)

貌似和apple把curl库的openssl替换为SecureTransport有关,资料

$curl --version
$curl 7.30.0 (x86_64-apple-darwin13.0) libcurl/7.30.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz

还没找到解决方法啊,头疼

如果安装后出现

Fatal Python error: pycurl: libcurl link-time version is older than compile-time version

之类错误的话,应该就是你自己装了curl和mac自带的curl冲突了,导致编译和运行时加载的类库不一致,我自己安装的curl-7.33.0在/usr/local/bin下,而系统自带的7.30。0在/usr/bin