dbTalk Databases Forums  

Help Me: Running Examples

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Help Me: Running Examples in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Help Me: Running Examples - 08-09-2006 , 08:55 AM






--0-889945022-1155131578=:31843
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi all,
I have installed Mysql++ through "mysql++-2.1.1.tar.gz (1.8 MB, 2006.04.08) — Library source code"
and run following commands after changing directory to "/usr/src/mysql++-2.1.1"
(1) ./configure
(2) make
(3) su
(4) make install

now whenever i run some example program given in /examples error occured as shown below
command: " # ./simple1 "
Error : " ./simple1: error while loading shared libraries: libmysqlpp.so: cannot open shared object file: No such file or directory "
I have Fedora Core 4 Installed

---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
--0-889945022-1155131578=:31843--

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: Help Me: Running Examples - 08-10-2006 , 01:53 AM






Hello Muhammad,

Ma> Error : " ./simple1: error while loading shared libraries:
Ma> libmysqlpp.so: cannot open shared object file: No such file or
Ma> directory "
Ma> I have Fedora Core 4 Installed

Not sure about syntax, I'm on windowz currently, but as I remember
/sbin/ldconfig should help.

--
Best regards,
Forums mailto:forum_reply (AT) list (DOT) ru


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: Help Me: Running Examples - 08-10-2006 , 07:38 AM



Muhammad aleem wrote:
Quote:
(1) ./configure
(2) make
(3) su
(4) make install

now whenever i run some example program given in /examples error occured as shown below
command: " # ./simple1 "
Error : " ./simple1: error while loading shared libraries: libmysqlpp.so: cannot open shared object file: No such file or directory "
I have Fedora Core 4 Installed
You missed a step: run ldconfig as root. ldd can't find libraries until
you do that.

Or, you can say something like this:

LD_LIBRARY_PATH=../lib ./simple1 locahost .... etc.

That will run the example with the library version that was built along
with the libraries, instead of the installed version.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.