Skip to content

Libmosquitto-dev not found Ubuntu 18.x #97

@BaHeen0815

Description

@BaHeen0815

[the part from README.md]
...
Installation
If you've used a pre-built package to install Mosquitto, you need to make sure you have the development headers installed. On Red Hat-derived systems, this is probably called libmosquitto-devel, and on Debian-based systems it will be libmosquitto-dev.
You may obtain this package using PECL:
pecl install Mosquitto-alpha ---> error msg: (( libmosquitto-dev wasn't found)) (Ubuntu 18.x)
...

to solve .... Try

$ sudo apt-get install libmosquitto-dev
$ sudo pecl install Mosquitto-beta
.... (script running)
Please provide the prefix of the libmosquitto installation [autodetect] : libmosquitto-dev
....
running: /tmp/pear/temp/Mosquitto/configure --with-php-config=/usr/bin/php-config --with-mosquitto=libmosquitto-dev

Test it with php 7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions