coap-rd-openssl command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
coap-rd-openssl: command not found
or when using sudo you get the following error message
sudo: coap-rd-openssl: command not found
Solutions to coap-rd-openssl: command not found
How To Fix coap-rd-openssl: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu coap-rd-openssl is provided by libcoap2-bin package.
libcoap2-bin is:
The libcoap provides some example binary files to show the usage of a CoAP Server, CoAP Client and a Resource Directory implementation. These examples heavily rely on the libcoap as the core functionality is based there.
This package provides the following example binaries without DTLS functions:
coap-client A command-line client that allows you to interact with CoAP reasources.
coap-server Simple server that can provide CoAP resources for simple testing cases.
coap-rd This binary let you simulate various CoAP resources mostly for testing purpose.
This package providesthe following example binaries with DTLS functions:
coap-client-openssl A command-line client that allows you to interact with CoAP reasources based on TLS functions by OpenSSL.
coap-server-openssl Simple server that can provide CoAP resources for simple testing cases based on TLS functions by OpenSSL.
coap-rd-openssl This binary let you simulate various CoAP resources mostly for testing purpose based on TLS functions by OpenSSL.
You can use these files without any exception no matter as they named examples. Please see the respectives man pages for usage instructions.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libcoap2-bin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libcoap2-bin.
sudo apt -y install libcoap2-bin
Or if you have aptitude installed you can use the following command.
sudo aptitude install libcoap2-bin
Summary
In this tutorial we learn how to fix coap-rd-openssl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.