title: Issue installing PHP with IMAP/Kerberos support on Ubuntu 11
body: <p>I'm trying to install PHP on Ubuntu 11.04. I'm compiling from source.</p>
  
  <p>Here is me installing dependencies:</p>
  
  <pre><code>apt-get -y install php5-dev php-pear
  apt-get -y install libxml2-dev libevent-dev zlib1g-dev libbz2-dev libgmp3-dev libssl-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libgd2-xpm-dev libmcrypt-dev memcached libmemcached-dev libc-client-dev libkrb5-dev
  </code></pre>
  
  <p>And here is my configure script:</p>
  
  <pre><code>./configure --enable-fpm --enable-cli --with-fpm-user=php-fpm --with-fpm-group=php-fpm --prefix=/usr/local/php --exec-prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/etc --enable-bcmath --enable-ctype --with-curl --with-curlwrappers --enable-dba --with-cdb --with-flatfile --with-inifile --enable-exif --enable-ftp --disable-fileinfo --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-ttf --with-freetype-dir --enable-gd-native-ttf --with-gettext --with-gmp --with-imap --with-imap-ssl --with-ldap --with-ldap-sasl --enable-mbstring=all --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-pdo-mysql --with-openssl --with-kerberos --with-pspell --enable-shmop --enable-simplexml --with-snmp --enable-soap --enable-sockets --with-tidy --enable-wddx --enable-xmlreader --with-xmlrpc --with-xsl --with-zip --with-zlib --enable-sysvsem --enable-sysvshm
  </code></pre>
  
  <p>However, I get an error:</p>
  
  <pre><code>configure: error: Kerberos libraries not found.
  
    Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
  </code></pre>
  
  <p>I didn't provide a path, but there's no directory like /usr/kerberos on my system. About five lines above the error there is a log entry that says <code>checking for IMAP Kerberos support... yes</code>. </p>
  
  <p>Do I need to specify a directory for <code>--with-kerberos</code> and what would this directory be exactly? I've been on this all day, and can't seem to figure it out.</p>
  
  <p>Thanks in advance.</p>
  
  <p>EDIT:</p>
  
  <p>I was able to sort this issue out with a symbolic link.</p>
  
  <p>Below is the what you do before you run the configure command.</p>
  
  <pre><code>mkdir /usr/kerberos
  ln -s /usr/lib/x86_64-linux-gnu /usr/kerberos/lib
  </code></pre>
  
  <p>Cheers.</p>