Re: Installation problems with PHP4, Apache, and IBM DB2

From: Date: Thu, 21 Sep 2000 09:17:11 +0000
Subject: Re: Installation problems with PHP4, Apache, and IBM DB2
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3022@lists.php.net to get a copy of this message
craigs@pacelink.com wrote: > > Hi; > > I am trying to implement php4 as an apache module using IBM DB2 as a > database - here are the specifics: > > Linux Redhat 6.1 > Kernel 2.2.16 > php-4.0.1pl2 > apache_1.3.12 > ibm-db2 7.1 > mod_ssl-2.6.5-1.3.12 > openssl-0.9.5a > > I had already had php4/apache/mysql up and running, but needed to switch to > IBM db2, so this is what I have done: > > first for php4 > gmake clean > > ./configure --with-ibm-db2 --with-apache=../apache_1.3.12 > --enable-track-vars > > gmake depend > > gmake > compile.log (look at stderr only) > > got these warnings: > In file included from /home/db2inst1/sqllib/include/sqlcli1.h:42, > from /usr/local/src/php-4.0.1pl2/ext/odbc/php_odbc.h:143, > from internal_functions.c:38: > /home/db2inst1/sqllib/include/sqlcli.h:718: warning: `ODBCVER' redefined > /usr/local/src/php-4.0.1pl2/ext/odbc/php_odbc.h:37: warning: this is the > locatio > n of the previous definition > In file included from /home/db2inst1/sqllib/include/sqlcli1.h:42, > from php_odbc.h:143, > from php_odbc.c:31: > /home/db2inst1/sqllib/include/sqlcli.h:718: warning: `ODBCVER' redefined > php_odbc.h:37: warning: this is the location of the previous definition > This should be ok - you can nevertheless comment out line 37 in php_odbc.h > It seemed like it built everything anyway, but... > > for apache > > /configure \ > > --prefix=/home/httpd/ \ > > --enable-module=ssl \ > > --activate-module=src/modules/php4/libphp4.a \ > > --enable-module=php4 > > ... the usual stuff and then: > > + doing sanity check on compiler and options > ** A test compilation with your Makefile configuration > ** failed. The below error output from the compilation > ** test will give you an idea what is failing. Note that > ** Apache requires an ANSI C Compiler, such as gcc. > > ======== Error Output for sanity check ======== > ============= End of Error Report ============= > The apache build fails probably due to some missing library paths. Is there any possibility to get the actual compile commandline to see what's actually failing? Another trick could be to symlink libdb2.a to /usr/lib to fool the configure script. > > P.S. How do I configure a Data Source Name when I finally get this > compliled (I believe that you are using the DB2 CLI interface) > Don't know much about DB2 but I think you can use a file .odbc.ini in the user's home directory. Maybe this already exists in the db2inst home directory. -Andreas

« previous php.db (#3022) next »