Mosquitto from Source
Jump to navigation
Jump to search
The required tools:
apt install git build-essential autoconf
The prerequisites:
apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl
- # cJSON
git clone https://github.com/DaveGamble/cJSON
cp cJSON/cJSON.c mosquitto/src
cp cJSON/cJSON.h mosquitto/include
- # uthash / utlist
git clone https://github.com/troydhanson/uthash
cp uthash/src/* mosquitto/include
- # pthreads
- # built in?
Get the source:
git clone https://github.com/eclipse/mosquitto.git
Build it:
cd mosquitto
autoreconf --install
./configure
make
Test it:
make check
Install it:
sudo make install
Use it:
This example does a basic full scan of my /22 network
arp-scan 192.168.8.0/22