2019-04-08 18:53:34 +02:00

100 lines
3.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2012 (1.2)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Using .bashrc file</TITLE>
<META NAME="description" CONTENT="Using .bashrc file">
<META NAME="keywords" CONTENT="slsDetectorInstall">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="LaTeX2HTML v2012">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="slsDetectorInstall.css">
<LINK REL="next" HREF="Without_bashrc_file.html">
<LINK REL="previous" HREF="Setting_environment_variabl.html">
<LINK REL="up" HREF="Setting_environment_variabl.html">
<LINK REL="next" HREF="Without_bashrc_file.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html245"
HREF="Without_bashrc_file.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
<A NAME="tex2html241"
HREF="Setting_environment_variabl.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
<A NAME="tex2html235"
HREF="Setting_environment_variabl.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<A NAME="tex2html243"
HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html246"
HREF="Without_bashrc_file.html">Without .bashrc file</A>
<B> Up:</B> <A NAME="tex2html242"
HREF="Setting_environment_variabl.html">Setting environment variables</A>
<B> Previous:</B> <A NAME="tex2html236"
HREF="Setting_environment_variabl.html">Setting environment variables</A>
&nbsp; <B> <A NAME="tex2html244"
HREF="Contents.html">Contents</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H3><A NAME="SECTION00044100000000000000">
Using .bashrc file</A>
</H3>
<OL>
<LI><code>emacs ~/.bashrc</code>
</LI>
<LI>Add the following function <code>setup_slsdet</code> and replace <code>path</code>
with absolute path of installed directory
<PRE>
function setup_slsdet
{
export PKGPATH=[path]
export LD_LIBRARY_PATH=$PKGPATH/slsDetectorPackage/build/bin:$LD_LIBRARY_PATH
export PATH=$PKGPATH/slsDetectorPackage/build/bin:$PATH
cd $PKGPATH/slsDetectorPackage/build/bin
}
</PRE>
</LI>
<LI><code>source ~/.bashrc</code>
</LI>
<LI>Next time, just run <code>setup_slsdet</code> to load the environment
variables.
</LI>
</OL>
<P>
One can also add the GUI environment variables if installed locally by adding
the following in the function <code>setup_sldet</code>
<BR><PRE>
export QTDIR=/path-where-it-is/Qt-4.8.2
export QWTDIR=/path-where-it-is/qwt-6.0.1
export QWT3D=/path-where-it-is/qwtplot3d
export QMAKESPEC=$QTDIR/mkspecs/linux-g++
export LD_LIBRARY_PATH=$QTDIR/lib:$QWTDIR/lib:$QWT3D/lib:$LD_LIBRARY _PATH
export PATH=$QTDIR/bin:$PATH
</PRE>
<P>
<BR><HR>
<ADDRESS>
Thattil Dhanya
2019-04-08
</ADDRESS>
</BODY>
</HTML>