PyCurl

2011-06-19 12 views
6

स्थापित करने में त्रुटि मैंने पाइप के माध्यम से pycurl स्थापित करने का प्रयास किया। यह काम नहीं किया और इसके बजाय यह मुझे यह त्रुटि देता है।PyCurl

running install 

running build 

running build_py 

running build_ext 

building 'pycurl' extension 

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv 
-Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc 
-arch x86_64 -pipe -DHAVE_CURL_SSL=1 -I/System/Library/Frameworks/ 
Python.framework/Versions/2.6/include/python2.6 -c src/pycurl.c -o 
build/temp.macosx-10.6-universal-2.6/src/pycurl.o 

src/pycurl.c:85:4: warning: #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" 

/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/ 
../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ 
ppc/as) for architecture ppc not installed 

Installed assemblers are: 

/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64 

/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386 

src/pycurl.c:85:4: warning: #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" 

src/pycurl.c:3906: fatal error: error writing to -: Broken pipe 

compilation terminated. 

src/pycurl.c:85:4: warning: #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" 

lipo: can't open input file: /var/tmp//ccspAJOg.out (No such file or 
directory) 

error: command 'gcc-4.2' failed with exit status 1 
+0

क्या वास्तुकला, 86 या PowerPC से pycurl मिल सकता है? –

+0

मुझे पता है कि यह आपके प्रश्न का उत्तर नहीं दे रहा है, लेकिन क्या आपने इसके बजाय urllib2 माना है? – jterrace

उत्तर

11

मैं इसे इस

sudo env ARCHFLAGS="-arch x86_64" pip install pycurl 
+0

"sudo env ARCHFLAGS =" - arch x86_64 "easy_install pycurl" मेरे लिए काम किया। धन्यवाद मिकी! – Tony

0

का उपयोग कर काम कर रहा है, तो आप के साथ लिनक्स पर कर रहे हैं मिल गया apt-get:

lnx#> apt-get search pycurl 

स्थापित करने के लिए:

lnx#> sudo apt-get install python-pycurl 

लिनक्स पर अगर यम के साथ:

lnx#> yum search pycurl 
I get this on my comp: 
python-pycurl.x86_64 : A Python interface to libcurl 

मैंने किया गया है स्थापित करने के लिए:

lnx#> sudo yum install python-pycurl

एक अन्य विकल्प, easy_install उपयोग करने के लिए है:

यम, या उपयुक्त-मिल, setuptools स्थापित करें।


आप होली Windows का उपयोग कर रहे हैं, तो HERE

संबंधित मुद्दे