1 |
sashby |
1.1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
2 |
|
|
|
3 |
|
|
<!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4
|
4 |
|
|
patched version by: Kenshi Muto, Debian Project.
|
5 |
|
|
LaTeX2HTML 2002 (1.62),
|
6 |
|
|
original version by: Nikos Drakos, CBLU, University of Leeds
|
7 |
|
|
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
|
8 |
|
|
* with significant contributions from:
|
9 |
|
|
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
|
10 |
|
|
<HTML>
|
11 |
|
|
<HEAD>
|
12 |
|
|
<TITLE>5.3 The SCRAM Runtime Environment</TITLE>
|
13 |
|
|
<META NAME="description" CONTENT="5.3 The SCRAM Runtime Environment">
|
14 |
|
|
<META NAME="keywords" CONTENT="SCRAM">
|
15 |
|
|
<META NAME="resource-type" CONTENT="document">
|
16 |
|
|
<META NAME="distribution" CONTENT="global">
|
17 |
|
|
|
18 |
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
|
19 |
|
|
<META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4">
|
20 |
|
|
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
|
21 |
|
|
|
22 |
|
|
<LINK REL="STYLESHEET" HREF="SCRAM.css">
|
23 |
|
|
|
24 |
|
|
<LINK REL="next" HREF="node58.html">
|
25 |
|
|
<LINK REL="previous" HREF="node53.html">
|
26 |
|
|
<LINK REL="up" HREF="node51.html">
|
27 |
|
|
<LINK REL="next" HREF="node57.html">
|
28 |
|
|
</HEAD>
|
29 |
|
|
|
30 |
|
|
<BODY bgcolor="beige" >
|
31 |
|
|
<!--Navigation Panel-->
|
32 |
|
|
<A NAME="tex2html1135"
|
33 |
|
|
HREF="node57.html">
|
34 |
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
35 |
|
|
SRC="file:/usr/share/latex2html/icons/next.png"></A>
|
36 |
|
|
<A NAME="tex2html1129"
|
37 |
|
|
HREF="node51.html">
|
38 |
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
39 |
|
|
SRC="file:/usr/share/latex2html/icons/up.png"></A>
|
40 |
|
|
<A NAME="tex2html1123"
|
41 |
|
|
HREF="node55.html">
|
42 |
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
43 |
|
|
SRC="file:/usr/share/latex2html/icons/prev.png"></A>
|
44 |
|
|
<A NAME="tex2html1131"
|
45 |
|
|
HREF="node2.html">
|
46 |
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
47 |
|
|
SRC="file:/usr/share/latex2html/icons/contents.png"></A>
|
48 |
|
|
<A NAME="tex2html1133"
|
49 |
|
|
HREF="node85.html">
|
50 |
|
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
51 |
|
|
SRC="file:/usr/share/latex2html/icons/index.png"></A>
|
52 |
|
|
<BR>
|
53 |
|
|
<B> Next:</B> <A NAME="tex2html1136"
|
54 |
|
|
HREF="node57.html">5.3.1 Constructing Runtime Environment</A>
|
55 |
|
|
<B> Up:</B> <A NAME="tex2html1130"
|
56 |
|
|
HREF="node51.html">5. Using SCRAM as</A>
|
57 |
|
|
<B> Previous:</B> <A NAME="tex2html1124"
|
58 |
|
|
HREF="node55.html">5.2.2 Using the Developer</A>
|
59 |
|
|
  <B> <A NAME="tex2html1132"
|
60 |
|
|
HREF="node2.html">Contents</A></B>
|
61 |
|
|
  <B> <A NAME="tex2html1134"
|
62 |
|
|
HREF="node85.html">Index</A></B>
|
63 |
|
|
<BR>
|
64 |
|
|
<BR>
|
65 |
|
|
<!--End of Navigation Panel-->
|
66 |
|
|
|
67 |
|
|
<H1><A NAME="SECTION00630000000000000000"></A><A NAME="sec:scramruntimeenv"></A><A NAME="1251"></A>
|
68 |
|
|
<A NAME="1252"></A>
|
69 |
|
|
<BR>
|
70 |
|
|
5.3 The SCRAM Runtime Environment
|
71 |
|
|
</H1>
|
72 |
|
|
Each development area has an environment associated with it which is
|
73 |
|
|
related to the tools used at build-time (the <I>configuration
|
74 |
|
|
environment</I>) or project-wide defaults used at runtime (the
|
75 |
|
|
<I>application environment</I>). <SMALL>SCRAM</SMALL> establishes the build-time
|
76 |
|
|
environment through the parsing of the <TT>ToolDocs</TT> of the tools
|
77 |
|
|
in the configuration environment. The values of any variables that
|
78 |
|
|
describe paths to header files or required libraries are passed
|
79 |
|
|
automatically to the build system at build-time. Project-wide defaults
|
80 |
|
|
can be specified using a document called <TT>Runtime</TT>, which is
|
81 |
|
|
located in project configuration directory and contains default
|
82 |
|
|
settings for variables that should be available globally in the
|
83 |
|
|
project area.
|
84 |
|
|
<A NAME="1257"></A>
|
85 |
|
|
The current environment can be viewed using the command
|
86 |
|
|
|
87 |
|
|
<P>
|
88 |
|
|
<TT>scram runtime</TT>
|
89 |
|
|
|
90 |
|
|
<TT>-sh</TT> (<I>or</I> <TT>-csh</TT> for <TT>tcsh</TT> users)
|
91 |
|
|
|
92 |
|
|
<P>
|
93 |
|
|
choosing the appropriate shell type flag according to the type of
|
94 |
|
|
shell in use. The runtime environment is not set automatically. To set
|
95 |
|
|
it, evaluate the command above using the shell <TT>eval</TT> function:
|
96 |
|
|
|
97 |
|
|
<P>
|
98 |
|
|
|
99 |
|
|
<UL>
|
100 |
|
|
<TT>eval</TT> `<TT>scram runtime</TT> <TT>-sh</TT>` (<I>or</I> <TT>-csh</TT>)
|
101 |
|
|
</LI>
|
102 |
|
|
</UL>
|
103 |
|
|
<P>
|
104 |
|
|
This must be set manually when running an executable since it
|
105 |
|
|
sets the <TT>LD_LIBRARY_PATH</TT> and other environment
|
106 |
|
|
variables, as defined in the configuration documents of the
|
107 |
|
|
project. All variables that are set also have an associated
|
108 |
|
|
<TT>SCRAMRT_xxxx</TT> variable. This allows <SMALL>SCRAM</SMALL> to undo any
|
109 |
|
|
changes to the environment and facilitates the switching between
|
110 |
|
|
project areas without interference. The consistency checking is done
|
111 |
|
|
automatically.
|
112 |
|
|
|
113 |
|
|
<P>
|
114 |
|
|
<BR><HR>
|
115 |
|
|
<!--Table of Child-Links-->
|
116 |
|
|
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
|
117 |
|
|
|
118 |
|
|
<UL>
|
119 |
|
|
<LI><A NAME="tex2html1137"
|
120 |
|
|
HREF="node57.html">5.3.1 Constructing Runtime Environment Documents</A>
|
121 |
|
|
</UL>
|
122 |
|
|
<!--End of Table of Child-Links-->
|
123 |
|
|
<HR>
|
124 |
|
|
<!--Navigation Panel-->
|
125 |
|
|
<A NAME="tex2html1135"
|
126 |
|
|
HREF="node57.html">
|
127 |
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
128 |
|
|
SRC="file:/usr/share/latex2html/icons/next.png"></A>
|
129 |
|
|
<A NAME="tex2html1129"
|
130 |
|
|
HREF="node51.html">
|
131 |
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
132 |
|
|
SRC="file:/usr/share/latex2html/icons/up.png"></A>
|
133 |
|
|
<A NAME="tex2html1123"
|
134 |
|
|
HREF="node55.html">
|
135 |
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
136 |
|
|
SRC="file:/usr/share/latex2html/icons/prev.png"></A>
|
137 |
|
|
<A NAME="tex2html1131"
|
138 |
|
|
HREF="node2.html">
|
139 |
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
140 |
|
|
SRC="file:/usr/share/latex2html/icons/contents.png"></A>
|
141 |
|
|
<A NAME="tex2html1133"
|
142 |
|
|
HREF="node85.html">
|
143 |
|
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
144 |
|
|
SRC="file:/usr/share/latex2html/icons/index.png"></A>
|
145 |
|
|
<BR>
|
146 |
|
|
<B> Next:</B> <A NAME="tex2html1136"
|
147 |
|
|
HREF="node57.html">5.3.1 Constructing Runtime Environment</A>
|
148 |
|
|
<B> Up:</B> <A NAME="tex2html1130"
|
149 |
|
|
HREF="node51.html">5. Using SCRAM as</A>
|
150 |
|
|
<B> Previous:</B> <A NAME="tex2html1124"
|
151 |
|
|
HREF="node55.html">5.2.2 Using the Developer</A>
|
152 |
|
|
  <B> <A NAME="tex2html1132"
|
153 |
|
|
HREF="node2.html">Contents</A></B>
|
154 |
|
|
  <B> <A NAME="tex2html1134"
|
155 |
|
|
HREF="node85.html">Index</A></B>
|
156 |
|
|
<!--End of Navigation Panel-->
|
157 |
|
|
<ADDRESS>
|
158 |
|
|
scram-developers@cern.ch
|
159 |
|
|
</ADDRESS>
|
160 |
|
|
</BODY>
|
161 |
|
|
</HTML>
|