curl-config command not found

In this troubleshooting guide we learn how to fix curl-config command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

curl-config: command not found

or when using sudo you get the following error message

sudo: curl-config: command not found

Solutions to curl-config: command not found

How To Fix curl-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu curl-config is provided by libcurl4-gnutls-dev package.

libcurl4-gnutls-dev is:

libcurl is an easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.

libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling and more!

libcurl is free, thread-safe, IPv6 compatible, feature rich, well supported, fast, thoroughly documented and is already used by many known, big and successful companies and numerous applications.

This package provides the development files (ie. includes, static library, manual pages) that allow one to build software which uses libcurl.

SSL support is provided by GnuTLS.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libcurl4-gnutls-dev

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libcurl4-gnutls-dev.

sudo apt -y install libcurl4-gnutls-dev

Or if you have aptitude installed you can use the following command.

sudo aptitude install libcurl4-gnutls-dev

Summary

In this tutorial we learn how to fix curl-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.