List:General Discussion« Previous MessageNext Message »
From:Tonu Samuel Date:March 2 2000 9:57pm
Subject:Re: still problems with mysql++
View as plain text  
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 |
+----------------------------------------------------------------+
Thread
help with MySQL setupUri Even-Chen15 Feb
  • Re: help with MySQL setupsinisa15 Feb
    • Re: help with MySQL setupUri Even-Chen2 Mar
      • Re: help with MySQL setupsinisa3 Mar
    • still problems with mysql++Uri Even-Chen2 Mar
      • Re: still problems with mysql++Thimble Smith3 Mar
    • Re: help with MySQL setupTonu Samuel3 Mar
    • Re: still problems with mysql++Tonu Samuel3 Mar
    • Re: still problems with mysql++Uri Even-Chen3 Mar
    • Re: still problems with mysql++Tonu Samuel3 Mar
    • Re: another bug report with mysql++Uri Even-Chen5 Mar
      • Re: another bug report with mysql++sinisa5 Mar
        • Re: segmentation fault with mysql++Uri Even-Chen5 Mar
          • Re: segmentation fault with mysql++sinisa6 Mar
        • Re: segmentation fault with mysql++Uri Even-Chen7 Mar
          • Re: segmentation fault with mysql++Thimble Smith7 Mar
  • Re: help with MySQL setupUri Even-Chen1 Mar
  • Re: help with MySQL setupTonu Samuel1 Mar
  • Re: help with MySQL setupUri Even-Chen2 Mar
    • Re: help with MySQL setupsinisa2 Mar
    • Re: help with MySQL setupThimble Smith2 Mar
  • Re: help with MySQL setupUri Even-Chen2 Mar
    • Re: help with MySQL setupsinisa2 Mar