ocamlrpcgen command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ocamlrpcgen: command not found
or when using sudo you get the following error message
sudo: ocamlrpcgen: command not found
Solutions to ocamlrpcgen: command not found
How To Fix ocamlrpcgen: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ocamlrpcgen is provided by libocamlnet-ocaml-bin package.
libocamlnet-ocaml-bin is:
Ocamlnet is a collection of OCaml libraries focusing focus on application-level Internet protocols and conventions.
Ocamlnet consists of the following libraries:
- netstring: processing of strings that occur in network context
- netcgi2: portable web applications
- nethttpd: is a web server component (HTTP server implementation)
- netplex: generic server framework
- rpc: OncRPC implementation
- netclient: clients for HTTP, FTP, and Telnet
- equeue: event queue used for many protocol implementations
- shell: external commands invocation
- netshm: shared memory for IPC purposes
- netsys: bindings for system functions
- smtp and pop: two further client implementations
A number of ideas and concepts are used throughout the libraries:
- netchannels are a way to abstract sequential I/O channels
- event queues provided by equeue and unixqueue make asynchronous protocol interpreters possible
This package contains the binaries ocamlrpcgen (a helper for creating RPC stubs) and netplex-admin (generic administration tool for netplex systems).
To fix this problem, we can install more using the command below.
sudo apt-get -y install libocamlnet-ocaml-bin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libocamlnet-ocaml-bin.
sudo apt -y install libocamlnet-ocaml-bin
Or if you have aptitude installed you can use the following command.
sudo aptitude install libocamlnet-ocaml-bin
Summary
In this tutorial we learn how to fix ocamlrpcgen command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.