cohttp-curl-lwt command not found

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

Introduction

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

cohttp-curl-lwt: command not found

or when using sudo you get the following error message

sudo: cohttp-curl-lwt: command not found

Solutions to cohttp-curl-lwt: command not found

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

In Ubuntu cohttp-curl-lwt is provided by libcohttp-lwt-unix-ocaml-dev package.

libcohttp-lwt-unix-ocaml-dev is:

An implementation of an HTTP client and server using the Lwt concurrency library. See the Cohttp_lwt_unix module for information on how to use this. The package also installs cohttp-curl-lwt and a cohttp-server-lwt binaries for quick uses of a HTTP(S) client and server respectively.

Although the name implies that this only works under Unix, it should also be fine under Windows too.

This package contains development files.

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

sudo apt-get -y install libcohttp-lwt-unix-ocaml-dev

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

You can also use apt command to install libcohttp-lwt-unix-ocaml-dev.

sudo apt -y install libcohttp-lwt-unix-ocaml-dev

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

sudo aptitude install libcohttp-lwt-unix-ocaml-dev

Summary

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