add path to mysql lib into LD_LIB_PATH or whatever it calles in solaris..

----- Original Message -----
From: "chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 1:35 PM
Subject: Solaris woos... compiling vpopmail w/mysql


> Hello list,
>
> I've read through the archives and found plenty of people with similar
> problems compiling vpopmail on - obviously - Solaris boxes.  From what I
> have read, Solaris is the bigest pain-in-the-ass to work with involving
> shared libraries.  Now, I'll freely admit I'm no expert.  If I was, I
> probably could fix this damn thing myself...  but I wan't to become one!
> I've got to get this shared library thing down.  Here's what's happening:
>
> ns:/RAID/vpopmail/bin 117% sudo ./vconvert -c -s
> Password:
> ld.so.1: ./vconvert: fatal: libmysqlclient.so.10: open failed: No such
file
> or directory
> Killed
> ns:/RAID/vpopmail/bin 118%
>
>
> We've all seen this error before.  Now, here's the part I don't
understand.
> Look at the output of :
> ns:/RAID/vpopmail/bin 118% ldd ./vconvert
>         libmysqlclient.so.10 =>  (file not found)
>         libsocket.so.1 =>        /usr/lib/libsocket.so.1
>         libnsl.so.1 =>   /usr/lib/libnsl.so.1
>         libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
>         libm.so.1 =>     /usr/lib/libm.so.1
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         libmp.so.2 =>    /usr/lib/libmp.so.2
>         libgen.so.1 =>   /usr/lib/libgen.so.1
>         /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
> ns:/RAID/vpopmail/bin 119%
>
> There were no problems when I ./configured or make, make install.  It
found
> the libaries then...
> Now, I can solve this by setting my LD_LIBRARY_PATH.  That would work, but
> I've been reading that this is not a preferred method.  The thing that I
> don't get, is how does the program "mysql" know where to find it's
libraries
> when it runs WITHOUT a LD_LIBRARY_PATH?  Look:
> ns:/usr/local/mysql/bin 120% ldd mysql
>         libcurses.so.1 =>        /usr/lib/libcurses.so.1
>         libmysqlclient.so.10 =>
> /usr/local/mysql/lib/mysql/libmysqlclient.so.10
>         libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
>         libgen.so.1 =>   /usr/lib/libgen.so.1
>         libsocket.so.1 =>        /usr/lib/libsocket.so.1
>         libnsl.so.1 =>   /usr/lib/libnsl.so.1
>         libm.so.1 =>     /usr/lib/libm.so.1
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         libmp.so.2 =>    /usr/lib/libmp.so.2
>         /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
>
> See, the binary "mysql" knows where to find the 'libmysqlclient.so.10'
file,
> even though I don't have LD_LIBRARY_PATH set...   what compile time
options
> need to be set to make the binary have the path built into it?  Is this
> something that vpopmail's ./configure script should be doing?  If it did,
I
> bet we could put this whole problem to bed finally.  I'd be happy to
modify
> things if I knew a little more what the heck I was doing.
>
> Any help will be MUCH appriciated!
>
> Sincerely,
> Chris Bunnell
>
>
>

Reply via email to