Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Issue #19

Closed
rparmar75 opened this issue Sep 5, 2014 · 9 comments
Closed

Installation Issue #19

rparmar75 opened this issue Sep 5, 2014 · 9 comments

Comments

@rparmar75
Copy link

Please provide the prefix of the libmosquitto installation [autodetect] :

what should I provide here? Tried different things, same result finally as follows
.........
checking for mosquitto files in default path... not found
configure: error: Please reinstall the mosquitto distribution
ERROR: `/var/tmp/Mosquitto/configure --with-mosquitto=xyz failed

@nosun
Copy link

nosun commented Mar 26, 2015

I met the same issue, may be your mosquitto installed from yum,then the libmosquitto.so.1 may not installed.

You can try to install it from source code, and after finish installation ,you should create soft link such as "ln -s /usr/local/lib/libmosquitto.so.1 /usr/lib/libmosquitto.so.1"

Hope It can help someone others

@juworld
Copy link

juworld commented Oct 6, 2015

I'm having the same problem...

I'm installing using yum and I found libmosquitto.so.1 in /usr/lib64/libmosquitto.so.1

I soft linked it

ln -s /usr/lib64/libmosquitto.so.1 /usr/lib/libmosquitto.so.1

Next, I ran pecl install Mosquitto-alpha

But, I'm still getting the same error....

@glynhudson
Copy link

Same error here. I'm trying to install on Raspberry Pi running Debian Raspbian Wheezy. Here is the full install output:

I am running mosquitto 1.4.1 installed via mosquittop PPA
(http://repo.mosquitto.org/debian/mosquitto-jessie.list)

First I installed: sudo apt-get install libmosquitto1 which installs to: /usr/lib/arm-linux-gnueabihf/libmosquitto.so.1. Setting this path as the Mosquitto prefix in the PECL install did not work:

downloading Mosquitto-0.3.0.tgz ...
Starting to download Mosquitto-0.3.0.tgz (25,395 bytes)
.........done: 25,395 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
Please provide the prefix of the libmosquitto installation [autodetect] : /usr/lib/arm-linux-gnueabihf/libmosquitto.so.1
building in /tmp/pear/temp/pear-build-rootLej0NG/Mosquitto-0.3.0
running: /tmp/pear/temp/Mosquitto/configure --with-php-config=/usr/bin/php-config --with-mosquitto=/usr/lib/arm-linux-gnueabihf/libmosquitto.so.1
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... armv6l-unknown-linux-gnueabihf
checking host system type... armv6l-unknown-linux-gnueabihf
checking target system type... armv6l-unknown-linux-gnueabihf
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/php5/20131226
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for mosquitto support... yes, shared
checking for mosquitto files in default path... not found
configure: error: Please reinstall the mosquitto distribution
ERROR: `/tmp/pear/temp/Mosquitto/configure --with-php-config=/usr/bin/php-config --with-mosquitto=/usr/lib/arm-linux-gnueabihf/libmosquitto.so.1' failed

@mgdm
Copy link
Owner

mgdm commented Jan 28, 2016

Have you got the libmosquitto1-dev package installed as well?

@glynhudson
Copy link

No, libmosquitto1-dev does not seem to be in Debian or Ubuntu packages?

Update, sorry wrong spelling libmosquitto-dev is in the packages. YES this fixed this issue 👍

@mgdm
Copy link
Owner

mgdm commented Jan 28, 2016

Great. I might add it to the README!

@mgdm mgdm closed this as completed Jan 28, 2016
@glynhudson
Copy link

Should this be added to the install readme?

@mgdm
Copy link
Owner

mgdm commented Jan 28, 2016

I've just done so: https://github.com/mgdm/Mosquitto-PHP#installation

@jpyeah
Copy link

jpyeah commented Mar 18, 2018

I'm having the same problem...

I'm installing using rpm ,install libmosquitto1 and libmosquitto-devel

Hope It can help someone others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants