Bug #15172: The file config has a hard-coded version number for BerkeleyDB (BerkeleyDB3.0)
| From: | tena dot sakai dot b at bayer dot com | Date: | Tue, 22 Jan 2002 19:23:12 +0000 |
| Subject: | Bug #15172: The file config has a hard-coded version number for BerkeleyDB (BerkeleyDB3.0) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-77813@lists.php.net to get a copy of this message | ||
From: tena.sakai.b@bayer.com
Operating system: Solaris8
PHP version: 4.1.1
PHP Bug Type: *Configuration Issues
Bug description: The file config has a hard-coded version number for BerkeleyDB (BerkeleyDB3.0)
I recently got around to install php on a Sun (Solaris 8).
There were more than one stumbling blocks, but here's a
major one I wanted to report.
I had installed BerkeleyDB, among other stuff, and by
default, the path to it is BerkeleyDB.3.2. (This is
done via pkgadd command using the package from
www.sunfreeware.com).
The file configure in php-4.1.1 (top level directory) has a line:
for i in /usr/local /usr /usr/local/BerkeleyDB.3.0 $withval; do
That 0 was a problem. When I changed the 0 to 2 it went
flawlessly. Here's a diff between the original version and
the one I used:
*** configure Wed Dec 26 02:43:05 2001
--- myConfigure Thu Jan 17 13:11:20 2002
***************
*** 15322,15328 ****
withval="$with_db3"
if test "$withval" != "no"; then
! for i in /usr/local /usr /usr/local/BerkeleyDB.3.0 $withval; do
if test -f "$i/include/db.h" ; then
THIS_PREFIX=$i
DB3_EXTRA=db.h
--- 15322,15328 ----
withval="$with_db3"
if test "$withval" != "no"; then
! for i in /usr/local /usr /usr/local/BerkeleyDB.3.2 $withval; do
if test -f "$i/include/db.h" ; then
THIS_PREFIX=$i
DB3_EXTRA=db.h
I imagine maybe this is a good thing to fix.
Regards,
Tena Sakai
tena.sakai.b@bayer.com
--
Edit bug report at: http://bugs.php.net/?id=15172&edit=1