[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP3-3.0.12-7



On Tue, Sep 21, 1999 at 06:06:16PM +0200, Alfred Munnikes wrote
> Hello
> 
> When I'm compiling PHP3-3.0.12-7 (potato source) on my Debian Slink
> system (libc6 2.0.7.19981211-6, and the only updated package is
> debhelper 2.0.43 )  I get the next error:
> 
> ld -Bshareable -lc -o libphp3.so ./mod_php3.o libmodphp3-so.a
> -L/usr/local/lib -L/usr/local/lib -lz -ldb pcrelib/libpcre.a -lm -ldl
> -lcrypt -lnsl -lresolv -Lpcrelib -lpcre -lm -lcrypt -ldbm -ldb
> ld: cannot open -ldbm: No such file or directory
> apxs:Break: Command failed with rc=65536
> make[1]: *** [libphp3.so] Error 1
> make[1]: Leaving directory `/var/tmp/php3-3.0.12/apache'
> make: *** [apache-stamp] Error 2 
> 
> With error's like this I normally change the MakeFile by removing the
> "-ldbm", but I think that that isn't the right way.
> 
> Can someone tell me how to solve progblems like this (ld cann't find
> -XXXX )
> and what packages must I have to compile PHP3 from potato source on my
> slink system (might it be an idee to make source-dependences ?)
> 
> If someone know a place where I can get a precompiled versie for Slink
> it is good too.
> 

You probably need the libgdbmg1-dev package.

A good place to start is to look at the compiled .deb in potato, and
check its dependencies; if it needs 'libxyz' to run, you probably need
'libxyz-dev' to build it.

After you install libgdbmg1-dev unpack the PHP sources and run debian/rules
from scratch, as the configure script may not recognize that your system
now has the needed library (as it was initially run while it was missing). 

Also, read the INSTALL notes that come in php's source directory; I seem
to recall that it gave pointers to a couple of libraries (freetype-dev?)
you may need but may not have noticed.

Good luck,

John P.
-- 
huiac@camtech.net.au
john@huiac.apana.org.au
"Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark


Reply to: