Skip to content

Instantly share code, notes, and snippets.

@freretuc
Created May 12, 2018 18:56
Show Gist options
  • Save freretuc/b6e8b749e545b89b3285b6c261eaf8e2 to your computer and use it in GitHub Desktop.
Save freretuc/b6e8b749e545b89b3285b6c261eaf8e2 to your computer and use it in GitHub Desktop.
build mosquitto auth mysql plugin Ubuntu
#root else sudo
apt-get update && apt-get -y upgrade
apt-get -y install mosquitto libmosquitto-dev unzip make libssl-dev libmysqlclient-dev gcc build-essential
wget https://github.com/jpmens/mosquitto-auth-plug/archive/master.zip
wget http://mosquitto.org/files/source/mosquitto-1.4.15.tar.gz
unzip master.zip
tar -zxvf mosquitto-1.4.15.tar.gz
cd mosquitto-auth-plug-master/
cp config.mk.in config.mk
nano config.mk
MOSQUITTO_SRC = /home/ubuntu/mosquitto-1.4.15
make clean
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment