title: How to run OCI in linux
body: <p>Need to communicate my C code to Oracle 11g. I figure out oci is appropriate. and I don't know how to install it. </p>
  
  <p>on
  <strong><code>Linux kernel-2.6.32-279.el6.i686</code></strong></p>
  
  <p>I used this code in hello.c</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;oci.h&gt; 
  int main(void) 
  {
        int x;  
        printf("Please Enter Number: ");  
        scanf("%d",&amp;x);  
  
  
  return 0; 
  }
  </code></pre>
  
  <p>and command </p>
  
  <pre><code>gcc hello.c -o hello.o
  </code></pre>
  
  <p>Error message displayed:</p>
  
  <pre><code>error: oci.h: No such file or directory
  </code></pre>
  
  <p>and Instant client is installed in location</p>
  
  <pre><code>/u01/app/oracle/product/11.2.0/client_1/instantclient/
  </code></pre>
  
  <p>I know it's basic but me newbie too.</p>