Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] ld cannot find lpaho-mqtt3c


Not necessarily the specific solution for your problem, but ... maybe the work-around would help you somehow.

I am submitting the Paho C packages for inclusion in Fedora and CentOS. The packages are already in the Fedora updates testing repository and should be available in the stable repositories in a few days. The packages for Paho C will also be available for CentOS soon, but they need maturity time in Fedora before I can push them to CentOS.

Those packages are available in my COPR repository at The packages are build for the latest Paho release (1.2.0) and they are the same I submit for inclusion on Fedora/CentOS.

You can install them either via COPR or by directly installing the RPMs (though, it must be said that I never tried on a Centos 6.4, so there's a chance you would need to rebuild the SRPM). 

Kind regards

On Wed, Nov 22, 2017 at 8:15 AM, Heloise Chevalier <hchevalier33@xxxxxxxxx> wrote:


I have trouble compiling a file while linking it to the paho.mqtt.c library. I run gcc -o file file.c -lpaho-mqtt3c  -I src -lpthread -L build/output to compile it, but get a /usr/bin/ld cannot find lpaho-mqtt3c error.

Here is the output from the make install of the library, which shows the symlink has been created, so the problem does not come from that :

mkdir -p build/output/samples
mkdir -p build/output/test
echo OSTYPE is Linux
OSTYPE is Linux
install -m 644  build/output/ /usr/local/lib
install -m 644  build/output/ /usr/local/lib
install -m 644  build/output/ /usr/local/lib
install -m 644  build/output/ /usr/local/lib
install  build/output/MQTTVersion /usr/local/bin
/sbin/ldconfig /usr/local/lib
ln -s /usr/local/lib/
ln -s /usr/local/lib/
ln -s /usr/local/lib/
ln -s /usr/local/lib/
install -m 644 src/MQTTAsync.h /usr/local/include
install -m 644 src/MQTTClient.h /usr/local/include
install -m 644 src/MQTTClientPersistence.h /usr/local/include

I searched for similar issues already, but none of the solutions given seem to work here. I am working on a computer running CentOS 6.4. What bugs me the most about this is that I already successfully installed and used this library previously on another computer, also running CentOS 6.

Thanks for any help

paho-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Otavio R. Piske
Messaging Quality Assurance Engineer

Back to the top