libmosquitto for Jetson TX2

Hi I can’t get libmosquitto-dev package generally available for ubuntu for TX2. Any suggestions ?

I found a way of installing it via debians. But would still like to know if thre is any PPA that needs to be added which can help me simply sudo apt-get install

Rather than finding a PPA you can compile mosquitto on the TX relatively easily

Install dependencies:

sudo apt install libssl-dev xsltproc docbook-xsl

Clone the repository and run make

git clone https://github.com/eclipse/mosquitto.git
cd mosquitto
make -j4
sudo make install

If you want it to start automatically on boot then add a systemd service file at /etc/systemd/system/mosquitto.service with the following:

[Unit]
Description=Mosquitto MQTT v3.1/v3.1.1 Broker
Documentation=man:mosquitto.conf(5) man:mosquitto(8)
After=network-online.target
Wants=network-online.target

[Service]
Type=notify
NotifyAccess=main
ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target

Enable the service with

systemctl enable mosquitto

Don’t forget to add your mosquitto.conf file to /etc/mosquitto. There should be an example there to get started.