{"id":369,"date":"2023-02-21T18:46:51","date_gmt":"2023-02-21T10:46:51","guid":{"rendered":"https:\/\/www.stusc.com\/?p=369"},"modified":"2023-02-21T18:47:57","modified_gmt":"2023-02-21T10:47:57","slug":"how-to-fix-could-not-find-curl-error-in-ubuntu-and-other-linux","status":"publish","type":"post","link":"https:\/\/www.stusc.com\/?p=369","title":{"rendered":"How to Fix: Could not find CURL error in Ubuntu and Other Linux"},"content":{"rendered":"\n<p><strong>Here\u2019s how you can fix the \u201ccould not find CURL\u201d error in Debian, Ubuntu, Fedora and Arch Linux.<\/strong><\/p>\n\n\n\n<p>CURL\u00a0is a free and open-source library that helps retrieve and extract information from an URL over various protocols. It is a handy module and is used in thousands of applications.<\/p>\n\n\n\n<p>It consists of libcurl library, which supports almost all modern web communication protocols. The command line version is&nbsp;<code>curl<\/code>.<\/p>\n\n\n\n<p>If curl is not installed in your system, you may get the following error when compiling any program from source in\u00a0Linux distributions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) on ...<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.debugpoint.com\/wp-content\/uploads\/2023\/02\/Could-not-find-curl-error.jpg\"><img decoding=\"async\" src=\"https:\/\/www.debugpoint.com\/wp-content\/uploads\/2023\/02\/Could-not-find-curl-error-1024x420.jpg\" alt=\"Could not find curl error\" class=\"wp-image-13267\" \/><\/a><figcaption>Could not find curl error<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to Fix: Could not find CURL error<\/h2>\n\n\n\n<p>To fix this error, you need to install several packages. They are distribution specific.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Open a terminal window and install the following for Debian, Ubuntu and related distributions. The&nbsp;<code>libssl-dev<\/code>&nbsp;is needed for the common HTTPS protocol used today.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install curl libssl-dev libcurl4-openssl-dev<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>For Fedora, CentOS, RHEL, and related distro use the below:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dnf install curl libcurl-devel<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>And for Arch Linux, Manjaro use the following.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo pacman -S --needed curl libcurl-compat<\/pre>\n\n\n\n<p>After you install the above packages, try to run the command which caused this error. And you should be all set.<\/p>\n\n\n\n<p>Please let me know if you face any errors in the comment box below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u2019s how you can fix the \u201ccould not find CURL\u201d error in Debian, Ubuntu, Fedora and Arch Linux.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[113,91,89],"class_list":{"0":"post-369","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-tech","7":"tag-curl","8":"tag-linux","9":"tag-ubuntu","10":"h-entry","12":"h-as-article"},"_links":{"self":[{"href":"https:\/\/www.stusc.com\/index.php?rest_route=\/wp\/v2\/posts\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stusc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stusc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stusc.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stusc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=369"}],"version-history":[{"count":2,"href":"https:\/\/www.stusc.com\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/www.stusc.com\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions\/371"}],"wp:attachment":[{"href":"https:\/\/www.stusc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stusc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stusc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}