title: Installing the library "IGRAPH" for C/C++ in application folder
body: <p>Problem installing the library "IGRAPH" for C/C++ in application folder</p>
  
  <p>I'm using Ubuntu 13.04</p>
  
  <p>Download link: <a href="http://sourceforge.net/projects/igraph/?source=dlp" rel="nofollow">http://sourceforge.net/projects/igraph/?source=dlp</a></p>
  
  <p>I'm trying to install the library "IGRAPH" for C / C + + based on this link:</p>
  
  <p><a href="http://igraph.sourceforge.net/doc/html/igraph-installation.html" rel="nofollow">http://igraph.sourceforge.net/doc/html/igraph-installation.html</a></p>
  
  <p><a href="http://igraph.sourceforge.net/doc/html/ch03s01.html" rel="nofollow">http://igraph.sourceforge.net/doc/html/ch03s01.html</a></p>
  
  <p><a href="http://www.linphone.org/docs/mediastreamer2/mediastreamer2_install.html" rel="nofollow">http://www.linphone.org/docs/mediastreamer2/mediastreamer2_install.html</a> see section "Installation Names"</p>
  
  <p>Basic, To install the complete C library typing</p>
  
  <pre><code>$ ./configure
  $ make
  $ make install
  </code></pre>
  
  <p>By default, <code>'make install'</code> installs the package's commands under <code>/usr/local/bin</code>, include files under <code>/usr/local/include</code>, etc. I want install the package's in my application directory</p>
  
  <p>I modified the default installation so:</p>
  
  <pre><code>$ ./configure
  $ make
  $ make install DESTDIR=~/Desktop/Graph/igraph/
  </code></pre>
  
  <p>I'm trying compile the following short example program: </p>
  
  <pre><code>#include "../usr/local/include/igraph/igraph.h"
  
  int main(void) {
      igraph_integer_t diameter;
      igraph_t graph;
      igraph_erdos_renyi_game(&amp;graph, IGRAPH_ERDOS_RENYI_GNP, 1000, 5.0/1000, IGRAPH_UNDIRECTED, IGRAPH_NO_LOOPS);
      igraph_diameter(&amp;graph, &amp;diameter, 0, 0, 0, IGRAPH_UNDIRECTED, 1);
      printf("Diameter of a random graph with average degree 5: %d\n", (int) diameter);
      igraph_destroy(&amp;graph);
      return 0;
  }
  </code></pre>
  
  <p>I'm compiling the program using the command:</p>
  
  <pre><code>gcc igraph_test.c -I~/Desktop/Graph/igraph/usr/local/include/igraph -L~/Desktop/Graph/igraph/usr/local/lib -ligraph -o igraph_test
  </code></pre>
  
  <p>But, this error occurs:</p>
  
  <pre><code>/usr/bin/ld: cannot find -ligraph
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>Can anyone help me?</p>