<p>Pardon me if this seems trivial as I am new to mlpack,<br>
I faced the following issues and found some solutions to them (for Ubuntu 14.04) :<br>
Can these be updated in the wiki ? Or using a makefile for compilation solves all three issues ? </p>

<ol class="task-list">
<li>While compiling, need to use -I /usr/local/libxml2/ (<a href="http://www.mlpack.org/trac/ticket/357">http://www.mlpack.org/trac/ticket/357</a>)</li>
</ol>

<p>Solution :<br>
    Open terminal :<br>
    export CPATH=/usr/local/include/libxml2/</p>

<ol class="task-list">
<li>Need to add path to libmlpack.so.1 while running ./a.out (<a href="http://www.mlpack.org/trac/ticket/348">http://www.mlpack.org/trac/ticket/348</a>)</li>
</ol>

<p>Solution :<br>
    1. Create a new file in /etc/ld.so.conf.d/ called .conf<br>
    (use sudo)<br>
    Edit the file and add a line per directory of shared libraries (*.so files), it will look something like:<br>
    /usr/local/lib/<br>
    Reload the list of system-wide library paths:<br>
    Run : <br>
    $sudo ldconfig</p>

<pre><code>Alternate : You can temporarily add path as LD_LIBRARY_PATH=/usr/local/lib/ 
</code></pre>

<ol class="task-list">
<li>Linking required while compiling as g++ file.cpp -lmlpack (<a href="http://www.mlpack.org/trac/ticket/268">http://www.mlpack.org/trac/ticket/268</a>)
This can be done by creating a makefile </li>
</ol>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/402">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKQa9QuZSKymsv-XsCHG3P9EFvqWks5nq4KcgaJpZM4DfCJ_.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/402"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>