c++ - libmysqlcppconn.so.5: cannot open shared object file: No such file or directory -
i built simple c++ application using netbeans on ubuntu. in application use mysql_connection , curl. application working fine on local system (ubuntu)
when tried run application on centos server message:
error while loading shared libraries: libmysqlcppconn.so.5: cannot open shared object file: no such file or directory.
tried check if libmysqlcppconn.so.5 library exists on server or not found there following:
remote (centos) **in [/usr/local/lib]** libmysqlcppconn-static.a libmysqlcppconn.so@ libmysqlcppconn.so.7@ libmysqlcppconn.so.7.1.1.3* local (ubuntu) **in [/usr/lib]** libmysqlcppconn-static.a libmysqlcppconn.so@ libmysqlcppconn.so.5@ libmysqlcppconn.so.5.1.1.0*
why can't application run? how can fix it?
you should build , package server.
your application linked against different (incompatible) version of 1 of libraries uses.
imho simplest build on box going run on.
Comments
Post a Comment