Paul,

SuSE has /etc/ld.so.conf
That is working now. Thank for your time and help.

M.

----- Original Message -----
From: Paul DuBois <[EMAIL PROTECTED]>
To: Maximiliano Lucius <[EMAIL PROTECTED]>
Sent: Monday, February 11, 2002 11:45 AM
Subject: Re: Runtime error on MySQL C API


> >Hi MySQL Builders,
> >
> >I get some stupid error that I cannot resolve:
> >
> >./client2 error while loading shared libraries: libmysqlclient.so.10
> >cannot load shared object file: No such file or directory.
>
> Does SuSE have /etc/ld.so? If so, add /usr/local/mysql-3.23.43/lib/mysql
> to it and run ldconfig (as root).
>
> >
> >
> >OS: SuSE 7.2
> >-------------------------------------------
> >Makefile
> >-------------
> >CC = gcc
> >INCLUDES = -I/usr/local/mysql-3.23.43/include/mysql
> >LIBS = -L/usr/local/mysql-3.23.43/lib/mysql -lmysqlclient -lm
#-lsocket -lnsl
> >
> >PROG = client2
> >
> >all:: $(PROG)
> >
> >.c.o:
> >  $(CC) -c $(INCLUDES) $<
> >
> >$(PROG): $(PROG).o
> >  $(CC) -o $@ $(PROG).o $(LIBS)
> >
> >clean::
> >  rm -f $(PROG).o $(PROG)
> >-------------------------------------------
> >client2.c
> >-------------
> >/* client2.c */
> >
> >#include <stdio.h>
> >#include <mysql.h>
> >
> >#define def_host_name NULL
> >#define def_user_name NULL
> >#define def_password NULL
> >#define def_db_name NULL
> >
> >MYSQL *conn;
> >
> >int
> >main (int argc, char *argv[]){
> >  conn = mysql_init (NULL);
> >  if (conn == NULL){
> >   fprintf (stderr, "mysql_init() failed (probably out of memory)\n");
> >   exit (1);
> >  }
> >  if (mysql_real_connect (conn, def_host_name, def_user_name,
> >def_password, def_db_name, 0, NULL, 0) == NULL){
> >   fprintf (stderr, "mysql_real_connect() failed:\nError %u (%s)\n",
> >mysql_errno (conn), mysql_error (conn));
> >   exit (1);
> >  }
> >  mysql_close (conn);
> >  exit (0);
> >}
> >
> >-------------------------------------------
> >
> >
> >
> >Thanks in advance.
> >
> >M
>
>


---------------------------------------------------------------------
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