<p>If you specify a different prefix, you need to set the <code>LD_LIBRARY_PATH</code> environment variable. This is a colon-separated list (like <code>PATH</code>) which is typically not set. You’ll want something like this in your shell config:</p>
<pre class="lang-bash prettyprint-override"><code>export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:~/local/lib"
<p>This tip was originally posted on <a href="http://stackoverflow.com/questions/30228493/Is%20it%20possible%20to%20install%20Rust%20on%20Linux%20without%20admin%20privileges?/30228598">Stack Overflow</a>.</p>