Salome HOME
Provide binaries compilation mode for BOOST 1.31.0
[tools/install.git] / doc / readme.html
1 <!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
2 <html>
3 <head>
4   <meta http-equiv="Content-Type"
5  content="text/html; charset=iso-8859-1">
6   <meta name="GENERATOR"
7  content="Mozilla/4.8 [en] (X11; U; Linux 2.4.18-14 i686) [Netscape]">
8   <meta name="Author"
9  content="Vadim SANDLER (v-sandler@opencascade.com)">
10   <title>SALOME 3 Installation Wizard Help</title>
11   <meta content="Vadim SANDLER" name="author">
12 </head>
13 <body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 229);"
14  alink="#ff0000" link="#0000ee" vlink="#551a8b">
15 &nbsp;
16 <center>
17 <table nosave="" width="100%">
18   <tbody>
19     <tr nosave="">
20       <td nosave="">
21       <h1><a href="http://www.opencascade.com"><img src="logocorp.png"
22  border="0" height="47" width="139"> </a></h1>
23       </td>
24       <td>
25       <center>
26       <h1><font size="+4"><font color="#000099">SALOME Installation
27 Wizard Help</font>&nbsp;</font></h1>
28       </center>
29       </td>
30       <td>
31       <div align="right"><a href="http://www.opencascade.org/SALOME/"><img
32  src="application.png" border="0" height="47" width="109"> </a></div>
33       </td>
34     </tr>
35   </tbody>
36 </table>
37 </center>
38 <div align="right"><b><font color="#000099">updated for the version </font><font
39  color="#ff0000">3.1.0a2</font></b></div>
40 <hr>
41 <ul>
42   <li> <a href="#install_from_wizard">Installing products with the
43 Installation Wizard</a></li>
44   <li> <a href="#check_version_proc">Notes on check products version
45 procedure</a></li>
46   <li> <a href="#pick_up_env">Pick up the environment</a></li>
47   <li> <a href="#xml_files">Modifying XML configuration file</a></li>
48   <li> <a href="#new_products">Implementing installation scripts for
49 the new products</a></li>
50 </ul>
51 <h3>
52 <hr></h3>
53 <h3> <a name="install_from_wizard"></a>Installing products with the <font
54  color="#ff0000">Installation Wizard</font></h3>
55 The Installation Wizard can be launched in two modes: gui and batch. <br>
56 The root directory of the Installation Wizard
57 contains python script <span style="font-weight: bold;">runInstall</span>.
58 To run the Installation Wizard just type <b>runInstall</b> in terminal
59 window:<br>
60 <p><b>[ python ] runInstall [ -g | -b ] [ -f &lt;xml-file&gt; ] [ -t
61 &lt;target-dir&gt; ] [ -tmp &lt;tmp-dir&gt; ]</b> </p>
62 <p><b>-g</b><br>
63 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Runs the Installation Wizard in the
64 GUI
65 mode (default option). In this case only<span style="font-weight: bold;">
66 &lt;xml-file&gt;</span> key is taken into account.
67 Other parameters are ignored. <br>
68 <b>-b</b><br>
69 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Runs the Installation Wizard in
70 command-line mode. <br>
71 <b>-f &lt;xml-file&gt;</b><br>
72 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;The configuration file to be used by
73 the
74 Installation Wizard.&nbsp; If this parameter is missed then the script
75 tries
76 to define the <i>Linux </i>version and uses corresponding xml file.
77 For
78 examle, for the <i>Linux Mandrake 10.1</i> <b>config_Mandrake_10.1.xml</b>&nbsp;
79 file
80 is supposed to be used by default. If the appropriate file is not
81 found, <b>config.xml</b>
82 is used by default.&nbsp; This file refers to the basic target platform
83 which is Mandrake 10.1 for SALOME 3.0 and higher. If config.xml file is
84 also not found the warning message box is shown and Installation Wizard
85 quits.<br>
86 <b>-t &lt;target-dir&gt;</b><br>
87 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;The target directory, SALOME platform
88 to
89 be installed to. If used, overloads default target directory, given in
90 the
91 configuration
92 xml file (usually <span style="font-weight: bold;">/salome</span>, see
93 <a href="#xml_files">here</a>). <br>
94 <b>-tmp &lt;tmp-dir&gt;</b><br>
95 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;The directory, which is used to
96 contain temporary files.&nbsp; If used, overloads default temporary
97 directory,
98 given in the
99 configuration xml file (usually <span style="font-weight: bold;">/tmp</span><span
100  style="font-weight: bold;"></span>, see <a
101  href="readme.html#xml_files">here</a>).<br>
102 <b>-h</b><br>
103 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Prints help information. <br>
104 </p>
105 <p>The installation procedure can support some different Linux
106 platforms
107 and various number of products. As it was mentioned above the basic
108 target platform for SALOME 3.0 and higher is <i>Linux Mandrake 10.1</i>.<br>
109 The using of configuration xml files gives flexible way to modify the
110 list of products to be installed by the Installation Wizard without
111 changing program's source code. Just create your own configuration file
112 and implement installation scripts for products you want to be provided
113 by Wizard. See <a href="#xml_files">modifying XML configuration file</a>
114 and <a href="#new_products">implementing installation scripts for the
115 new products</a> for more information. </p>
116 <p>The <font color="#ff0000">Installation Wizard</font> was built with
117 using of the <span style="font-style: italic;">Trolltech's</span> <b><i>Qt&nbsp;
118 3.3.3 </i></b>library. The program contains
119 several pages. To navigate between pages use <i>"Next"</i> and <i>"Back"</i>
120 buttons in the
121 lower part of the wizard window. <i>"Cancel"</i> button closes dialog
122 window
123 and quits the installation procedure. To invoke this help information
124 click
125 <i>"Help"</i> button. </p>
126 <p>Skip the first <i>"Introduction"</i> page by pressing <i>"Next"</i>
127 button:
128 </p>
129 <center><a name="IntroPage"></a><br>
130 <img alt="Intro page" src="intropage.png"
131  style="width: 586px; height: 347px;">
132 <p><b>Figure 1:</b> "Introduction" page</p>
133 </center>
134 <p>In the second page you are proposed to enter the target directory
135 where all selected products should be installed to. You can also press <i>"Browse..."</i>
136 button and choose the folder for installation using standard <b><i>Qt</i></b>'s
137 browse directory dialog box. <br>
138 If the directory you want to install products does not exist you will
139 be prompted to confirm directory creation. If you type wrong directory
140 path, or if you have no permission for the directory you use, the
141 corresponding message box will raise. </p>
142 <p>The Installation Wizard has two modes of the installation: basic
143 (default) and
144 advanced. In the basic mode it is necessary just to enter target
145 directory. If you want
146 to use advanced mode, click <i>"More..."</i> button. </p>
147 <p>In the advanced mode you have the possibility to select products to
148 be installed (see <a href="#ProductPage">Fig.2</a> ). Each product can
149 have several options of installation: you have a possibility to use
150 native products, install already precompiled binaries, build product
151 from the sources or not install it at all. Possible options and default
152 choice are provided by the configuration file. You can mark the
153 products you want to install by clicking the corresponding
154 radiobuttons in the list view in the left part of the page. Note that
155 some products can be installed only together with other products (or
156 these prerequisite products should be already installed on your
157 computer). The installation procedure
158 has a special feature to automatically mark these products in the list
159 view.
160 For example, in order to install <b><i>PyQt</i></b> it's necessary to
161 have
162 <b><i>gcc, Python</i></b>,<b><i> Qt</i></b> and <b><i>Sip</i></b>
163 installed.
164 Therefore all these products will be marked when you check on <b><i>PyQt</i></b>.
165 This feature can be switched off by clicking <i>"Auto set
166 prerequisites products"</i> checkbox. Turn on this checkbox if you
167 want all pre-requisite products to be automatically checked when you
168 select some product to be installed. Turn off this checkbox if you
169 want to disable this feature.<br><br>
170 Special button in the right part of the page - <i>"Unselect All" </i>-
171 allows to reset quickly all products to the <i>"not install"</i>
172 state. <br><br>
173 If you want to use native products (like <span
174  style="font-weight: bold;">gcc</span>, <span
175  style="font-weight: bold;">tcl</span>, etc.), select <i>"use native" </i>option.
176 </p>
177 <p>There are also two checkboxes on this page: <i>"SALOME sources"</i>
178 and <i>"SALOME binaries"</i>.
179 These three-state checkboxes allow quick selecting/unselecting SALOME
180 itself packages
181 for the installation.</p>
182 <p>The box at the right side of the page displays the information about
183 currently highlighted product: name, version, short description (if
184 provided in XML file), required
185 disk space, disk space required for temporary files, list of
186 prerequisites and current user
187 choice.
188 </p>
189 <center><a name="ProductPage"></a><br>
190 <img src="productpage.png" alt="Products page"
191  style="width: 586px; height: 544px;">
192 <p><b>Figure 2:</b> "Installation settings" page in the advanced mode</p>
193 </center>
194 <p>The <i>"Total disk space required:"</i> field displays how much
195 disk space on the hard drive is required for installation of selected
196 products. <br>
197 <b>Note: </b>Please, take into account that displayed amount of
198 required disk space is approximate and may differ when you install
199 products on your hard drive. </p>
200 <p>The installation procedure uses a special directory to store
201 temporary files. The <i>"Space for temporary files:"</i> field shows
202 the information about required disk space on the hard drive for
203 extracting and compiling of the selected products. You can change the
204 default directory - just type path
205 to the folder you want to use or click on the corresponding <i>"Browse..."</i>
206 button. <br>
207 <span style="font-weight: bold;">Note:</span> actually temporary files
208 are stored not in the directory entered by user. The Installation
209 Wizard creates in this directory an additional one folder named
210 something like INSTALLWORK<span style="font-weight: bold;">XXXXX</span>
211 where XXXXX is unique number. This allows to launch several
212 Installation Wizards simultaneously. This temporary directory is
213 removed automaticaly when the installation finishes.<br>
214 </p>
215 <p>The installation procedure also checks available disk space on the
216 selected directories according to the products selected. If there is no
217 enough disk space on your hard drive you will see the corresponding
218 error message box. </p>
219 <p><b>Note: </b>Unfortunately, the configure procedure has a very
220 annoying bug under Linux platform. The directory should be obligatory
221 entered without spaces. For example, the configure procedure for <b><i>gcc</i></b>
222 won't
223 work if you pass the following parameter: <i>--prefix="/New Folder 1"</i>.
224 <b>Therefore you are strongly recommended not to use directory names
225 containing
226 spaces.</b> </p>
227 <p>To proceed further click <i>"Next"</i> button. At this moment
228 program
229 will make some tests to check installation settings: if there is enough
230 disk
231 space on the hard drive, if native products are preinstalled,
232 dependencies
233 (prerequisites) for each product you have selected to be
234 installed.
235 If any test fails you will see the corresponding warning message box.
236 Otherwise
237 wizard will follow to the next page: </p>
238 <center>
239 <p><a name="ChoicePage"></a><br>
240 <img src="choicepage.png" alt="Choice page"
241  style="width: 586px; height: 544px;"> </p>
242 <p><b>Figure 3:</b> "Check your choice" page</p>
243 </center>
244 <p>This page summarizes the installation settings you've made on the
245 previous pages. You can check again your choice to change it if
246 necessary. <br>
247 When you are sure that everything is OK, press <i>"Next"</i> button to
248 follow to the <a href="#ProgressPage">next page</a>. </p>
249 <center><a name="ProgressPage"></a><br>
250 <img src="progresspage.png" alt="Progress page"
251  style="width: 586px; height: 544px;">
252 <p><b>Figure 4:</b> "Installation progress" page</p>
253 </center>
254 <p>To start installation of the selected products click <i>"Start"</i>
255 button. It launches the shell installation script and you will be able
256 to see the output of the script in the topmost dialog's frame. If any errors
257 occur during the installation the progress the corresponding messages
258 will be printed to the log grame window in the bold red font.
259
260 <p>The <i>"Installation Status"</i> frame window shows you the
261 progress of installation. It contains a list of all selected products
262 with brief descriptions. "<font color="#ff0000">Waiting</font>"
263 description means that installation of this product have not started
264 yet. Currently installing product is marked as "<font color="#ff9900">Processing</font>".
265 All installed products have "<font color="#33ff33">Completed</font>"
266 description. </p>
267 <p>You can abort installation and close the installation procedure
268 using
269 <i>"Cancel"</i> button. It sends the signal "SIGTERM" to the shell
270 script.
271 The script has a signal handler and will try to clear all temporary
272 files.
273 The process of removing temporary files can take some time, so the
274 installation
275 wizard will wait 3 seconds before closing. </p>
276 <p>At the end of installation (all selected products have been
277 installed
278 successfully) you can go back to the previous pages to start a new
279 installation
280 or click <i>"Next"</i> button to go the Readme page: </p>
281 <center>
282 <p><a name="readmepage"></a><br>
283 <img src="readmepage.png" alt="Readme page"
284  style="width: 586px; height: 544px;"> </p>
285 <p><b>Figure 5:</b> "Finish installation" page</p>
286 </center>
287 <p>In this page you can read important information about the
288 Instalation
289 Wizard itself and some hints: how to run and test SALOME or how to
290 build
291 SALOME from the sources. This is the contents of the README file which
292 you
293 can find in the root directory of the Installation Wizard. <br>
294 You can also launch SALOME Desktop from this page by clicking <i>"Launch
295 SALOME" </i>button. </p>
296 <p><a name="env_files"></a>During the process of installation the
297 script creates some
298 environment files to simplify procedure of launching SALOME. These
299 shell scripts set
300 all necessary environment variables for all products you have
301 installed.
302 To learn how installation scripts collects the environment, see&nbsp;<a
303  href="#pick_up_env"> here</a>. These files are: <b>salome.csh</b> + <b>salome.sh</b>
304 in the <span style="font-style: italic;"><span
305  style="font-weight: bold;">KERNEL module</span></span><b><i> sources</i></b>
306 and <span style="font-style: italic;"><span style="font-weight: bold;">KERNEL
307 module</span></span><b><i> binaries</i></b> root directories and <b>env_products.csh</b>
308 + <b>env_products.sh </b>in the target directory.<br>
309 </p>
310 <span style="font-weight: bold;">Note:</span> <b>salome.(c)sh</b> and <b>env_products.(c)sh
311 files</b> are slightly different: env_products.* files are optimized to
312 be used for the building of SALOME modules from sources (see <span
313  style="font-weight: bold;">README </span>file provided with the
314 installation procedure on th CD). The salome.* files are optimized for
315 the SALOME launching. This difference is defined by the environment
316 variable<span style="font-weight: bold;"> </span><b>ENV_FOR_LAUNCH</b>
317 which is set to 0 in env_products.* files and to 1 in salome.* files.<br>
318 <b><br>
319 </b>
320 <hr>
321 <h3><a name="check_version_proc"></a>Notes on<font color="#ff0000">
322 check products version</font> procedure</h3>
323 Unfortunately under Linux platform there is no exact algorithm to
324 identify the product's version. The table below gives an idea how the
325 version is checked for the preinstalled products for the Linux Mandrake
326 10.1 platform. <br>
327 &nbsp;
328 <table nosave="" border="1" width="100%">
329   <tbody>
330     <tr nosave="">
331       <th nosave="">
332       <center><font size="+1">Product</font></center>
333       </th>
334       <th nosave="">
335       <center><font size="+1">Algorithm of checking</font></center>
336       </th>
337       <th nosave="">
338       <center><font size="+1">Preliminary steps before launching</font>
339       <br>
340       <font size="+1">of installation procedure</font></center>
341       </th>
342       <th nosave="">
343       <center><font size="+1">Notes</font></center>
344       </th>
345     </tr>
346     <tr>
347       <td>gcc 3.4.1</td>
348       <td><span style="font-weight: bold;">ver</span>=`gcc -dumpversion`</td>
349       <td>
350       <center>-</center>
351       </td>
352       <td><span style="font-weight: bold;">ver</span> should be 3.4.1.<br>
353 It is recommended to use native gcc on Mandrake 10.1.<br>
354       </td>
355     </tr>
356     <tr nosave="">
357       <td>tcl 8.4.5</td>
358       <td nosave=""><span style="font-weight: bold;">1)</span> check if
359       <span style="font-weight: bold;">TCLHOME</span> variable is set<br>
360       <span style="font-weight: bold;">2)</span> existence of tclsh8.4<br>
361       <span style="font-weight: bold;">3)</span> existence of wish8.4 <br>
362       <span style="font-weight: bold;">4)</span> existence of
363 libtcl8.4.so <br>
364       <span style="font-weight: bold;">5)</span> existence of
365 libtk8.4.so<br>
366       </td>
367       <td>set <span style="font-weight: bold;">TCLHOME</span> if you
368 have preinstalled version of tcl. <br>
369 add a directory where libraries can be found to the <span
370  style="font-weight: bold;">LD_LIBRARY_PATH</span><br>
371       </td>
372       <td>Unfortunately there is no more strict way to check the tcl
373 version number.<br>
374 It is recommended to use native tcl/tk on Mandrake 10.1.</td>
375     </tr>
376     <tr>
377       <td valign="top">boost 1.31.0<br>
378       </td>
379       <td valign="top"><span style="font-weight: bold;">1)</span> check
380 if <span style="font-weight: bold;">BOOSTDIR</span> variable is set.<br>
381       <span style="font-weight: bold;">2)</span> <span
382  style="font-weight: bold;">ver</span>=`egrep 'BOOST_VERSION [0-9]+'
383 ${BOOSTDIR}/boost/version.hpp | sed 's/.*BOOST_VERSION
384 \([0-9]\+\)/\1/g'`<br>
385       </td>
386       <td valign="top">set <span style="font-weight: bold;">BOOSTDIR</span>
387 if you have preinstalled version of
388 boost<br>
389       </td>
390       <td valign="top">we use version.hpp file in the boost
391 distribution to get the version information.<br>
392       <span style="font-weight: bold;">ver</span> should be equal to
393 103100.<br>
394       </td>
395     </tr>
396     <tr>
397       <td>Open CASCADE 6.0<br>
398       </td>
399       <td><span style="font-weight: bold;">1)</span> check if <span
400  style="font-weight: bold;">CASROOT</span> variable is set<br>
401       <span style="font-weight: bold;">2)</span> ver_major=`grep
402 "!define OCC_VERSION_MAJOR"
403 ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`<br>
404       <span style="font-weight: bold;">3)</span> ver_minor=`grep
405 "!define OCC_VERSION_MINOR"
406 ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`<br>
407       <span style="font-weight: bold;">4)</span> ver_maint=`grep
408 "!define OCC_VERSION_MAINTENANCE"
409 ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`<br>
410       <span style="font-weight: bold;">5)</span> <span
411  style="font-weight: bold;">ver</span>="$ver_major.$ver_minor.$ver_maint"<br>
412       </td>
413       <td>set <span style="font-weight: bold;">CASROOT</span> if you
414 have preinstalled version of Open CASCADE</td>
415       <td>CASCADE's Standard_Version.hxx file provides version
416 information.<br>
417       <span style="font-weight: bold;">ver</span> should be equal to
418 6.0.0.<br>
419       </td>
420     </tr>
421     <tr>
422       <td>Python 2.3.4</td>
423       <td><span style="font-weight: bold;">1)</span> <span
424  style="font-weight: bold;">PYTHONHOME</span> variable should be set<br>
425       <span style="font-weight: bold;">2)</span> isPython=`which
426 python` <br>
427       <span style="font-weight: bold;">3)</span> <span
428  style="font-weight: bold;">ver</span>=`python -V`</td>
429       <td>set <span style="font-weight: bold;">PYTHONHOME</span> to
430 root Python distribution folder;<br>
431 add the directory where python can be found to the <span
432  style="font-weight: bold;">PATH</span> variable<br>
433       </td>
434       <td>Python should exist and <span style="font-weight: bold;">ver</span>
435 should be equal to 2.3.4 <br>
436 It is recommended to use native Python on Mandrake 10.1.</td>
437     </tr>
438     <tr>
439       <td>Swig 1.3.24</td>
440       <td><span style="font-weight: bold;">ver</span>=`swig -version
441 2&gt;&amp;1 | grep -i version | awk '{ print $3 }' | sed -e
442 's/^\([0-9.]*\)\(.*\)/\1/'`</td>
443       <td>add the directory where swig binary can be found to the <span
444  style="font-weight: bold;">PATH</span> variable</td>
445       <td>Swig should exist and <span style="font-weight: bold;">ver</span>
446 should be equal to 1.3.24.</td>
447     </tr>
448     <tr>
449       <td>Qt 3.3.3</td>
450       <td><span style="font-weight: bold;">1) QTDIR</span> variable
451 should be set.<br>
452       <span style="font-weight: bold;">2) ver</span>=`grep
453 "QT_VERSION_STR" ${QTDIR}/include/qglobal.h | sed -e
454 's%^#define QT_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'`</td>
455       <td>set <span style="font-weight: bold;">QTDIR</span> if you
456 have preinstalled version of qt</td>
457       <td>Qt's qglobal.h file provides version information: <span
458  style="font-weight: bold;">ver</span> should
459 be equal to 3.0.5.<br>
460 It is recommended to use native Qt on Mandrake 10.1.</td>
461     </tr>
462     <tr>
463       <td style="vertical-align: top;">msg2qm (Qt 3.3.3 compatible)<br>
464       </td>
465       <td style="vertical-align: top;"><span style="font-weight: bold;">MSG2QM_ROOT</span>
466 variable should be set.<br>
467       </td>
468       <td style="vertical-align: top;">set&nbsp; <span
469  style="font-weight: bold;">MSG2QM_ROOT</span> if you have preinstalled
470 version of msg2qm tool<br>
471       </td>
472       <td style="vertical-align: top;">msg2qm is Qt tool used to
473 convert text *.po files to *.qm resource files. Unfortunately this tool
474 is not included to the Qt distribution and provided only in its sources
475 package. We distribute this tool with the Installation Wizard.<br>
476 In addition there is no way to check the version number of msg2qm tool.<br>
477       </td>
478     </tr>
479     <tr>
480       <td>Qwt 4.2.0/0.4.2</td>
481       <td><span style="font-weight: bold;">1)</span> <span
482  style="font-weight: bold;">QWTHOME</span> variable should be set.<br>
483       <span style="font-weight: bold;">2)</span> check if
484 libqwt.so.4.2.0 exists<br>
485       </td>
486       <td>set&nbsp; <span style="font-weight: bold;">QWTHOME</span> if
487 you have preinstalled version of qwt</td>
488       <td>Unfortunately there is no strict way to check qwt version
489 number.<br>
490 We try to find libqwt.so.4.2.0 in the ${<span style="font-weight: bold;">QWTHOME</span>}/lib
491 folder.&nbsp;</td>
492     </tr>
493     <tr>
494       <td>Hdf 5-1.6.3</td>
495       <td><span style="font-weight: bold;">1) HDF5HOME</span> variable
496 should be set.<br>
497       <span style="font-weight: bold;">2)</span> existence of
498 libhdf5.so.0.0.0 <br>
499       <span style="font-weight: bold;">3)</span> existence of
500 libhdf5.settings<br>
501       <span style="font-weight: bold;">4)</span> <span
502  style="font-weight: bold;">ver</span>=`grep "HDF5 Version:"
503 ${HDF5HOME}/lib/libhdf5.settings | awk
504 '{print $3}'`</td>
505       <td>set <span style="font-weight: bold;">HDF5HOME</span> if you
506 have preinstalled version of hdf</td>
507       <td>We try to find libhdf5.so.0.0.0 and libhdf5.settings in
508 ${<span style="font-weight: bold;">HDF5HOME</span>}/lib folder. <br>
509 File libhdf5.settings contains the following version information: <br>
510 HDF5 Version: 1.6.3</td>
511     </tr>
512     <tr>
513       <td>Med 2.2.2</td>
514       <td><span style="font-weight: bold;">1) MED2HOME</span> variable
515 should be set.<br>
516       <span style="font-weight: bold;">2)</span> existence of
517 libmed.so.1.0.1</td>
518       <td>set <span style="font-weight: bold;">MED2HOME</span> if you
519 have preinstalled version of med</td>
520       <td>Unfortunately there is no strict way to check med version
521 number.<br>
522 We try to find libmed.so.1.0.1 in ${<span style="font-weight: bold;">MED2HOME</span>}/lib
523 folder. <br>
524 If you have problem with preinstalled version of med reinstall it.</td>
525     </tr>
526     <tr>
527       <td>Vtk 4.2.6</td>
528       <td><span style="font-weight: bold;">1) VTKHOME</span> variable
529 should be set.<br>
530       <span style="font-weight: bold;">2)</span> existence of
531 libvtkCommon.so</td>
532       <td>set <span style="font-weight: bold;">VTKHOME</span> if you
533 have preinstalled version of vtk</td>
534       <td>Unfortunately there is no strict way to check VTK version
535 number.<br>
536 We try to find libvtkCommon.so in ${<span style="font-weight: bold;">VTKHOME</span>}/lib/vtk
537 folder. <br>
538 If you have problem with preinstalled version of vtk reinstall it.</td>
539     </tr>
540     <tr>
541       <td valign="top">Netgen 4.3<br>
542       </td>
543       <td valign="top"><span style="font-weight: bold;">NETGENROOT</span>
544 variable should be set. </td>
545       <td valign="top">set <span style="font-weight: bold;">NETGENROOT</span>
546 if you have preinstalled version
547 of Netgen.<br>
548       </td>
549       <td valign="top">Unfortunarely we can't find anything about
550 netgen version.<br>
551 We just check if <span style="font-weight: bold;">NETGENROOT</span>
552 environment varible is set.<br>
553       </td>
554     </tr>
555     <tr>
556       <td>OmniORB 4.0.5, <br>
557 OmniORBpy 2.5, <br>
558 OmniNotify 2.1</td>
559       <td><span style="font-weight: bold;">1) OMNIORBDIR</span>
560 variable should be set.<br>
561       <span style="font-weight: bold;">2)</span> existence of
562 libomniORB4.so.0.5 <br>
563       <span style="font-weight: bold;">3)</span> existence of
564 _omnipymodule.so.2.4 <br>
565       <span style="font-weight: bold;">4)</span> existence of
566 libCOSNotify4.so.0.1 <br>
567       <span style="font-weight: bold;">5)</span> existence of notifd<br>
568       </td>
569       <td>set <span style="font-weight: bold;">OMNIORBDIR</span> if
570 you have preinstalled version of omni</td>
571       <td>We try to find several omni libraries and binaries in the ${<span
572  style="font-weight: bold;">OMNIORBDIR</span>}/lib and ${<span
573  style="font-weight: bold;">OMNIORBDIR</span>}/bin directories.<br>
574       <br>
575       </td>
576     </tr>
577     <tr>
578       <td>Numeric 23.7</td>
579       <td><span style="font-weight: bold;">ver</span>=`python -c
580 'import Numeric; print Numeric.__version__'
581 2&gt;/dev/null`</td>
582       <td>add the directory where&nbsp;<span style="font-weight: bold;"></span>you
583 have preinstalled version of Numeric
584 package to your <span style="font-weight: bold;">PYTHONHOME </span>variable<span
585  style="font-weight: bold;"><br>
586       </span></td>
587       <td>If you have problem with preinstalled version of Numeric 23.7
588 reinstall it.</td>
589     </tr>
590     <tr>
591       <td>Sip 4.1<br>
592       </td>
593       <td><span style="font-weight: bold;">1) SIPDIR</span> variable
594 should be set.<br>
595       <span style="font-weight: bold;">2) ver</span>=`${SIPDIR}/sip -V
596 | awk '{print $1}'`</td>
597       <td>set <span style="font-weight: bold;">SIPDIR</span> to
598 directory where you have sip preinstalled</td>
599       <td><span style="font-weight: bold;">ver</span> should be equal
600 to 4.1. <br>
601       <br>
602       </td>
603     </tr>
604     <tr>
605       <td>PyQt 3.13</td>
606       <td><span style="font-weight: bold;">1) PYQTDIR</span> variable
607 should be set.<br>
608       <span style="font-weight: bold;">2)</span> existence of qt.so
609 library<br>
610       </td>
611       <td>set <span style="font-weight: bold;">PYQTDIR</span> to
612 directory where you have PyQt preinstalled</td>
613       <td>Unfortunately we can't check exact PyQt version number. <br>
614 We just try to find qt.so in ${<span style="font-weight: bold;">PYQTDIR</span>}.
615       <br>
616       </td>
617     </tr>
618     <tr>
619       <td>HappyDoc 2.1</td>
620       <td><span style="font-weight: bold;">1)</span> existence of
621 happydoc <br>
622       <span style="font-weight: bold;">2)</span> <span
623  style="font-weight: bold;">ver</span>=`happydoc | grep "HappyDoc
624 version 2.1"`</td>
625       <td>add the directory where you have HappyDoc
626 installed to your <span style="font-weight: bold;">PATH</span>
627 variable.<br>
628       </td>
629       <td>We try to find happydoc in ${<span style="font-weight: bold;">PATH</span>}.
630       <br>
631       <span style="font-weight: bold;">ver</span> should not be empty. <br>
632       <br>
633       <span style="font-weight: bold;">Note:</span> this product is not
634 obligatory for SALOME compilation.<br>
635       </td>
636     </tr>
637     <tr>
638       <td>Doxygen 1.3.7</td>
639       <td><span style="font-weight: bold;">1)</span> existence of
640 doxygen <br>
641       <span style="font-weight: bold;">2)</span> existence of doxytag <br>
642       <span style="font-weight: bold;">3)</span> existence of doxywizard<br>
643       <span style="font-weight: bold;">4)</span> <span
644  style="font-weight: bold;">ver</span>=`doxygen --version`</td>
645       <td>add the directory where you have doxygen binaries
646 preinstalled to the&nbsp; <span style="font-weight: bold;">PATH</span>
647 variable.</td>
648       <td>doxygen, doxytag, doxywizard binaries should
649 exist; <span style="font-weight: bold;">ver</span> should be equal to
650 1.3.7.<br>
651       <br>
652 If you have problem with preinstalled version of doxygen
653 reinstall it. <br>
654       <br>
655 It is recommended to use native doxygen on Mandrake 10.1.<br>
656       </td>
657     </tr>
658     <tr>
659       <td>Graphviz 2.2.1<br>
660       </td>
661       <td><span style="font-weight: bold;">1)</span> existence of dot
662 binary.<br>
663       <span style="font-weight: bold;">2)</span> <span
664  style="font-weight: bold;">ver</span>=`dot -V 2&gt;&amp;1 | awk
665 '{print $3}'`</td>
666       <td>add graphviz bin directory to the <span
667  style="font-weight: bold;">PATH</span> environment variable</td>
668       <td>We try to find dot program in the ${<span
669  style="font-weight: bold;">PATH</span>}.<br>
670       <span style="font-weight: bold;">ver</span> should be equal to
671 2.2.1.<br>
672       </td>
673     </tr>
674     <tr>
675       <td><span style="font-weight: bold;">MODULE</span> binaries<br>
676 (where <span style="font-weight: bold;">MODULE</span> = KERNEL, GUI,
677 GEOM, ...)<br>
678       </td>
679       <td><span style="font-weight: bold;">1) MODULE_ROOT_DIR</span>
680 variable should be set<br>
681       <span style="font-weight: bold;">2)</span> existence of VERSION
682 file <br>
683       <span style="font-weight: bold;">3) ver</span>=`cat ${<span
684  style="font-weight: bold;">MODULE_ROOT_DIR</span>}/bin/salome/VERSION
685 | awk -F: '{print $NF}' |
686 tr -d '[:space:]'`</td>
687       <td>set <span style="font-weight: bold;">MODULE_ROOT_DIR</span>
688 if you have preinstalled binaries of <span style="font-weight: bold;">MODULE</span>.</td>
689       <td><span style="font-weight: bold;">MODULE</span> binaries
690 should exist and <span style="font-weight: bold;">ver</span> should be
691 equal to &lt;version&gt;, where &lt;version&gt; is version number
692 being installed.<br>
693       </td>
694     </tr>
695     <tr>
696       <td><span style="font-weight: bold;">MODULE</span> sources<br>
697 (where <span style="font-weight: bold;">MODULE</span> = KERNEL, GUI,
698 GEOM, ...)<br>
699       </td>
700       <td><span style="font-weight: bold;">1)</span> existence of <span
701  style="font-weight: bold;">MODULE_SRC_DIR</span> <br>
702       <span style="font-weight: bold;">2)</span> existence of VERSION
703 file <br>
704       <span style="font-weight: bold;">3) ver</span>=`cat ${<span
705  style="font-weight: bold;">MODULE_SRC_DIR</span>}/bin/VERSION | awk
706 -F: '{print $NF}' | tr -d
707 '[:space:]'`</td>
708       <td>set <span style="font-weight: bold;">MODULE_SRC_DIR</span>
709 if you have preinstalled sources of <span style="font-weight: bold;">MODULE</span>.<br>
710       </td>
711       <td><span style="font-weight: bold;">MODULE</span> sources should
712 exist and ver should be equal to &lt;version&gt;, where &lt;version&gt; is version number
713 being installed.</td>
714     </tr>
715   </tbody>
716 </table>
717 <p><b>Note:</b> For native products installation procedure sets proper
718 environment variables itself, and you do not need to set such variables
719 like, e.g. <b>TCLHOME</b> or <b>PYTHONHOME</b>. <br>
720 If you have native products installed to different from default
721 directories (not <b>/usr/bin</b>, <b>/usr/lib</b>...), it is
722 recommended to follow above description. Or you should set properly <span
723  style="font-weight: bold;">PATH</span> and <span
724  style="font-weight: bold;">LD_LIBRARY_PATH</span> variables <b><font
725  color="#ff0000">before</font></b>
726 starting Installation Wizard. Otherwise
727 installation script will fail to find preinstalled products. </p>
728 <p><b>Note:</b> For some native products (e.g. gcc, Python) the rules
729 of version
730 checking are not so strict as described in the table. Only major and
731 minor numbers of version
732 should coincide with prerequisite. Release number can be larger. It is
733 done for making a possibility
734 to use native products for newer versions of Linux.
735 If some native product has version number larger than that required by
736 the
737 installation procedure, user will be prompted by the warning message
738 like this: <i>"You have
739 newer version of gcc installed
740 on your computer than that is required (3.4.1). Continue?"</i>. You can
741 press <i>"Yes"</i> button
742 to procede with the installation but in this case you should be aware
743 of what you are doing.
744 SALOME binaries (including other products) are compiled with the
745 predefined prerequisites
746 and most likely can not be run successfully if these products are not
747 found.
748 This can be only helpful if you intend to build all products from
749 sources.</p>
750 <h3>
751 <hr></h3>
752 <h3> <a name="pick_up_env"></a>Pick up the <font color="#ff0000">environment</font></h3>
753 Please, read carefully the following information. This section
754 describes how the installation procedure collects the environment.
755 <p>After installing each product shell script creates special
756 environment file for each product in its target folder . The name of
757 the file is generated
758 from
759 the name of product by the following scheme: <b>env_&lt;product_name&gt;.sh.</b>
760 This file includes all necessary product settings. For example for Vtk
761 the file is <b>env_Vtk.sh</b>. Environment files allows to pick up all
762 environment settings which are necessary to build and launch SALOME.
763 When installing SALOME
764 sources and/or binaries, installation procedure picks up all the
765 settings files and generate two scripts: <b>salome.sh</b> and <b>salome.csh
766 </b>for sh and csh correspondingly. Such approach helps to save time
767 when reinstalling products and you may not to care about setting all
768 environment variables
769 manually to build/launch SALOME. What you need is just to use one of
770 these
771 scripts. </p>
772 <p>This concerns also those products which are not currently installed.
773 For example, you install some SALOME binaries to the directory where
774 you have previously installed other products.&nbsp; Installation
775 procedure still tries to collect environment files from the target
776 directory if it finds necessary products there. If some product is not
777 found in the target directory the corresponding
778 section of <b>salome.sh/salome.csh</b> files will be skipped. <br>
779 For native products (like <i><b>gcc, tcl, etc...</b><b>)</b></i>
780 installation procedure tries to find them first using <b>PATH</b>
781 / <b>LD_LIBRARY_PATH</b> variables and then in the system default
782 directories (<b>/usr/bin, /usr/lib</b> etc., depending on the product).
783 </p>
784 <p>In any case you may edit <b>salome.*</b> files after installation
785 procedure finishes, as you want.<br>
786 <span style="font-weight: bold;">Note:</span> as it was mentioned <a
787  href="#env_files">above</a> there are two more environment files which
788 are generated by the installation procedure: <span
789  style="font-weight: bold;">env_products.csh</span> and <span
790  style="font-weight: bold;">env_products.sh</span>. These files can be
791 found in the target installation root directory.<br>
792 </p>
793 <hr>
794 <h3><a name="xml_files"></a>Modifying <font color="#ff0000">XML</font>
795 configuration <font color="#ff0000">file</font></h3>
796 <font color="#000000">You can create your own configuration file.
797 Installation Wizard then can take it as command line argument to
798 provide list of products you want to install with it. The list of
799 products and some another settings for the Installation Wizard are
800 provided in XML file. The default file which Installation Wizard looks
801 for if no command line arguments are given, is <b>config.xml</b>. This
802 section describes the structure of the configuration file.</font> <br>
803 <font color="#000000">XNL tags are in bold blue, optional sections/tags
804 are in brackets.</font>
805 <font face="Courier"><p><b><font color="#000099">&lt;document&gt;</font></b>
806 <br>
807 <font color="#000000"><b>&nbsp;&nbsp;&nbsp; </b>[</font><b><font
808  color="#000099"> &lt;config</font></b><font color="#000000">
809 [ version=&lt;install_wizard_version&gt; ]</font> <br>
810 <font color="#000000">&nbsp;&nbsp;&nbsp; &nbsp;
811 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [
812 caption=&lt;install_wizard_caption&gt; ]</font> <br>
813 <font color="#000000">&nbsp;&nbsp;&nbsp; &nbsp;
814 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [
815 copyright=&lt;install_wizard_copyright&gt;&nbsp; ]</font> <br>
816 <font color="#000000">&nbsp;&nbsp;&nbsp; &nbsp;
817 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [
818 license=&lt;install_wizard_license_info&gt; ]</font> <br>
819 <font color="#000000">&nbsp;&nbsp;&nbsp; &nbsp;
820 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ os=&lt;target_platform&gt;
821 ]</font><b><font color="#000099"><br>
822 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&gt;</font></b><font color="#000000"> <br>
823 &nbsp;&nbsp;&nbsp; ]</font> <br>
824 <font color="#000000"><b>&nbsp;&nbsp;&nbsp; </b>[ </font><b><font
825  color="#000099">&lt;path</font></b><font color="#000000">&nbsp;&nbsp;
826 [ targetdir=&lt;target_directory&gt; ]</font> <br>
827 <font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
828 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
829 [ tempdir=&lt;temp_directory&gt;&nbsp;&nbsp;&nbsp;&nbsp; ]</font><b><font
830  color="#000099"><br>
831 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&gt; </font></b><font color="#000000"><br>
832 &nbsp;&nbsp;&nbsp; ]</font> <br>
833 <font color="#000000">&nbsp;&nbsp;&nbsp; [</font><b><font
834  color="#000099"> &lt;product</font></b><font color="#000000">&nbsp;
835 name=&lt;product_name&gt;</font> <br>
836 <font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
837 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
838 version=&lt;product_version&gt;</font> <br>
839 &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; [
840 context=&lt;product_context&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
841 ]<br>
842 &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; [
843 description=&lt;product_description&gt; ]<br>
844 <font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
845 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
846 install=&lt;installation_mode&gt;</font> <br>
847 <font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
848 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
849 supported=&lt;supported_installation_modes&gt;</font> <br>
850 <font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
851 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disable=&lt;disable_flag&gt;<br>
852 &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; [
853 pickupenv=&lt;pickup_env_flag&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]</font><font
854  color="#000000"><br>
855 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
856 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
857 dependancies=&lt;list_of_prerequisites&gt;</font>&nbsp;<font
858  color="#000000"><br>
859 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
860 &nbsp;&nbsp;&nbsp;&nbsp; installdiskspace=&lt;install_disk_space&gt;</font>
861 <font color="#000000"><br>
862 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
863 &nbsp;&nbsp;&nbsp; temporarydiskspace=&lt;tmp_disk_space&gt;</font> <font
864  color="#000000"><br>
865 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
866 &nbsp;&nbsp; script=&lt;installation_script_name&gt;</font><font
867  color="#000099"><br>
868 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /<b>&gt;</b></font><font color="#000000">
869 <br>
870 &nbsp;&nbsp;&nbsp; ]</font> <font color="#000000"><br>
871 &nbsp;&nbsp;&nbsp; [</font><b><font color="#000099"> &lt;product</font></b><font
872  color="#000000"> ... </font><font color="#000099"><br>
873 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /<b>&gt;</b></font><font color="#000000">
874 <br>
875 &nbsp;&nbsp;&nbsp; ]</font> <font color="#000000"><br>
876 &nbsp;&nbsp;&nbsp;<b> .</b></font><b><font color="#000099">..</font></b>
877 <b><font color="#000099"><br>
878 &lt;/document&gt;</font></b> </p></font>
879 <h4><font color="#000000">&lt;config&gt; section</font></h4>
880 <font color="#000000">This is optional section - contains general
881 information Installation Wizard itself.</font>
882 <ul>
883   <li> <font color="#000000"><b>version</b>: Installation Wizard's
884 version number;</font></li>
885   <li> <font color="#000000"><b>caption</b>: Installation Wizard's
886 main
887 window title - if this string contains '%1' text - the title will
888 contain
889 in this place version number (see above);</font></li>
890   <li> <font color="#000000"><b>copyright</b>: Installation Wizard's
891 copyright information (appears on the first page of program);</font></li>
892   <li> <font color="#000000"><b>license</b>: Installation Wizard's
893 license information (appears on the first page of program);</font></li>
894   <li> <font color="#000000"><b>os</b>: Contains directory name
895 (relative from ./Products/BINARIES) where Installation Wizard should
896 search precompiled binaries packages. If this tag is skipped, binaries
897 are implied to be in
898 the ./Products/BINARIES directory.</font></li>
899 </ul>
900 <h4> <b><font color="#000000">&lt;path&gt; section</font></b></h4>
901 This is optional section - contains default directories.
902 <ul>
903   <li> <font color="#000000"><b>targetdir</b>: Starting target
904 directory - path to the directory where products should be installed;</font></li>
905   <li> <font color="#000000"><b>tempdir</b>: Starting temp directory -
906 path to the directory for the temporary files.</font></li>
907 </ul>
908 <h4> <b>&lt;product&gt; section</b></h4>
909 This section describes product to be installed with the Installation
910 Wizard. Products appear in the products tree
911 and are installed in the order they are described in the configuration
912 file. It is recommended to insert native products at the top of the
913 list before all other products.
914 <ul>
915   <li> <font color="#000000"><b>name</b>: Name of the product;</font></li>
916   <li> <font color="#000000"><b>version</b>: Version of the product;</font></li>
917   <li> <font color="#000000"><b>description</b>: Description of the
918 product (optional);</font></li>
919   <li> <font color="#000000"><b>context</b>: Context of the product
920 (optional); the possible values are <b>'salome sources'</b>, <b>'salome
921 binaries'</b> and <b>'prerequisite'</b>;</font></li>
922   <li> <font color="#000000"><b>supported</b>: Supported modes of
923 installation, should contain one or more of the following options,
924 separated by comma: <i>install sources</i>, <i>install binaries</i>, <i>use
925 native</i>. Installation script should contain corresponding functions
926 for each of supported installation modes;</font></li>
927   <li> <font color="#000000"><b>install</b>: Default (starting)
928 installation mode;</font></li>
929   <li> <font color="#000000"><b>disable</b>: If this flag has 'true'
930 value, corresponding product will not appear in the list of products
931 tree and will not be installed;</font></li>
932   <li><b>pickupenv</b>: This flag points that pickup environment
933 procedure
934 should be performed for this module. If this flag equal to <b>true</b>,
935 &nbsp;salome.sh
936 and salome.csh files will&nbsp; be created in the product's
937 installation
938 directory. Usually this option is set to true for SALOME KERNEL module
939 sources and binaries pakcge. This is optional key, default value is <b>false.</b><br>
940   </li>
941   <li> <font color="#000000"><b>dependancies</b>: list of prerequisite
942 products, which are necessary to build this product, separated by comma;</font></li>
943   <li> <font color="#000000"><b>installdiskspace</b>: Total amount
944 space (integer, in Kbytes), which product occupies on the hard drive
945 after the
946 installation;</font></li>
947   <li> <font color="#000000"><b>temporarydiskspace</b>: Disk space
948 (integer, in Kbytes) for the temporary files, which is necessary to
949 build the product from the sources;</font></li>
950   <li> <font color="#000000"><b>script</b>: Installation script name.
951 This script is in charge of installation of the product. It is called
952 when necessary from the main program. See <a href="#new_products">next
953 section</a> for
954 more information.</font></li>
955 </ul>
956 <b>Note:</b> If you add new products to be installed with Installation
957 Wizard, you should also provide installation script for this product.
958 See
959 next section for more details.
960 <hr>
961 <h3><a name="new_products"></a>Implementing <font color="#ff0000">installation
962 scripts</font> for the new products</h3>
963 When you want some product to be installed with the Installation
964 Wizard, you should add it's description it <a href="#xml_files">in the
965 configuration file</a> and create bash installation script, following
966 described in this section rules. <br>
967 There are some obligatory functions to be provided in this installation
968 script. These functions are automatically called by master installation
969 script
970 or/and its GUI shell when it is necessary.<br>
971 <font color="#000000">File <b>common.sh</b> contains some service
972 functions
973 which can be used in your installation script, like <b>make_env()</b>,<b>
974 make_dir()</b>, <b>try_existing()</b>, <b>sort_path()</b>,<b>
975 find_in_path()</b>,
976 etc.</font>
977 <ul>
978   <li> <b>check_version()</b>:&nbsp; This function allows to check the
979 version of the product already installed on the computer. It should try
980 to find product (native or preinstalled in the target directory) and
981 check
982 it version. This helps to avoid unnecessary reinstallation. This is
983 internal
984 function and is not called</li>
985   <li> <b><font color="#000000">try_native()</font></b><font
986  color="#000099">: </font><font color="#000000">This function is
987 called when <i>'use native' </i>installation mode is selected by the
988 user. The function should try to find native version of the product and
989 define possibility of it usage. Should create environment for the
990 product in the temporary directory (see also description of <b>print_env(</b>)
991 function). If you do not provide native mode installation, you can omit
992 this function.</font></li>
993   <li> <font color="#000000"><b>install_source()</b>: This function is
994 called when <i>'install sources</i>' installation mode is selected by
995 the
996 user. The function is responsible for the building of the product from
997 the
998 sources package. Should create environment for the product in the
999 temporary
1000 directory (see also description of <b>print_env(</b>) function). If
1001 you do
1002 not provide sources mode installation, you can omit this function</font></li>
1003   <li> <font color="#000000"><b>install_binary()</b>: This function is
1004 called when <i>'install binaries'</i> installation mode is selected by
1005 the
1006 user. The function is responsible for the extracting of the product
1007 from
1008 the binaries package. Should create environment for the product in the
1009 temporary
1010 directory (see also description of <b>print_env(</b>) function). If
1011 you do
1012 not provide binaries mode installation, you can omit this function.</font></li>
1013   <li> <b>try_preinstalled()</b>: <font color="#000000">This function
1014 is called when<i> 'not install'</i> installation mode is selected by
1015 the user. In this case script should inspect target directory to try to
1016 find already preinstalled product, pick up and check environment from
1017 there. See <a href="#pick_up_env">here</a> for more details.</font></li>
1018   <li> <font color="#000000"><b>print_env()</b>: This function is in
1019 charge of creation environment script. It should create file with name </font><b>env_&lt;product_name&gt;.sh</b>
1020 in the temporary directory and then copy it into the product
1021 installation directory. The file should contain all necessary
1022 environment variables settings for the product. It will be collected
1023 during the 'pick-up-environment' procedure.</li>
1024   <li><b>pickup_env()</b>: This procedure corresponds <b>pickupenv</b>
1025 tag
1026 of the configuration xml file (see previous section). Should call <b>make_env</b>
1027 procedure to perform pick-up environment procedure for the product.<br>
1028   </li>
1029 </ul>
1030 <font color="#000000">The calling signature of the product installation
1031 script is following:</font> <br>
1032 <b><font color="#000000">&lt;product_script_name&gt;
1033 &lt;function_name&gt; &lt;temp_folder&gt; &lt;products_directory&gt;
1034 &lt;target_directory&gt;
1035 &lt;dependancies&gt; &lt;product_name&gt;</font></b>
1036 <p><font color="#000000">where</font> <br>
1037 <font color="#000000"><b>&lt;product_script_name&gt;</b> - installation
1038 script name (described in configuration xml file);</font> <br>
1039 <font color="#000000"><b>&lt;function_name&gt;</b> - the name of
1040 function, corresponding to the selected installation mode: <i>try_native,
1041 install_source, install_binary</i> or <i>try_preinstalled</i>;</font> <br>
1042 <font color="#000000"><b>&lt;temp_folder&gt;</b> - temporary files
1043 directory;</font> <br>
1044 <font color="#000000"><b>&lt;products_directory&gt;</b> - directory
1045 where the sources/binaries package can be found. You should provide
1046 sources package in the <i>&lt;Install_Wizard_root_directory&gt;/Products/SOURCES</i>
1047 directory and binaries package in the <i>&lt;InstallWizard_root_directory&gt;/Products/BINARIES/&lt;os_version&gt;</i>,
1048 where &lt;os_version&gt; is target platform description, which appears
1049 in the corresponding section of the <a href="#xml_files">configuration
1050 xml
1051 file</a>.</font> <br>
1052 <font color="#000000"><b>&lt;target_directory&gt;</b> - root target
1053 directory where product should be installed to;</font> <br>
1054 <font color="#000000"><b>&lt;dependancies&gt;</b> - single-quoted list
1055 of prerequisite products, separated by space;</font> <br>
1056 <font color="#000000"><b>&lt;product_name&gt; </b>- product name
1057 itself.</font> </p>
1058 <p><font color="#000000">Example:</font> <br>
1059 <i><font color="#000000">med-2.2.2.sh install_binary /tmp/work
1060 ./Products/BINARIES/Mandrake10.1 /usr/salome 'gcc Hdf' med</font></i> </p>
1061 <p><font color="#000000">Copy created script into the <i>&lt;Install_Wizard_root_directory&gt;/config_files</i>
1062 sub-directory where all installation scripts are stored. Installation
1063 Wizard
1064 will automatically search and call your script during the installation
1065 procedure.</font>
1066 </p>
1067 <hr> <br>
1068 <br>
1069 </body>
1070 </html>