Mosquitto from Source

From Da Nerd Mage Wiki
Revision as of 16:27, 1 March 2024 by Tinker (talk | contribs)
Jump to navigation Jump to search

The required tools:

  • apt install git build-essential autoconf cmake

The prerequisites:

  • apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl libsystemd-dev libwrap0-dev openssl
  • # cJSON
    • git clone https://github.com/DaveGamble/cJSON
    • cd cJSON
    • mkdir build
    • cd build
    • cmake ..
    • make
    • sudo make install
  • # uthash / utlist
    • git clone https://github.com/troydhanson/uthash
  • # pthreads
  • # built in?

Get the source:

  • git clone https://github.com/eclipse/mosquitto.git

Build it:

    • cp uthash/src/* mosquitto/include
  • cd mosquitto
  • make

Install it:

  • sudo make install

Use it: