X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=README;h=84fd1e8d5d1730e9f25eb6b4b53de385abb45193;hb=f2c057f2d35134331ff27874d2e297d7af8b01b9;hp=6525ddfb8839b0a12a05f6ad3f86b831fadb502b;hpb=0a5bfb9be4f4c36b4016c9fb032ea738a0b84dbb;p=tools%2Finstall.git diff --git a/README b/README index 6525ddf..84fd1e8 100644 --- a/README +++ b/README @@ -24,42 +24,69 @@ 1. Running of the Installation Wizard - You can run the Installation Wizard in two modes: batch and gui. - It's root directory contains python script runInstall: - - [python] runInstall [-g|b] [-f ] [-t ] [-tmp ] - - -g - Runs the Installation Wizard in the GUI mode. In this case - only key is taken into account. - This option is used by default. - - -b - Runs the Installation Wizard in the batch mode. - - -f - The configuration file to be used by the Installation Wizard. - If this parameter is missed then the script tries to define - automatically the Linux platform and use the corresponding xml file - if there is one provided. - For example, for Linux Mandrake 10.1 config_Mandrake_10.1.xml file - will be used by default. If the appropriate file is not found, - default config.xml will be used. This file contains default - installation settings. From SALOME version 3.0.0 - the default target platform is Linux Mandrake 10.1. - - -t - The target directory SALOME products to be installed to. - If used, overloads target directory, given in the - configuration xml file (usually /salome). - - -tmp - The directory, which is used to contain temporary files. - If used, overloads temporary directory, given in the - configuration xml file (usually /tmp). - - -h - Prints help information. + The Installation Wizard can be launched in two modes: GUI and batch. + The root directory of the Installation Wizard contains Python + script runInstall. To run the Installation Wizard just type + ./runInstall in the terminal window: + + [ python ] ./runInstall [] + + Without any option this script will launch the SALOME Installation + Wizard in the default mode (GUI) with the default installation + parameters. The default mode can be overridden by using command + line options. Each option has short and long notations: + + -g / --gui + + Runs the Installation Wizard in the GUI mode (this is the default + mode). + + -b / --batch + + Runs the Installation Wizard in command-line mode. + + -f FILE / --file=FILE + + Defines the XML configuration file to be used by the Installation Wizard. + If the appropriate file is not found, the warning message is shown. + If this option is not used then the installation script tries to + define the Linux version and use the corresponding XML file. + For example, for the Linux Mandriva 2006.0 the config_Mandriva_2006.0.xml + file will be used by default. + + -d DIR / --target=DIR + + Defines the target directory for SALOME platform installation. + If used, this option overrides the default target directory, + indicated in the configuration XML file (usually + ${HOME}/salome_). + + -t DIR / --tmp=DIR + + Defines the directory for temporary files. If used, this + option overrides the default temporary directory, indicated in + the configuration xml file (usually /tmp). + + -a / --all-from-sources + + Forces all products to be installed from sources including SALOME + modules. If this option is used all the default installation modes + are ignored. + + -s / --single-directory + + Install all SALOME binaries packages to one directory (SALOME_, + where is SALOME version). + Note: this option is ignored when --all-from-sources (-a) option is used. + + -h / --help + + Prints help information about available options. + + -v / --version + + Prints version information (Note: this is the version number of + the Installation Wizard, not of the SALOME platform). For more detailed information about the Installation Wizard refer to the readme.html file in the doc directory. @@ -74,13 +101,15 @@ 2.1. Setting of the environment for SALOME Installation Wizard creates some environment files to simplify - the procedure of launching of SALOME. These shell scripts set all + the procedure of launching SALOME. These shell scripts set all necessary environment variables for all products you have installed. These files are: - * salome.csh + salome.sh in the KERNEL module's sources/binaries - root directories; these files can be used for the launching of - SALOME. * env_products.csh + env_products.sh in the target directory; + these files can be used for the launching of SALOME. + * salome.csh + salome.sh in the KERNEL module's sources/binaries + root directories; these files are the copies of the + corresponding env_products.* files. + * env_build.csh + env_build.sh in the target directory; these files contain minimal environment settings necessary to build SALOME packages from sources (see paragraph 4). @@ -93,25 +122,27 @@ source salome.csh where is KERNEL binaries directory, e.g. - KERNEL_3.0.0 for the 3.0.0 version. + KERNEL_5.1.0 for the 5.1.0 version. 2.2. Launching of SALOME After you set environment you can start SALOME. Go to the KERNEL - module's binaries directory (KERNEL_3.0.0/bin/salome for the version - 3.0.0) by using of 'cd' command and then type: + module's binaries directory (KERNEL_5.1.0/bin/salome for the version + 5.1.0) by using of 'cd' command and then type: runSalome [] This will start SALOME according to the launching parameters which are described in the configuration files: SalomeApp.xml in the - /share/salome/resources folder and .SalomeApprc. - file, located in your home directory (where is number - of SALOME version). If the latest file does not exist, it is automatically - created during the first launch of SALOME. + /share/salome/resources/gui folder and + .SalomeApprc. file, located in your home + directory (where is SALOME version number). + If the user configuration file does not exist, it is automatically + created when exiting SALOME GUI. You can modify SALOME launching options by editing your - ~/.SalomeApprc. file: + ~/.SalomeApprc. file (not all the options are + listed below):
@@ -128,28 +159,84 @@
- Some parameters described in configuration file can be overrided by + Some parameters described in configuration file can be overridden by using of corresponding command-line options for runSalome script: - --gui - Launch GUI desktop - --logger - Use logger server - --xterm - Start each server in its own xterm console window - --portkill - Kill SALOME, running on the current port - --killall - Kill SALOME, running on all ports - --modules=,,..., - Use module(s), possible values are GEOM,SMESH,VISU,MED,SUPERV,etc. - --embedded=,,... - Start specified server/container(s) embedded in SALOME Session server - (i.e. running in the same process), possible values are registry, - study, moduleCatalog, cppContainer, registry - --standalone=,,... - Start standalone server/container(s), possible values are registry, - study, registry, moduleCatalog, cppContainer, pyContainer, supervContainer. + -t, --terminal + Launch without GUI (in the terminal mode). + -g, --gui + Launch in GUI mode [default]. + -d <1/0>, --show-desktop=<1/0> + 1 to activate GUI desktop [default], 0 to not activate + GUI desktop (Session_Server starts, but GUI is not + shown). Ignored in the terminal mode. + -o, --hide-desktop + Do not activate GUI desktop (Session_Server starts, + but GUI is not shown). The same as --show-desktop=0. + -b, --batch + Launch in Batch Mode. (Without GUI on batch machine) + -l, --logger + Redirect messages to the CORBA collector. + -f , --log-file= + Redirect messages to the + -u , --execute= + Python script(s) to be imported. Python scripts are + imported in the order of their appearance. In GUI mode + python scripts are imported in the embedded python + interpreter of current study, otherwise in an external + python interpreter + -r , --resources= + Parse application settings from the instead of + default $(HOME)/.SalomeApprc.$(version) + -x, --xterm + Launch each SALOME server in own xterm console + -m , --modules= + SALOME modules list (where , are + the names of SALOME modules which should be available + in the SALOME session) + -e , --embedded= + CORBA servers to be launched in the Session embedded + mode. Valid values for : registry, study, + moduleCatalog, cppContainer, SalomeAppEngine [by + default the value from the configuration files is + used] + -s , --standalone= + CORBA servers to be launched in the standalone mode + (as separate processes). Valid values for : + registry, study, moduleCatalog, cppContainer, + pyContainer, supervContainer [by default the value + from the configuration files is used] + -p, --portkill + Kill SALOME with the current port + -k, --killall + Kill all running SALOME sessions + -i , --interp= + The number of additional external python interpreters + to run. Each additional python interpreter is run in + separate xterm session with properly set SALOME + environment + -z <1/0>, --splash=<1/0> + 1 to display splash screen [default], 0 to disable + splash screen. This option is ignored in the terminal + mode. It is also ignored if --show-desktop=0 option is + used. + -c <1/0>, --catch-exceptions=<1/0> + 1 (yes,true,on,ok) to enable centralized exception + handling [default], 0 (no,false,off,cancel) to disable + centralized exception handling. + --print-port + Print free port and exit + --nosave-config + Do not save current configuration + ${HOME}/.omniORB_last.cfg + --pinter + Launch with interactive python console. + --ns-port-log= + Print Naming Service Port into a user file. + --gdb-session + Launch session with gdb + --version + Show program's version number and exit Additional launch settings are given in other sections, which refer to certain modules. For example, SMESH plugins which should be used in the SALOME launch @@ -172,34 +259,31 @@ patient. The quickest way to install SALOME is installation from the binaries. In this mode the Installation Wizard just extracts all precompiled - products from the corresponding archives (except those products + products from the corresponding archives (except for the products which can be installed only by compiling from sources). The installation from sources requires much more time than from binaries because in this case the Installation Wizard extracts and then builds each product using the product's own compilation procedure. The installation time also depends on the computer and platform used. - For example, to install SALOME on Pentium IV-2GHz, Linux Mandrake 10.1, + For example, to install SALOME on Pentium IV-3GHz, Linux Mandriva 2006.0, time of the installation is: - - from binaries: ~10 minutes; + - from binaries: ~15 minutes; - from sources: more than 24 hours. - Note, the most time-consuming process is compiling of CASCADE libraries from - sources - it takes about 90% of time needed for compilation of all products. - 3.2. Log files The Installation Wizard displays the installation progress in the corresponding windows (see readme.html). The Wizard uses a temporary directory to store and build the products. During the installation it produces some log files in this directory. If you suspect that - program hangs you can check the log files. These files have names + the program hangs you can check the log files. These files have names in capital letters like CONFIGURE.LOG, MAKE.LOG, MAKEINSTALL.LOG, etc. 3.3. Testing of installed SALOME platform - There is a python script which allows to test shortly all SALOME + There is a python script which allows quickly testing all SALOME modules. This script can help to check if SALOME has been installed successfully. To test SALOME platform, run SALOME desktop (see section 2), then @@ -209,16 +293,22 @@ import salome_test When running, the script loads different modules (Geometry, Mesh, Med, - Post-Pro and Supervisor) and tests different functionality of these - modules. You can watch script running progress in the embedded + Post-Pro and Supervisor) and tests various functionalities of these + modules. You can watch the script execution progress in the embedded python console window. + Note: salome_test.py scripts require SALOME samples module + (SAMPLES_SRC) to be installed (this module includes a set of sample + MED, Python, Supervisor graph, etc files). + Environment variable DATA_DIR should point at the SALOME + samples module directory. + ================================================================================ 4. How to build SALOME modules from sources - This section describes the way how to build SALOME modules manually from - sources distribution provided with Installation Wizard. + This section describes how to build SALOME modules manually + from the sources distribution provided with the Installation Wizard. 4.1. General procedure @@ -228,14 +318,14 @@ In this scenario it is supposed that you have installed SALOME modules sources in the /home/salome directory. The name of each module sources directory depends on the version of the platform, for example, - KERNEL_SRC_3.0.0 for KERNEL module of SALOME version 3.0.0. + KERNEL_SRC_5.1.0 for KERNEL module of SALOME version 5.1.0. - The order of compilation and installation should be performed according - to the dependancies between modules: + Compilation and installation should be performed according to + the dependencies between modules: Main SALOME modules: - * KERNEL -> no dependancies + * KERNEL -> no dependencies * GUI -> KERNEL * GEOM -> KERNEL, GUI * MED -> KERNEL, GUI @@ -247,6 +337,9 @@ * NETGENPLUGIN -> KERNEL, GUI, SMESH * GHS3DPLUGIN -> KERNEL, GUI, SMESH + * GHS3DPRLPLUGIN -> KERNEL, GUI, SMESH + * HexoticPLUGIN -> KERNEL, GUI, SMESH + * BLSURFPLUGIN -> KERNEL, GUI, SMESH Sample modules: @@ -256,15 +349,17 @@ * HELLO -> KERNEL, GUI * PYHELLO -> KERNEL * LIGHT -> KERNEL, GUI + * RANDOMIZER -> KERNEL, GUI + * SIERPINSKY -> KERNEL, GUI, VISU, RANDOMIZER Note: SMESH plugins and sample modules are optional. You may skip compiling them if you do not plan to use NETGEN and/or GHS3D meshing algorithms and do not want to build samples. - In general, each module (except KERNEL and GUI, of course) is optional for - SALOME. If you do not need any module, just do not compile or install - it. But remember that some modules require other ones to be built first - (see dependancies table above). + In general, each module (except for KERNEL and GUI, of course) is + optional for SALOME. If you do not need a certain module, just do not + compile or install it. But remember that some modules require others + to be built first (see dependencies table above). To build KERNEL module: @@ -286,19 +381,19 @@ - create a configuration script by typing - ../KERNEL_SRC_3.0.0/build_configure + ../KERNEL_SRC_5.1.0/build_configure - run configure script which will check the environment and create Makefile files: - ../KERNEL_SRC_3.0.0/configure --prefix=/home/salome/KERNEL_install + ../KERNEL_SRC_5.1.0/configure --prefix=/home/salome/KERNEL_install Note, that --prefix option defines the directory where you want to install KERNEL module after 'make install' procedure. configure script - accepts also a lot of other parameters (for example, to build the module + also accepts a lot of other parameters (for example, to build the module in the optimized mode use --disable-debug --enable-production keys). - More about certain module's configure options you can learn by using - --help (-h) parameter. + You can learn more about the configure of any modules by using --help (-h) + parameter. - build and (optionally) install KERNEL module: @@ -325,11 +420,11 @@ (if make install step was not performed). - then repeat this scenario for other modules you want to build taking - into account the dependancies between modules (see dependancies table + into account the dependencies between modules (see dependencies table above). Note: if the compilation fails it may be caused by bad environment. - In this case you should check that environment script you use + In this case you should check if the environment script that you use (salome.csh or salome.sh) contains the following lines for each module MODULE: * for bash: @@ -341,15 +436,21 @@ setenv MODULE_ROOT_DIR /home/salome/ where is a MODULE_build or MODULE_install (see above). - - 4.2. Automatic build procedure: build.csh script - From version 2.2.0 SALOME Installation Wizard includes the script + 4.2. Automatic build procedure: build.csh and build.sh scripts + + SALOME Installation Wizard includes two scripts which can be used for automatic building of SALOME modules from sources packages: - build.csh. It is installed into the top-level target directory - (the same directory where env_products.[c]sh files are generated. + build.csh and build.sh. The scripts are installed into the top-level + installation directory (the same directory where env_products.[c]sh + files are generated). - To use this script just install SALOME sources packages with + The build.csh and buils.sh scripts implement the same functionality + and support the same set of options, but for different shells. + Use build.csh script for csh and build.sh for bash. + The description below refers to both scripts. + + To use the script just install SALOME sources packages with the Installation Wizard, then cd to the SALOME installation directory and type: @@ -357,31 +458,40 @@ By default, build.csh only compiles the modules but does not install them, i.e. does not perform 'make install' step. - To do this, use -i option or -p where is target - directory. + To do this, use -i option or -p where is the + directory SALOME modules should be installed to. If you want to build only some SALOME modules, just pass them as parameters, e.g.: ./build.csh -i KERNEL MED GEOM - The script also provides some other options which specify compiling - and installation parameters. You can learn about options by using + The script also provides other options which specify compiling and + installation parameters. You can learn about these options by using -h key: ./build.csh -h - When you run build.csh at first time it is not necessary to pass + When you run build.csh for the first time it is not necessary to pass -b, -c parameters. The script detects if build procedure has not yet - been performed and runs build_configure, configure scripts - in this case automatically. + been performed and in this case runs build_configure, configure scripts + automatically. - Note: for avoiding of collisions it is recommended not to install + Note: to avoid collisions it is recommended not to install SALOME binaries packages with Installation Wizard if you plan to build SALOME modules from sources packages or to edit/comment all rows in env_products.csh file concerning binaries packages. Note: use -d option carefully because in this case the script removes - existing (previously installed) SALOME modules. + the existing (previously installed) SALOME modules. + + Note: please, take into your account that 'make install' step is + obligatory for the KERNEL module. Build directory of KERNEL + can not be indicated as KERNEL_ROOT_DIR. This is an exception + for the SALOME modules. So you should use either option -i + or -p of build.sch script when building KERNEL module. + + Note: build.(c)sh scripts do not modify the environment files + (env_products.csh, etc). You should do it by yourself. ================================================================================