Re: Apache/PHP/Informix install script

From: Date: Thu, 25 Jan 2001 14:28:24 +0000
Subject: Re: Apache/PHP/Informix install script
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-1796@lists.php.net to get a copy of this message
> I'm fairly sure the libraries are the problem from past experience. Get them > right and it should build. This is why I said the libraries need specifying > correctly before Apache is built. Thats the fun part ;o) I don't have such a > problem as you as there is just one version of Informix on my system. This > is probably why you are having difficulties. It looks like it's going to be > a matter of playing around with them until it builds correctly. > > In the build script I do a set > /tmp/setapache so I can see exactly what > environment vars are set prior to apache being built. Can you look through > this file to make sure everything looks ok? > > You could try making sure the LD_LIBRARY_PATH is set for the correct > Informix version and then try setting the IFX_LIBS exactly as the output > from the esql -libs rather than using the absolute ones. Hi Paul, The problem with the environments vars - or should I write "environments wars" ;-) now seems to be over. I could make Apache !! So I went back to the original task: Apache_1.3.14 + Apache_JServ-1.1.2 + PHP4.0.4pl1 with Informix(2000) AND Postgresql support. Did everything from scratch (see the script). PHP crashes during make'ing where it crashed previously ... Pieter --- gcc -I. -I/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/pgsql -I/home/wins/cosslocal/src/other/php-4.0.4pl1/main -I/home/wins/cosslocal/src/other/php-4.0.4pl1 -I/home/wins/cosslocal/src/other/apache_1.3.14/src/include -I/home/wins/cosslocal/src/other/apache_1.3.14/src/os/unix -I/home/wins/cosslocal/src/other/php-4.0.4pl1/Zend -I/home/informix2000/incl/esql -I/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/mysql/libmysql -I/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/wins/cosslocal/src/other/php-4.0.4pl1/TSRM -I/usr/local/pgsql/include -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2 -I/home/informix2000/incl/esql -c pgsql.c && touch pgsql.lo pgsql.c: In function `php_if_pg_put_line': pgsql.c:750: void value not ignored as it ought to be gmake[3]: *** [pgsql.lo] Error 1 gmake[3]: Leaving directory `/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/pgsql' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/pgsql' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/wins/cosslocal/src/other/php-4.0.4pl1/ext' gmake: *** [all-recursive] Error 1 --- This is the present state of the script --------------------- #!/usr/local/bin/ksh SOURCETOPDIR=/home/wins/cosslocal/src/other APACHE_VER=apache_1.3.14 PHP_VER=php-4.0.4pl1 PHP_TAR=php-4.0.4pl1 JSERV_VER=ApacheJServ-1.1.2 JSERV_TAR=ApacheJServ-1.1.2 APACHE_DIR=/usr/local/apache_1314 INFORMIXDIR=/home/informix2000 PATH=/home/informix2000/bin:$PATH # INFORMIXSERVER wordt niet verder gebruikt in dit script ... INFORMIXSERVER=sales LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$INFORMIXDIR/incl/esql:$LD_LIBRARY_PATH LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$INFORMIXDIR/incl/esql:$IBRARY_PATH SQLEXEC= export INFORMIXDIR PATH INFORMIXSERVER LD_LIBRARY_PATH LIBRARY_PATH SQLEXEC # set IFX_LIBS to library dirs so configure doesn't try to configure them IFX_LIBS="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql" IFX_INCDIR=$INFORMIXDIR/incl/esql IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql" export IFX_LIBS IFX_INCDIR IFX_LIBDIR echo "Static Module PHP4 with Apache, Apache-JServ, PHP(pgsql and Informix)\n" #echo "Ensure httpd is stopped.\n" echo "Apache Version: $APACHE_VER" echo "Apache Source: $SOURCETOPDIR/$APACHE_VER" echo "Apache InstallDir: $APACHE_DIR" echo "PHP4 Version: $PHP_VER" echo "PHP4 Tar File: $PHP_TAR" echo "Apache-JServ Version: $JSERV_VER" echo "Apache-JServ Tar File: $JSERV_TAR\n" if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi cd $SOURCETOPDIR echo "RM $APACHE_VER" rm -r $SOURCETOPDIR/$APACHE_VER echo "RM $PHP_VER" rm -r $SOURCETOPDIR/$PHP_VER echo "RM $JSERV_VER" rm -r $SOURCETOPDIR/$JSERV_VER echo "Un-GTAR Source archives" pwd if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi echo "Un-GTAR Apache" gtar zxvf $SOURCETOPDIR/$APACHE_VER.tar.gz echo "Un-GTAR PHP4" gtar zxvf $SOURCETOPDIR/$PHP_TAR.tar.gz echo "Un-GTAR JSERV" gtar zxvf $SOURCETOPDIR/$JSERV_TAR.tar.gz echo "Initial CONFIGURE Apache" if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi cd $SOURCETOPDIR/$APACHE_VER pwd ./configure --prefix=$APACHE_DIR echo "CONFIGURE JSERV" if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi cd $SOURCETOPDIR/$JSERV_VER pwd ./configure --prefix=/usr/local/jserv \ --with-apache-src=$SOURCETOPDIR/$APACHE_VER \ --with-jdk-home=/usr/java \ --with-JSDK=/usr/local/jsdk/lib/jsdk.jar echo "MAKE JSERV" if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi gmake echo "MAKE INSTALL JSERV" if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi gmake install echo "CONFIGURE PHP4" if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi cd $SOURCETOPDIR/$PHP_VER pwd ./configure --with-apache=$SOURCETOPDIR/$APACHE_VER \ --with-pgsql \ --with-informix=$INFORMIXDIR echo "MAKE PHP4" if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi gmake echo "MAKE INSTALL PHP4" if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi gmake install echo "CONFIGURE Apache" if [ "$1" != "Y" ] then echo "Press RETURN to continue, or DEL to Abort." read ANS fi cd $SOURCETOPDIR/$APACHE_VER pwd # IFX_LIBS set to the output of /home/informix2000/bin/esql -libs IFX_LIBS="-lifsql -lifasf -lifgen -lifos -lifgls -lnsl -lsocket -laio -lm -ldl -lelf /home/informix2000/lib/esql/checkapi.o -lifglx" # Add any extra libs in here if required LIBS="$IFX_LIBS" export LIBS set >/tmp/setapache ./configure --prefix=$APACHE_DIR \ --activate-module=src/modules/php4/libphp4.a \ --activate-module=src/modules/jserv/libjserv.a echo "MAKE APACHE" gmake echo "Press RETURN to MAKE INSTALL Apache, or DEL to copy httpd manually.\n" read ANS echo "MAKE INSTALL Apache" gmake install echo "Now copy ./$PHP_VER/php.ini-dist to /usr/local/lib and modify" echo "as required.\n" echo "Edit $APACHE_DIR/conf/httpd.conf" echo "Add line: AddType application/x-httpd-php .php .php4" --------------------- _______________ / Pieter Donche \____________________________________________ | I.T. Manager e-mail Pieter.Donche@ua.ac.be \ | Dept. Mathem. & Computer Science tel +32(0)3/820.24.29 | | University of Antwerp, room A2.23 fax +32(0)3/820.24.21 | | (UIA) Universiteitsplein 1, B 2610 Wilrijk, BELGIUM (EU) | |____________________________________________________________|

« previous php.install (#1796) next »