easy_install pycurl failing in virtualenv

Trying to get the stripe.com python api binding installed in a virtualenv.

I'm running ubuntu 11.10

I get the following error during pycurl's install:

easy_install stripe
Searching for stripe
Best match: stripe 1.5.30
Processing stripe-1.5.30-py2.7.egg
stripe 1.5.30 is already the active version in easy-install.pth

Using /home/fox/virtpyramid/lib/python2.7/site-packages/stripe-1.5.30-py2.7.egg
Processing dependencies for stripe
Searching for pycurl
Reading http://pypi.python.org/simple/pycurl/
Reading http://pycurl.sourceforge.net/
Reading http://pycurl.sourceforge.net/download/
Best match: pycurl 7.19.0
Downloading http://pycurl.sourceforge.net/download/pycurl-7.19.0.tar.gz
Processing pycurl-7.19.0.tar.gz
Running pycurl-7.19.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-N9yjGO/pycurl-7.19.0/egg-dist-tmp-UM5Vg5
Using curl-config (libcurl 7.21.6)
src/pycurl.c: In function ‘multi_socket_callback’:
src/pycurl.c:2351:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
src/pycurl.c:2355:11: warning: call to ‘_curl_easy_getinfo_err_string’ declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info [enabled by default]
src/pycurl.c: In function ‘do_multi_info_read’:
src/pycurl.c:2843:15: warning: call to ‘_curl_easy_getinfo_err_string’ declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info [enabled by default]
In function ‘util_curl_unsetopt’,
    inlined from ‘do_curl_unsetopt’ at src/pycurl.c:1551:5:
src/pycurl.c:1476:9: warning: call to ‘_curl_easy_setopt_err_CURLSH’ declared with attribute warning: curl_easy_setopt expects a CURLSH* argument for this option [enabled by default]
/usr/bin/ld: cannot find -lrtmp
collect2: ld returned 1 exit status
error: Setup script exited with error: command 'gcc' failed with exit status 1

asked 29 Dec '11, 12:11

fox's gravatar image

fox ♦♦
800162527
accept rate: 37%

reverted 29 Dec '11, 12:12


Looks like you are missing some libraries and 'ld' the linker application cannot find them.

Try to install the following packages and then try again:

sudo apt-get install libcurl4-gnutls-dev python-pycurl-dbg librtmp-dev
link

answered 29 Dec '11, 12:15

Russell%20Ballestrini's gravatar image

Russell Ball...
1.3k232937
accept rate: 43%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×1
×1
×1

Asked: 29 Dec '11, 12:11

Seen: 1,784 times

Last updated: 16 Feb '12, 20:44

powered by OSQA