edit /etc/ld.so.conf
add a line for the directory that contains your library

run ldconfig

Alonso Guarisma wrote:
> 
> Dear MySQL Sirs (or Andrew Schmidt)
> Please see attachament for error messages.
> Thaks in advance for any help.
> 
> Alonso Guarisma
> 
> -------- Original Message --------
> Subject: Re: problems with linking
> Date: Mon, 19 Mar 2001 19:02:47 -0500
> From: Alonso Guarisma <[EMAIL PROTECTED]>
> To: Andrew Schmidt <[EMAIL PROTECTED]>
> CC: Keith Rambo <[EMAIL PROTECTED]>
> References: <[EMAIL PROTECTED]>
> <00cd01c0b0c5$151f69c0$[EMAIL PROTECTED]>
> 
> Dear Andrew Schmidt, thanks for your quick response. Unfortunatelly, I
> still get the same error and your instructions seem not to work at all.
> Please tell me if I am doing something else wrong and refer to the
> attachment where I show what i did, regards
> 
> Alonso Guarisma
> 
> Andrew Schmidt wrote:
> 
> > make sure you have -L/usr/local/mysql/lib/mysql/ in your compile
> >
> > and make sure that /usr/local/mysql/lib/mysql/ is in your shared object
> > cache.
> >
> > ldconfig -r  will list your current cache entries.
> >  if /usr/local/mysql/lib/mysql/libmysqlclient.so.10 is not in there then add
> > the path:
> >
> > /sbin/ldconfig -m /usr/local/mysql/lib/mysql/ to add the directory to the
> > cache.
> >
> > regards,
> >
> > -- Andrew
> >
> > ----- Original Message -----
> > From: "Alonso Guarisma"
> > To:
> > Cc: "Keith Rambo"
> > Sent: Monday, March 19, 2001 5:26 PM
> > Subject: problems with linking
> >
> >
> >> Dear MySQL Sirs,
> >> I have been trying to run a simple client program using the C API and
> >> unfortunatelly I am still getting the same error over and over again:
> >> ./client1: error in loading shared libraries: libmysqlclient.so.10:
> >> cannot open shared object file: No such file or directory
> >>
> >> Attached is the output of the libraries directory when I execute ls -l
> >> I cannot understand why the program does not find the library, I would
> >> really appreciate any help from you regarding this matter, because I
> >> already tried the options you provide in the MySQL manual (Section 20.3
> >> Problems when linking the MySQL client library).
> >>
> >> I also think the problems related to this library is causing me failures
> >> when I try to install the GUI for MySQL.
> >>
> >> I hope to hear from you as soon as possible, sincerely
> >>
> >> Alonso Guarisma
> >>
> >
> >
> > ----------------------------------------------------------------------------
> > ----
> >
> >
> >> alonso@linux:~ > ls -l /usr/local/mysql/lib/mysql/
> >> total 972
> >> -rw-r--r--   1 mysqladm mysqlgrp    11822 Feb 11 16:02 libdbug.a
> >> -rw-r--r--   1 mysqladm mysqlgrp    34846 Feb 11 16:02 libheap.a
> >> -rw-r--r--   1 mysqladm mysqlgrp    15246 Feb 11 16:02 libmerge.a
> >> -rw-r--r--   1 mysqladm mysqlgrp   230180 Feb 11 16:02 libmyisam.a
> >> -rw-r--r--   1 mysqladm mysqlgrp    23312 Feb 11 16:02 libmyisammrg.a
> >> -rw-r--r--   1 mysqladm mysqlgrp   182284 Feb 11 16:02 libmysqlclient.a
> >> -rwxr-xr-x   1 mysqladm mysqlgrp      721 Feb 11 16:02 libmysqlclient.la
> >> lrwxrwxrwx   1 mysqladm root           24 Feb 11 16:02
> >
> > libmysqlclient.so -> libmysqlclient.so.10.0.0
> >
> >> lrwxrwxrwx   1 mysqladm root           24 Feb 11 16:02
> >
> > libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
> >
> >> -rwxr-xr-x   1 mysqladm mysqlgrp   134367 Feb 11 16:02
> >
> > libmysqlclient.so.10.0.0
> >
> >> -rw-r--r--   1 mysqladm mysqlgrp    31540 Feb 11 16:02 libmystrings.a
> >> -rw-r--r--   1 mysqladm mysqlgrp   190742 Feb 11 16:02 libmysys.a
> >> -rw-r--r--   1 mysqladm mysqlgrp   102344 Feb 11 16:02 libnisam.a
> >>
> >
> >
> > ----------------------------------------------------------------------------
> > ----
> >
> >
> >> ---------------------------------------------------------------------
> >> Before posting, please check:
> >>    http://www.mysql.com/manual.php   (the manual)
> >>    http://lists.mysql.com/           (the list archive)
> >>
> >> To request this thread, e-mail
> >> To unsubscribe, e-mail
> >
> >
> >
> >> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> >
> 
>   ------------------------------------------------------------------------
> Dear MySQL Sirs or Andrew:
> Here I pasted the output of what I did, I still get the same error...
> 
> alonso@linux:~ > gcc -c -I/usr/local/mysql/include/mysql client1.c
> alonso@linux:~ > gcc -o client1 client1.o -L/usr/local/mysql/lib/mysql -lmysqlclient
> 
> ls -l client1
> -rwxr-xr-x   1 alonso   users       12118 Mar 19 18:36 client1
> 
> alonso@linux:~ > client1
> client1: error in loading shared libraries: libmysqlclient.so.10: cannot open shared 
>object file: No such file or directory
> 
> alonso@linux:~ > ldconfig -r
> ldconfig: option requires an argument -- r
> 
> alonso@linux:~ > ldconfig -m /usr/local/mysql/lib/mysql/
> ldconfig: invalid option -- m
> Try `ldconfig --help' or `ldconfig --usage' for more information.
> 
> alonso@linux:~ > ldconfig -l /usr/local/mysql/lib/mysql/
> ldconfig: Ignored file /usr/local/mysql/lib/mysql/ since it is not a regular file.
> 
> Although the executable is created, I cannot run it because I obtain the same error 
>(regarding
> the libmysqlclient.so.10)
> 
> Thanks in advance for any other help regarding this matter.
> 
> Alonso
> 
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail 
><[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to