Uri Even-Chen wrote:
> "error in loading shared libraries: libmysql++-1.6.so.0: cannot open
> shared object file: No such file or directory"
This is similar to this previous thing when compiler didn't found the
libraries to link. Now you are running the program but he can't find the
libraries. The paths to them aren't written to program binary (which is
normal). There are different possibilities to get it work:
For all of them you have to find, where this file libmysql++-1.6.so.0 is
located on your disk.
1. add this path to /etc/ld.so.conf file and run ldconfig once after
this. Now OS is able to find this library.
2. set the environment variable LD_LIBRARY_PATH= point to this directory
3. Copy file libmysql++-1.6.so* to some usual place for libraries like
/usr/lib
Just for education :). First option is preferable but others work too.
Option 2 is good when you don't have root access on computer and can't
modify ld.so.conf file. Third is not correct solution.
--
+----------------------------------------------------------------+
| TcX ____ __ _____ _____ ___ |
| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Tõnu Samuel |
| /*/ /*/ /*/ \*\_ |*| |*||*| tonu@stripped |
| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Tallinn, Estonia |
| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ |
| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
| /*/ \*\ Developers Team |
+----------------------------------------------------------------+