<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Samat Jain's personal home page</title>
  <link rel="alternate" type="text/html" href="http://samat.org/weblog/20060628-a-quick-shell-include-for-setting-paths-for-programs-installed-in-non-traditional-locations.html"/>
  <link rel="self" type="application/atom+xml" href="http://samat.org/node/115/atom/feed"/>
  <id>http://samat.org/node/115/atom/feed</id>
  <updated>2006-10-26T13:42:16-06:00</updated>
  <entry>
    <title>A quick shell include for setting paths for programs installed in non-traditional locations</title>
    <link rel="alternate" type="text/html" href="http://samat.org/weblog/20060628-a-quick-shell-include-for-setting-paths-for-programs-installed-in-non-traditional-locations.html" />
    <id>http://samat.org/weblog/20060628-a-quick-shell-include-for-setting-paths-for-programs-installed-in-non-traditional-locations.html</id>
    <published>2006-06-28T09:34:05-06:00</published>
    <updated>2006-10-26T13:42:16-06:00</updated>
    <author>
      <name>Samat Jain</name>
    </author>
    <category term="Article" />
    <category term="Bash Shell" />
    <category term="Linux" />
    <category term="Python" />
    <summary type="html"><![CDATA[<p>A <a href="http://www.linuxfromscratch.org/blfs/view/stable/introduction/beyond.html">page in the Beyond Linux from Scratch manual</a> describes environment variables that should be set when installing software in a non-traditional location (e.g. your home directory).</p>
<p>I've written a sh/bash include that can be included from .bashrc to set these variables, as well as PYTHON_PATH for separately installed Python libraries:</p>
<p>
<div class="codeblock"><code>#!/bin/bash&lt;br /&gt;&lt;br /&gt;PREFIX=$HOME/usr&lt;br /&gt;&lt;br /&gt;export PATH=&amp;quot;$PREFIX/bin:$PATH&amp;quot;&lt;br /&gt;export PYTHONPATH=&amp;quot;$PREFIX/lib/python2.4/site-packages:$PYTHON_PATH&amp;quot;&lt;br /&gt;export MANPATH=&amp;quot;$PREFIX/man:$MANPATH&amp;quot;&lt;br /&gt;export INFOPATH=&amp;quot;$PREFIX/info:$INFOPATH&amp;quot;&lt;br /&gt;export LD_LIBRARY_PATH=&amp;quot;$PREFIX/lib:$LD_LIBRARY_PATH&amp;quot;&lt;br /&gt;export PKG_CONFIG_PATH=&amp;quot;$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH&amp;quot;&lt;br /&gt;export CPPFLAGS=&amp;quot;-I$PREFIX/includes $CPPFLAGS&amp;quot;&lt;br /&gt;export LDFLAGS=&amp;quot;-L$PREFIX/lib $LDFLAGS&amp;quot;</code></div>
</p>
    ]]></summary>
  </entry>
</feed>
