mqttmosquittolibmosquitto

Can't make mosquitto-auth-plug


enter image description here

Not sure if you can read the picture....

/bin/ld: cannot find -lmosquitto

is the error.

I'm using centos 7

mosquitto-auth-plug config file has been updated with mosquitto src and openssl install directory and they are correct.

My previous error was mysql_config not found which I was able to fix by installing libmysqlclient-devel

mysql is installed and working fine

Let me know if you can help Thanks


Solution

  • To fix the problem copy mosquitto.so.1 from usr/lib64 to your mosquitto source direcrory/lib as mosquitto.so

    That will fix the problem I had here.

    then add -Wl,--no-as-needed -ldl to the LDFLAG in the Makefile