I had success to compile the php/apache
with imap support under redhat 7.0 and
apache 1.3.19 and php 4.0.5.
But, when I compile the php with imap
and sybase support. even the compile
is finished. but the sybase still
doesn't work.
Herewith the batch file
for : imap_support.sh
php4_sybase_imap.sh
#imap_support.sh
#!/bin/sh
echo '---------------------------------------------------------'
'
echo '---Erase Current Runtime ---'
rm -rf /usr/lib/gcc-lib/i386-redhat-linux/2.96/libc-client.a
rm -rf /var/src/php405/imap-2001.BETA.SNAP-0105251616
rm -rf /usr/local/lib/libc-client.a
rm -rf /usr/local/include/rfc822.h
rm -rf /usr/local/include/mail.h
rm -rf /usr/local/include/linkage.h
rm -rf /usr/local/include/utf8.h
echo '---Compile Imap Support Finished----'
cd /var/src/php405/
tar xzvf imap.tar.Z
cd /var/src/php405/imap-2001.BETA.SNAP-0105251616
make slx
echo '---Copy library and Header File to directory ------------'
cd /var/src/php405/imap-2001.BETA.SNAP-0105251616/c-client
cp c-client.a /usr/local/lib/libc-client.a
cp c-client.a /usr/lib/gcc-lib/i386-redhat-linux/2.96/libc-client.a
cd /var/src/php405/imap-2001.BETA.SNAP-0105251616/c-client
cp rfc822.h /usr/local/include
cp mail.h /usr/local/include
cp linkage.h /usr/local/include
cp utf8.h /usr/local/include
cd /var/src/samscript
echo '---Compile Php ---------'
#php4_sybase_imap.sh
#!/bin/sh
echo '---Erase Current Runtime Apache Directory ---------------'
rm -rf /usr/local/lib/php
rm -rf /usr/local/include/php
rm -rf /var/local/apache
rm -rf /var/src/apache_1.3.19/apache_1.3.19
cd /var/src/apache_1.3.19
tar xvf /var/src/apache_1.3.19/apache_1.3.19.tar
cd /var/src/apache_1.3.19/apache_1.3.19
echo '---Erase Current Runtime Php Directory ------------------'
echo '---Decompress directory----------------------------------'
rm -rf /var/src/php405/php_4.0.5
cd /var/src/php405/
tar xvf /var/src/php405/php-4.0.5.tar
echo '---Configure Php Destination and Prefix -----------------'
echo '---Compile Php ------------------------------------------'
cd /var/src/apache_1.3.19/apache_1.3.19
export LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam"
./configure --prefix=/var/local/apache --enable-module=most --enable-shared=max --activate-module=src/modules/php4/libphp4.a
cd /var/src/php405/php-4.0.5
./configure --with-apache=/var/src/apache_1.3.19/apache_1.3.19 --with-sybase=/opt/sybase-11.9.2 --with-imap=/usr/local/lib/ --enable-calendar --enable-inline-optimization --enable-track-vars
cd /var/src/php405/php-4.0.5
make
cd /var/src/php405/php-4.0.5
make install
echo '---Compile Php Finished----------------------------------'
echo '---Configure Apache Destination and Prefix --------------'
cd /var/src/apache_1.3.19/apache_1.3.19
./configure --prefix=/var/local/apache --enable-module=most --enable-shared=max --activate-module=src/modules/php4/libphp4.a
make
make install
echo '---Apache Compile Finished -----------------------------'
echo '---Copy Php Library ini -- -----------------------------'
cd /var/src/php405/php-4.0.5
cp php.ini-dist /usr/local/lib/php.ini
echo '---End of this script -----------------------------------'