curl-config(1) – Linux manual page – man7.org
curl-config(1) – Linux manual page
curl-config(1) curl-config manual curl-config(1)
NAME top curl-config – Get information about a libcurl installation
SYNOPSIS top curl-config [options]
DESCRIPTION top curl-config displays information about the curl and libcurl
OPTIONS top –ca Displays the built-in path to the CA cert bundle this
–cc Displays the compiler used to build libcurl.
Set of compiler options (CFLAGS) to use when compiling
files that use libcurl. Currently that is only the include
path to the curl include files.
Specify the oldest possible libcurl version string you
want, and this script will return 0 if the current
installation is new enough or it returns 1 and outputs a
text saying that the current version is not new enough.
(Added in 7. 15. 4)
Displays the arguments given to configure when building
Lists what particular main features the installed libcurl
was built with. At the time of writing, this list may
include SSL, KRB4 or IPv6. Do not assume any particular
order. The keywords will be separated by newlines. There
may be none, one, or several keywords in the list.
–help Displays the available options.
–libs Shows the complete set of libs and other linker options
you will need in order to link your application with
This is the prefix used when libcurl was installed.
Libcurl is then installed in $prefix/lib and its header
files are installed in $prefix/include and so on. The
prefix is set with “configure –prefix”.
Lists what particular protocols the installed libcurl was
built to support. At the time of writing, this list may
include HTTP, HTTPS, FTP, FTPS, FILE, TELNET, LDAP, DICT.
Do not assume any particular order. The protocols will be
listed using uppercase and are separated by newlines.
There may be none, one, or several protocols in the list.
(Added in 7. 13. 0)
Lists the SSL backends that were enabled when libcurl was
built. It might be no, one or several names. If more than
one name, they will appear comma-separated. (Added in
7. 58. 0)
Shows the complete set of libs and other linker options
libcurl statically. (Added in 7. 17. 1)
Outputs version information about the installed libcurl.
Outputs version information about the installed libcurl,
in numerical mode. This outputs the version number, in
hexadecimal, with 8 bits for each part: major, minor, and
patch. So that libcurl 7. 7. 4 would appear as 070704 and
libcurl 12. 14 would appear as 0c0d0e… Note that the
initial zero might be omitted. (This option was broken in
the 7. 0 release. )
EXAMPLES top What linker options do I need when I link with libcurl?
$ curl-config –libs
What compiler options do I need when I compile using libcurl
$ curl-config –cflags
How do I know if libcurl was built with SSL support?
$ curl-config –feature | grep SSL
What’s the installed libcurl version?
$ curl-config –version
How do I build a single file with a one-line command?
$ `curl-config –cc –cflags` -o example example. c `curl-config
SEE ALSO top curl(1)
COLOPHON top This page is part of the curl (Command line tool and library for
transferring data with URLs) project. Information about the
project can be found at ⟨. If you have a
bug report for this manual page, see
⟨. This page was obtained
from the project’s upstream Git repository
⟨ on 2021-08-27. (At that time,
the date of the most recent commit that was found in the
repository was 2021-08-26. ) If you discover any rendering
problems in this HTML version of the page, or you believe there
is a better or more up-to-date source for the page, or you have
corrections or improvements to the information in this COLOPHON
(which is not part of the original manual page), send a mail to
Curl 7. 1 25 Oct 2007 curl-config(1)
Config file – Everything curl
You can easily end up with curl command lines that use a large number of command-line options, making them rather hard to work with. Sometimes the length of the command line you want to enter even hits the maximum length your command-line system allows. The Microsoft Windows command prompt being an example of something that has a fairly small maximum line aid such situations, curl offers a feature we call “config file”. It allows you to write command-line options in a text file instead and then tell curl to read options from that file in addition to the command tell curl to read more command-line options from a specific file with the -K/–config option, like this:curl -K and in the file (which, of course, can use any file name you please) you enter each command line per line:# this is a comment, we ask to follow redirects# ask to do a HEAD requestThe config file accepts both short and long options, exactly as you would write them on a command line. As a special extra feature, it also allows you to write the long format of the options without the leading two dashes to make it easier to read. Using that style, the config file shown above can alternatively be written as:# this is a comment, we ask to follow redirects# ask to do a HEAD requestCommand line options that take an argument must have its argument provided on the same line as the option. For example changing the User-Agent HTTP header can be done withuser-agent “Everything-is-an-agent”To allow the config files to look even more like a true config file, it also allows you to use ‘=’ or ‘:’ between the option and its argument. As you see above it is not necessary, but some like the clarity it offers. Setting the user-agent option again:user-agent = “Everything-is-an-agent”The argument to an option can be specified without double quotes and then curl will treat the next space or newline as the end of the argument. So if you want to provide an argument with embedded spaces you must use double user agent string example we have used above has no white spaces and therefore it can also be provided without the quotes like:user-agent = Everything-is-an-agentFinally, if you want to provide a URL in a config file, you must do that the –url way, or just with url, and not like on the command line where everything that is not an option is assumed to be a URL. So you provide a URL for curl like this:url = “When curl is invoked, it always (unless -q is used) checks for a default config file and uses it if found. The file name it checks for is on Unix-like systems and _curlrc on default config file is checked for in the following places in this order:curl tries to find the “home directory”: It first checks for the CURL_HOME and then the HOME environment variables. Failing that, it uses getpwuid() on Unix-like systems (which returns the home directory given the current user in your system). On Windows, it then checks for the APPDATA variable, or as a last resort the ‘%USERPROFILE%\Application Data’ Windows, if there is no _curlrc file in the home directory, it checks for one in the same directory the curl executable is placed. On Unix-like systems, it will simply try to load from the determined home directory.
Cannot find curl-config in Ubuntu 13.04
I am installing package RCurl in R and getting an error
checking for curl-config… no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
I have tried to install libcurl on Ubuntu, but it doesn’t solve my problem have some dependecies
sudo apt-get install libcurl4-gnutls-dev
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcurl4-gnutls-dev: Depends: libcurl3-gnutls (= 7. 29. 0-1ubuntu3. 1) but 7. 2 is to be installed
Depends: libldap2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
locate curl config gives me nothing:
The program ‘curl-config’ can be found in the following packages:
I went through some of the solution RCurl but it is working. Can you suggest or help in this direction. Thank you so much.
when i tried to install(Curl) from Ubuntu Software center got the same erroe message
Package dependencies cannot be resolved
This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.
curl: Depends: libcurl3 (= 7. 2 is to be installed
Depends: zlib1g (>= 1:1. 1. 4) but is to be installed
sudo aptitude install libcurl4-openssl-dev
The following NEW packages will be installed:
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1, 210 kB of archives. After unpacking 2, 778 kB will be used.
libcurl4-openssl-dev: Depends: libcurl3 (= 7. 2 is installed.
Depends: libidn11-dev but it is not going to be installed.
Depends: libkrb5-dev but it is not going to be installed.
Depends: libldap2-dev but it is not going to be installed.
Depends: librtmp-dev but it is not going to be installed.
Depends: libssl-dev but it is not going to be installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libcurl4-openssl-dev [Not Installed]
Frequently Asked Questions about curl config
What is curl config?
curl-config displays information about the curl and libcurl installation.Aug 27, 2021
How do I check curl settings?
To check whether the Curl package is installed on your system, open up your console, type curl , and press enter. If you have curl installed, the system will print curl: try ‘curl –help’ or ‘curl –manual’ for more information . Otherwise, you will see something like curl command not found .Nov 27, 2019
What is curl command?
cURL, which stands for client URL, is a command line tool that developers use to transfer data to and from a server. At the most fundamental, cURL lets you talk to a server by specifying the location (in the form of a URL) and the data you want to send.Feb 23, 2021