dude.. that's just how solaris works.. now deal with it:)
in solaris you *MUST* have LD_LIBRARY_PATH otherwise you'll run into many
problems..

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


> Hi, thanks for the help.  Like I put in my last message, I can get things
to
> work with a LD_LIBRARY_PATH statement, but I don't understand why I have
to
> do that.  When you look at LDD for -say- mysql, you can see .so's being
> called, and I don't have a LD_LIBRARY_PATH set for mysql...  why does it
> work correctly?  It seems that during the compile time, you can set the
path
> so that it gets compiled into the binary.  This way, at run time, it knows
> where to find the .so's.  For some reason, this path isn't being put into
> the source code via ./configure.  That's my guess anyway...  and it's
> definitly a guess!
>
> Chris
>
> ----- Original Message -----
> From: "alexus" <[EMAIL PROTECTED]>
> To: "chris" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 10:51 AM
> Subject: Re: Solaris woos... compiling vpopmail w/mysql
>
>
> > 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