Ken Jones wrote:
> 
> Check the for the location of your libmysqlclient.a file. And put
> -L/path/to/mysql/libs/dir in your LDFLAGS. Looks like your
> libmysqlclient.a
> is not in /usr/local/mysql/lib directory.
> 
> Ken Jones
> 
> Ross Lawrie wrote:
> >
> > James wrote:
> > >
> > > On Mon, Oct 23, 2000 at 08:55:42AM -0700, Ross Lawrie wrote:
> > > > I'm sure it's just a matter of putting "-L/usr/local/mysql/lib
> > > > -lmysqlclient -lz" somewhere in the Makefile, but I'm not quite sure as
> > > > to the placement of this?  Someone point me in the right direction, I
> > > > thought it would be the "LIBS = " line, but that doesn't seem to do it,
> > > > so either I'm in the wrong place in the Makefile or the line I'm putting
> > > > in is wrong?
> > >
> > > Try adding that to the LDFLAGS variable.
> >
> > Okay, I've tried that, but still getting the same set of errors.  Here's
> > the entry in the Makefile:
> >
> > LDFLAGS = -L/usr/local/mysql/lib -lmysqlclient
> > LIBS = -lz

Hrmm, something happened to my mysql installation.  I've redone it, it
definitely works.  All the libs are in /usr/local/mysql/lib/mysql:

[root@mail sqwebmail-1.0]# ls -la /usr/local/mysql/lib/mysql/
total 960
drwxr-sr-x    2 mysql    mysql        4096 Oct 23 11:35 .
drwxr-sr-x    3 mysql    mysql        4096 Oct 23 11:35 ..
-rw-r--r--    1 mysql    mysql       11086 Oct 23 11:35 libdbug.a
-rw-r--r--    1 mysql    mysql       34410 Oct 23 11:35 libheap.a
-rw-r--r--    1 mysql    mysql       15128 Oct 23 11:35 libmerge.a
-rw-r--r--    1 mysql    mysql      229658 Oct 23 11:35 libmyisam.a
-rw-r--r--    1 mysql    mysql       23438 Oct 23 11:35 libmyisammrg.a
-rw-r--r--    1 mysql    mysql      172886 Oct 23 11:35 libmysqlclient.a
-rwxr-xr-x    1 mysql    mysql         721 Oct 23 11:35
libmysqlclient.la
lrwxrwxrwx    1 mysql    mysql          24 Oct 23 11:35
libmysqlclient.so -> libmysqlclient.so.10.0.0
lrwxrwxrwx    1 mysql    mysql          24 Oct 23 11:35
libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
-rwxr-xr-x    1 mysql    mysql      125757 Oct 23 11:35
libmysqlclient.so.10.0.0
-rw-r--r--    1 mysql    mysql       32152 Oct 23 11:35 libmystrings.a
-rw-r--r--    1 mysql    mysql      187732 Oct 23 11:35 libmysys.a
-rw-r--r--    1 mysql    mysql      100468 Oct 23 11:35 libnisam.a

This time my mysql is installed from the source.  It shows up in an
ldconfig:

[root@mail sqwebmail-1.0]# ldconfig -p | grep -i mysql
        libmysqlclient.so.10 (libc6) =>
/usr/local/mysql/lib/mysql/libmysqlclient.so.10
        libmysqlclient.so (libc6) =>
/usr/local/mysql/lib/mysql/libmysqlclient.so

Bah, I'm at a loss now.  My Makefile has the following:

LDFLAGS = -L/usr/local/mysql/lib/mysql -lmysqlclient
LIBS = -lz

I've even redone my vpopmail installation and it finds the mysql
libraries, and is properly interacting with the mysql database. 
Starting to think that it's hair pulling time.

Ross Lawrie

Reply via email to