|
HSphere PHP IMAP Compilation |
|
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:
su - - Download IMAP installation
- Untar the package:
tar -zxf IMAP_PACKAGE_FILENAME - Enter the source directory:
cd IMAP_PACKAGE_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 FreeBSD: # make bsf - Change file permissions:
Linux: # chown root:root `find ./ | grep ".*.h$" | xargs` c-client/c-client.a FreeBSD: # 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:
Linux: # ln -s /hsphere/shared/include/c-client/os_slx.h \ /hsphere/shared/include/c-client/osdep.h FreeBSD: # ln -s /hsphere/shared/include/c-client/os_bsf.h \ /hsphere/shared/include/c-client/osdep.h
|