I am trying to connect MongoDb with Qt c++. When I build it there is no error, just information like;:-1: warning: libboost_system.so.1.54.0, needed by  /usr/local/lib/libboost_thread.so, may conflict with  libboost_system.so.5However when I tried to Run it says:error while loading shared libraries: libboost_thread.so.1.54.0:  cannot open shared object file: No such file or directoryHere is my small code sample which everything looks fine.#include mainwindow.h#include ui_mainwindow.h#include <QDebug>#include <mongo/client/dbclient.h>MainWindow::MainWindow(QWidget *parent) :    QMainWindow(parent),    ui(new Ui::MainWindow){    ui->setupUi(this);    try    {        mongo::DBClientConnection c;        c.connect(localhost);        qDebug() << Connected to Mongo;    }    catch (mongo::DBException &e)    {        qDebug() << Cannot, Error :  << e.what();    }}MainWindow::~MainWindow(){    delete ui;}Could you please help me why I am getting this error and how to fix it ? EDIT : Here is also my .pro file ; QT       += core guigreaterThan(QT_MAJOR_VERSION, 4): QT += widgetsTARGET = mongodbtestTEMPLATE = appSOURCES += main.cpp\        mainwindow.cppHEADERS  += mainwindow.hFORMS    += mainwindow.uiINCLUDEPATH += /usr/local/lib/LIBS += -pthread \    -lmongoclient \    -lboost_thread \    -lboost_system \    -lboost_regexand I see that I already have libboost_thread.so.1.54.0[mg@mg-CentOS mg]$ locate libboost_thread.so.1.54.0  /usr/local/lib/libboost_thread.so.1.54.0
error while loading shared libraries: libboost_thread.so.1.54.0: cannot open shared object file: No such file or directory
linux;c++;qt