2016-09-16 137 views
0

安裝Ubuntu pycurl == 7.19.0。 py,但抓住這堆棧跟蹤:無法在Ubuntu 16.04蟒蛇2.7.12

Downloading https://pypi.python.org/packages/11/73/abcfbbb6e1dd7087fa53042c301c056c11264e8a737a4688f834162d731e/pycurl-7.19.0.tar.gz#md5=074cd44079bb68697f5d8751102b384b 
Best match: pycurl 7.19.0 
Processing pycurl-7.19.0.tar.gz 
Writing /tmp/easy_install-F8gcvD/pycurl-7.19.0/setup.cfg 
Running pycurl-7.19.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-F8gcvD/pycurl-7.19.0/egg-dist-tmp-8sbXeG 
Using curl-config (libcurl 7.47.0) 
src/pycurl.c: In function ‘multi_socket_callback’: 
src/pycurl.c:2351:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 
    int ret; 
     ^
src/pycurl.c: In function ‘initpycurl’: 
src/pycurl.c:3453:31: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time] 
    insstr(d, "COMPILE_DATE", __DATE__ " " __TIME__); 
          ^
src/pycurl.c:3453:44: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time] 
    insstr(d, "COMPILE_DATE", __DATE__ " " __TIME__); 
              ^
/usr/bin/ld: cannot find -lidn 
/usr/bin/ld: cannot find -lrtmp 
/usr/bin/ld: cannot find -lgssapi_krb5 
/usr/bin/ld: cannot find -lkrb5 
/usr/bin/ld: cannot find -lk5crypto 
/usr/bin/ld: cannot find -lcom_err 
/usr/bin/ld: cannot find -llber 
/usr/bin/ld: cannot find -llber 
/usr/bin/ld: cannot find -lldap 
collect2: error: ld returned 1 exit status 
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 

有誰知道什麼是錯的?

+0

我試了一下,沒有幫助 – Yura

+0

@Bhargav重複的目標問題太廣泛了,只是一個隨機答案大雜燴,沒有明確的,明確的答案來解決這個問題。我認爲這是一個可憐的重複。 – cpburnz

+0

@cpburnz我已重新打開。誠然,這是一個混合的答案(libcurl答案是第10下)。如果您確實找到時間,請嘗試清理該帖子。 –

回答

0

我不知道,我試了一切,我認爲我有點安裝問題,我通常使用sudo pip安裝....所以也許一些圖書館沒有權限閱讀。我用空的Ubuntu恢復了快照,並再次安裝所有的庫,沒有'SUDO'pip安裝,thanx很多答案。

1

這些行:

/usr/bin/ld: cannot find -lidn 
/usr/bin/ld: cannot find -lrtmp 
/usr/bin/ld: cannot find -lgssapi_krb5 
/usr/bin/ld: cannot find -lkrb5 
/usr/bin/ld: cannot find -lk5crypto 
/usr/bin/ld: cannot find -lcom_err 
/usr/bin/ld: cannot find -llber 
/usr/bin/ld: cannot find -llber 
/usr/bin/ld: cannot find -lldap 

意味着庫idnrtmpgssapi_krb5krb5k5cryptocom_errlberldap找不到這很可能意味着他們是未安裝。我檢查了libcurl3的依賴關係,它直接取決於gssapi-krb5-2(取決於krb5-3k5crypto3),idn11,ldap,rtmp1,ssl1

所以,安裝libcurl3應該解決您的問題:

sudo apt-get install libcurl3 

所安裝後,再次嘗試安裝pycurl