I've downloaded curl both for Windows and for Cygwin directly from the source, https://curl.haxx.se/download.html, but have not seen the libcurl.pc file in either of themYou've downloaded the Curl source - but you won't get a libcurl.pc (or an actual Curl library) until that source is compiled.
One alternative is to install a Curl library that has already been built.
UPDATE: Correcting myself, it's possible that this is what you've already done, but that the pc file is not provided.
Unfortunately,
huck's suggestion of (
sudo apt-get install libcurl3-dev) is not going to help much on Windows and Cygwin.
For Cygwin, there should already be such a library available for installation using setup.exe.
For Windows (Active Perl and Strawberry Perl) you can install the LWP-Curl-0.14 module via PPM:
ppm install http://www.sisyphusion.tk/ppm/LWP-Curl.ppd --force
URI is a prerequisite. If you don't have that module installed you can install it with either:
cpan -i URI
or
ppm install http://www.sisyphusion.tk/ppm/URI.ppd --force
Installing with PPM means that you don't have to bother installing the Curl library.
LWP::Curl PPM packages for perl-5.26 have not yet been built and uploaded, but I can rectify that fairly smartly if necessary.
If you really want to build the module yourself, start with installing the Curl library, and set the PKG_CONFIG_PATH environment variable to the location of libcurl.pc.
And get back to us with any issues that arise.
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.