I can't use db2 on freebsd

From: Date: Wed, 08 Sep 1999 07:48:07 +0000
Subject: I can't use db2 on freebsd
References: 1 2 3 4 5  Groups: php.dev 
Request: Send a blank email to php-dev+get-10690@lists.php.net to get a copy of this message
Hello I have installed apache1.3.9+php4.02b(CVS since 1999.9.8) on freebsd.Installing process have no problem,but I can't use db2.I am sure that my configure line 's right,and compiling is OK. please help me!! I can install it on linux,and I can use db2. The process as follows cd php4 ./configure --with-mysql --with-db2 --with-apache=../apache_1.3.9 --enable-track-vars make make install cd ../apache_1.3.9 ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a make make install <?php error_reporting(15); $h = dba_open("test.db2", "c", "db2", 0666); if(!$h) die("cannot open db\n"); for($i=0;$i<10;$i++) dba_replace("bate_$i", "$i", $h); dba_optimize($h); dba_close($h); $h = dba_open("test.db2", "r", "db2"); if(!$h) die("cannot open db\n"); for($key=dba_firstkey($h);$key != false;$key=dba_nextkey($h)) echo "**".$key."**"; dba_close($h); ?> it show Warning: no such handler: db2 in /usr/local/apache/personal/dba.php on line 4

« previous php.dev (#10690) next »