Install libpostgresql-ocaml-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libpostgresql-ocaml-dev
OCaml bindings to PostgreSQL's libpq
This OCaml-library provides an interface to PostgreSQL, an efficient and reliable, open source, relational database. Almost all functionality available through the C-API (libpq) is replicated in a type-safe way. This library uses objects for representing database connections and results of queries. . This package contains all the development stuff you need to use OCaml Postgres bindings in your programs.