title: How to install oracle instantclient and pdo_oci on ubuntu machine?
body: <p>I need to install PDO_OCI in ubuntu machine, there is no default package that I could install with apt-get.</p>
  
  <p>There are a lot of tutorials showing how to do it, but when I follow them, I have problems related to compilation (configure, make,...)</p>
  
  <p>Here what I did:</p>
  
  <ol>
  <li><p>I followed <a href="https://help.ubuntu.com/community/Oracle%20Instant%20Client" rel="noreferrer">this Tutorial</a> to install instant client</p></li>
  <li><p>Install oci8</p>
  
  <pre><code>pecl install oci8
  </code></pre>
  
  <p>I get error:</p>
  
  <blockquote>
    <p>error: oci.h not found</p>
  </blockquote></li>
  <li><p>Install PDO_OCI</p>
  
  <pre><code>mkdir -p /tmp/pear/download/
  cd /tmp/pear/download/
  pecl download pdo_oci
  phpize
  ./configure –with-pdo-oci=instantclient,/usr,11.2
  </code></pre>
  
  <p>error:</p>
  
  <blockquote>
    <p>pdo_driver.h not found ...</p>
  </blockquote></li>
  </ol>
  
  <p>Please do you have any serious tutorial that works perfectly on UBUNTU 12.04?</p>