cohttp-proxy-lwt command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cohttp-proxy-lwt: command not found
or when using sudo you get the following error message
sudo: cohttp-proxy-lwt: command not found
Solutions to cohttp-proxy-lwt: command not found
How To Fix cohttp-proxy-lwt: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cohttp-proxy-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-proxy-lwt command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.