LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cygwin & pycurl (https://www.linuxquestions.org/questions/linux-general-1/cygwin-and-pycurl-4175604798/)

pointer2null 04-27-2017 04:05 PM

Cygwin & pycurl
 
(I've read the is there a cygwin forum and was told it's here in general!)

Has anyone managed to install pycurl in Cygwin?

I've tried but it seems to be unable to find libcurl. I've tried setting the --curl-dir which didn't work.

Please don't post the first answer you find on Google (or the 20th) as I've already tried them all.

I've tried with easy-install and pip install but the result is the same

Code:

$ easy_install pycurl --curl-dir=/usr/lib
Searching for pycurl
Reading https://pypi.python.org/simple/pycurl/
Downloading https://pypi.python.org/packages/12/3f/557356b60d8e59a1cce62ffc07ecc03e4f8a202c86adae34d895826281fb/pycurl-7.43.0.tar.gz#md5=c94bdba01da6004fa38325e9bd6b9760
Best match: pycurl 7.43.0
Processing pycurl-7.43.0.tar.gz
Writing C:\cygwin64\tmp\easy_install-kzovsfy_\pycurl-7.43.0\setup.cfg
Running pycurl-7.43.0\setup.py -q bdist_egg --dist-dir C:\cygwin64\tmp\easy_install-kzovsfy_\pycurl-7.43.0\egg-dist-tmp-tv159b0l
Please specify --curl-dir=/path/to/built/libcurl
error: Setup script exited with 10

Code:

Gary@Gary-Laptop ~
$ pip install pycurl
Collecting pycurl
  Using cached pycurl-7.43.0.tar.gz
    Complete output from command python setup.py egg_info:
    Please specify --curl-dir=/path/to/built/libcurl

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 10 in C:\cygwin64\tmp\pip-build-bcfkeo3h\pycurl\

Gary@Gary-Laptop ~
$ pip install pycurl --curl-dir=/usr/lib

Usage:
  pip install [options] <requirement specifier> [package-index-options] ...
  pip install [options] -r <requirements file> [package-index-options] ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --curl-dir


Doug G 04-27-2017 05:17 PM

Did you verify you've installed cygwin curl by using the cygwin setup program?

pointer2null 04-28-2017 02:09 AM

Yes - tried all the obvious.


All times are GMT -5. The time now is 06:40 AM.