Difference between revisions of "Mosquitto from Source"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 1: Line 1:
'''<span style="color: rgb(132, 63, 161);" >The required tools:</span>'''
'''<span style="color: rgb(132, 63, 161);" >The required tools:</span>'''


* <code>apt install git build-essential autoconf</code>
* <code>apt install git build-essential autoconf cmake</code>


'''<span style="color: rgb(132, 63, 161);" >The prerequisites:</span>'''
'''<span style="color: rgb(132, 63, 161);" >The prerequisites:</span>'''
Line 7: Line 7:
* <code>apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl</code>
* <code>apt install libc-ares-dev libwebsockets-dev libssl-dev xsltproc docbook-xsl</code>
* #    '''cJSON'''
* #    '''cJSON'''
* <code>git clone https://github.com/DaveGamble/cJSON</code>
** <code>git clone https://github.com/DaveGamble/cJSON</code>
* <code>cp cJSON/cJSON.c mosquitto/src</code>
** <code>cd cJSON</code>
* <code>cp cJSON/cJSON.h mosquitto/include</code>
** <code>mkdir build</code>
** <code>cd build</code>
** <code>cmake ..</code>
** <code>make</code>
** <code>sudo make install</code>
* #    '''uthash / utlist'''
* #    '''uthash / utlist'''
* <code>git clone https://github.com/troydhanson/uthash</code>
** <code>git clone https://github.com/troydhanson/uthash</code>
* <code>cp uthash/src/* mosquitto/include</code>
* #    '''pthreads'''
* #    '''pthreads'''
* #    built in?
* #    built in?
Line 22: Line 25:
'''<span style="color: rgb(132, 63, 161);" >Build it:</span>'''
'''<span style="color: rgb(132, 63, 161);" >Build it:</span>'''


** <code>cp uthash/src/* mosquitto/include</code>
* <code>cd mosquitto</code>
* <code>cd mosquitto</code>
* <code>autoreconf --install</code>
* <code>./configure</code>
* <code>make</code>
* <code>make</code>
'''<span style="color: rgb(132, 63, 161);" >Test it:</span>'''


* <code>make check</code>
'''<span style="color: rgb(132, 63, 161);" >Install it:</span>'''
'''<span style="color: rgb(132, 63, 161);" >Install it:</span>'''


* <code>sudo make install</code>
* <code>sudo make install</code>
'''<span style="color: rgb(132, 63, 161);" >Use it:</span>'''
'''<span style="color: rgb(132, 63, 161);" >Use it:</span>'''
<span style="color: rgb(153, 51, 102);" >This example does a basic full scan of my /22 network</span>
* <code>arp-scan 192.168.8.0/22</code>

Revision as of 16:09, 1 March 2024

The required tools:

  • apt install git build-essential autoconf cmake

The prerequisites:

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: