title: How to install libpuzzle for PHP on Ubuntu 12.04 machine?
body: <p>I'm trying to install libpuzzle PHP extension but I don't seem to be able to get it to work.</p>
  
  <p>I have tried to follow the following instructions:</p>
  
  <blockquote>
    <p>The Puzzle library can also be used through PHP, using a native
    extension. Prerequisites are the PHP headers, libtool, autoconf and
    automake. Here are the basic steps in order to install the extension:</p>
    
    <p>(on OpenBSD: export AUTOMAKE_VERSION=1.9 ; export
    AUTOCONF_VERSION=2.61)</p>
    
    <p>cd php/libpuzzle</p>
    
    <p>phpize</p>
    
    <p>./configure --with-libpuzzle</p>
    
    <p>make clean</p>
    
    <p>make</p>
    
    <p>make install</p>
    
    <p>If libpuzzle is installed in a non-standard location, use: ./configure
    --with-libpuzzle=/base/directory/for/libpuzzle</p>
    
    <p>Then edit your php.ini file and add:</p>
    
    <p>extension=libpuzzle.so</p>
  </blockquote>
  
  <p>However when I try to run "./configure --with-libpuzzle" I get the following error:
  configure: error: Please reinstall the libpuzzle distribution</p>
  
  <p>Could someone point me in the right direction please.</p>