This document describes how to compile php IMAP support.
Please don't treat it as a complete and prescriptive manual. Different versions
and platforms may require additional steps or packages, and we recommend that
the compilation is performed by a qualified system administrator.
- Log in as root:
- Download IMAP installation
- Untar the package:
tar -zxf IMAP_PACKAGE_FILENAME
- Enter the source directory:
- Create a symlink for SSL:
# [ -d /usr/local/ssl ] || ln -s /usr /usr/local/ssl
- Build the package.
Linux RedHat ES3:
# make lrh EXTRACFLAGS="-I/usr/kerberos/include"
Linux RedHat 7.x:
# make lrh
# make bsf
- Change file permissions:
# chown root:root `find ./ | grep ".*.h$" | xargs` c-client/c-client.a
# chown root:wheel `find ./ | grep ".*.h$" | xargs` c-client/c-client.a
- Install the lib and include files:
# mkdir -p /hsphere/shared/lib
# mkdir -p /hsphere/shared/include/c-client
# cp -f c-client/c-client.a /hsphere/shared/lib/
# cp -f src/c-client/*.h /hsphere/shared/include/c-client/
# cp -f c-client/linkage.h /hsphere/shared/include/c-client/
# cp -f src/osdep/unix/*.h /hsphere/shared/include/c-client/
# [ -f /hsphere/shared/include/c-client/osdep.h ] && \
rm -f /hsphere/shared/include/c-client/osdep.h
- Create the osdep.h link:
# ln -s /hsphere/shared/include/c-client/os_slx.h \
# ln -s /hsphere/shared/include/c-client/os_bsf.h \