Beruflich Dokumente
Kultur Dokumente
Contents
1 Introduction
1.1 Application Scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Supported Linux Distributions . . . . . . . . . . . . . . . . . . . . . . . . .
1.3 Nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 Installation
2.1 Prerequisites . . . . . . . . . . . . .
2.2 Installation with Graphical Installer .
2.3 Command Line Installation . . . . .
2.4 Silent Mode Installation . . . . . . .
2.5 Installation on a Central Server . . .
3
3
4
4
.
.
.
.
.
5
5
6
12
17
17
.
.
.
.
.
18
18
18
21
22
22
23
23
23
23
5 Troubleshooting
5.1 Installer reports Previous version found in NULL
5.2 Installer Shows Java Errors . . . . . . . . . . . . .
5.3 Installation from DVD Fails . . . . . . . . . . . . .
5.4 Failed to Load Shared Library . . . . . . . . . . . .
5.5 Update of the Installation Fails . . . . . . . . . . .
5.6 Installation of Prerequisite Packages Fails . . . . .
5.7 Complete List of Required Packages . . . . . . . .
24
24
24
24
24
24
25
25
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
A Technical Information
27
28
29
29
(a)
(b)
(c)
Figure 1: (a) The CST software on the Linux computers is controlled by a CST STUDIO
SUITE frontend running on Windows using Distributed Computing or MPI computing. (b)
The CST simulations on the Linux system are started in batch mode directly on the Linux
system. (c) The stand-alone application CST BOARDCHECK is started locally.
1 Introduction
This document contains important information about the installation and usage of CST
STUDIO SUITE on Linux systems. Please read this manual carefully before installing
the software. If you need further help installing and conguring the software please
contact the CST support team (info@cst.com). We will be glad to help you.
1.1
Application Scenarios
There are three application scenarios for the software this DVD contains:
1. You plan to use the CST Distributed Computing system or MPI Computing on
a Linux cluster and drive these Linux machines with the CST STUDIO SUITE
frontend from a computer running the Microsoft Windows operating system (see
g. 1(a)). In this case it is sucient to read section 2 of the document.
2. You plan to build up a pure Linux environment/cluster system where you start CST
simulations from the command line in batch mode without involving any machine
running the Microsoft Windows operating system (see g. 1(b)). Systems which require this setup are typically Linux cluster systems which are isolated by a gateway
machine from the rest of your LAN and which are controlled by queuing systems
(e.g. LSF, OGE, Torque, PBS, HTCondor). This setup can make use of the CST
Distributed Computing system and MPI Computing as well. The dierence as opposed to 1 is that there is no CST STUDIO SUITE frontend running on Microsoft
Windows involved during the simulation run1 .
3. You plan to deploy the application CST BOARDCHECK on a single machine. In
this conguration both the computations and the GUI visualization can be run on a
Linux machine (g. 1(c)). See section 4 for details.
1
Although you dont need to have a machine running Microsoft Windows in your cluster you will still
need an installation of CST STUDIO SUITE on a computer running Microsoft Windows to create your
models.
1.2
This version of CST STUDIO SUITE is supported and continously tested on RedHat
Enterprise Linux 5.x and 6.x as well as SUSE Linux Enterprise Server (SLES) 11. It may
work on other distributions as well, but we strongly recommend using it on one of the
supported congurations and wont be able to support you if you experience problems
with a Linux version not listed here. Nevertheless, you can nd some information about
the installation on some distributions which are not ocially supported in appendix B.
Part of this information was kindly provided by some of our customers.
1.3
Nomenclature
# command
<...>
2 Installation
2.1
Prerequisites
Please make sure that your environment is congured in the following way before you
start the installation.
1. Some Linux distributions will automatically mount the installation DVD but with
the noexec mount option which prevents the execution of the installer. Please mount
the DVD manually or use the command
# mount -o remount,exec /media/CST_STUDIO_SUITE_2014_Linux
to circumvent this issue.
2. Change /etc/hosts according to http://dev.mainsoft.com/Default.aspx?tabid=103.
Afterwards /etc/hosts should contain a
127.0.0.1 localhost.localdomain localhost
line and no further 127.0.0.1 lines. Additionally, if you plan to use MPI Computing, make sure that the names of your nodes can be resolved to IPv4 addresses (not
to IPv6 addresses). You can use the command
$ ping <hostname>
to test whether <hostname> can be resolved properly.
3. If you want to install a part of CST STUDIO SUITE which needs a service running
on your system (needed for Distributed Computing or license server) you must run
the installer with root permissions. In case of security concerns please contact CST
support (info@cst.com) for advice or read FAQ 373 (Distributed Computing) or FAQ
286 (license server) on the CST support webpage.
Superuser permissions are however not needed for the services to run: you can specify
a user account for that purpose. Note that this user account must exist before you
start the installation.
4. If you plan to use MPI Computing: Please note that MPI Computing needs a DNS
or appropriate entries in the /etc/hosts le in order to start up remote processes
on compute nodes. Please refer to the online help for further information on how to
setup a Linux cluster with MPI.
5. CST STUDIO SUITE requires that several software libraries are preinstalled on the
target system. The installer checks only its own list of libs required to successfully
execute the installer but not the CST software itself.
After the installation has nished it is strongly recommended to execute the tool
$ "<CST_INSTALL_PATH>/cst_system_check"
February 11, 2014
which can test whether all libraries and tools required to use the CST software are
present on your system.
Additionally you can nd the full list of required packages for the supported distributions in section 5.7.
2.2
After mounting the DVD into your le system go to the root directory of the DVD and
execute the installer by using the command
# ./install.sh
Note: If the machine you are installing on provides a desktop environment (a running Xserver), the installer will be executed in the so-called GUI mode. If it does not provide a
desktop environment please continue reading with section Command Line Installation
(section 2.3). The console mode can also be selected manually by starting
# ./install.sh --nogui
1. After you have started the installer you should see the following window. Just click
on Next to proceed.
2. Please read the license agreement carefully. If you agree with the license terms select
the option I accept the terms of the License Agreement and press Next.
4. If you selected an installer feature that needs to run a service on your system (e.g. the
Distributed Computing components or the license server) and the installation wasnt
started with root permissions youll get the following warning. Either leave the
installer and restart with superuser permissions or change the selection of features.
5. You will see the following warning if youve selected one of the Distributed Computing components (DC Main Controller, DC Solver Server) as well as the Command
line interface and CST BOARDCHECK component in the previous step. As the
DC update mechanism is currently not aware of any les needed by the Command
line interface and CST BOARDCHECK you will need to update every installation containing this component using the update packages you get from CST (see
section 3.1).
6. If you have selected the Command line interface and CST BOARDCHECK option
you will be asked if you want to install a license le on the local machine.
Note: The license le should be installed only on the machine which is equipped
with the hardware (MAC or dongle) for which the license le was issued.
7. If you chose to install the local license server you will be asked for a license le.
Please specify the full path to the license le.
8. If you decided not to install a local license server you will need to specify the name of
the remote license server and the port on which the license server is listening in the
format <port_number>@<computer_name>. The port_number setting is optional.
9. If you selected the DC Solver Server for installation you will be asked to which DC
Main Controller this Solver Server should connect to.
10
10. Next you will be asked for the so-called Main User. This is the user account under
which the CST daemons will be started. Additionally, only this user account (and
root) has the permission to congure the CST daemons and to update the installation
with service packs. The Main User needs to be a user account already existing on
the system.
11. Choose the installation folder. Please do not use spaces within this path.
11
12. Check all the settings you made and start the installation.
2.3
If no running X server is found, the installer will automatically switch into a console mode.
You can however override the detection logic by running
# ./install.sh --nogui
1. When you see the rst page of the text based installer, just press enter to continue.
Note: On any page of the installer you may go to the previous page by entering
back.
2. Please read the license agreement carefully. If you agree with the license terms enter
Y and press enter to proceed.
12
3. Choose your install set by entering the number of the features you would like to
install as a comma separated list and press enter to proceed. Please note that
entering the number of a feature which is already selected will deselect
this feature. On the picture below, feature number 1 is already selected. If you
write 1 again in the comma separated list, it will be deselected.
Note: The component Command line interface and CST BOARDCHECK is only
needed if you want to start simulations in batch mode either from a terminal or via
a queueing system or if you want to use CST BOARDCHECK. Please do NOT
install this component if you set up a CST Distributed Computing system
or an MPI cluster to which users send their jobs directly from the CST
STUDIO SUITE Windows frontend.
4. If you selected an installer feature that needs to run a service on your system (e.g.
Distributed Computing or the license server) and the installation wasnt started
with root permissions youll get the following warning. Either leave the installer and
restart with superuser permissions or change the selection of features.
13
5. You will see the following warning if youve selected one of the Distributed Computing components (DC Main Controller, DC Solver Server) as well as the Command
line interface and CST BOARDCHECK component in the previous step. As the
DC update mechanism is currently not aware of any les needed by the Command
line interface and CST BOARDCHECK you will need to update every installation containing this component using the update packages you get from CST (see
section 3.1).
6. You will be asked if you want to provide a license le (the le must be issued for the
local machine) or if you want to connect to a remote license server.
7. If you chose to install the local license server you will be asked for a license le.
Please specify the full path to the license le.
14
8. If you decided not to install a local license server then you need to specify the name
of the remote license server and the port on which the license server is listening in the
format <port_number>@<computer_name>. The port_number setting is optional.
9. If you selected the DC Solver Server for installation you will be asked to which DC
Main Controller this Solver Server should connect to.
10. Next you will be asked for the so-called Main User. This is the user account under
which the CST daemons will be started. Additionally, only this user account (and
root) has the permission to congure the CST daemons and update the installation
with service packs. The Main User needs to be a user account already existing on
the system.
11. Choose the installation folder. Please do not use spaces within this path.
15
12. Check all the settings you made and start the installation.
16
2.4
It is possible to generate an installer conguration le which enables silent mode installation. This is useful if you want to deploy the software to several machines using the same
installer settings. To generate such a le, start the installer with the option --record:
# ./install.sh --record <filename>
The installer will store a le with all settings you made during the installation process.
This le can be used for later installations:
# ./install.sh --replay <filename>
The installer will now read all required settings from the conguration le and perform an
unattended installation.
2.5
It is possible to install the CST STUDIO SUITE on a central server, mount the installation directory on a client machine, and use the software on the client machine. If you
choose this type of installation be aware that the installation directory on the server must
have the same name as the mountpoint on the client machine, i.e. if you installed the software on the leserver using /opt/cst/CST_STUDIO_SUITE as installation path then the
folder must be mounted into the lesystem of the client such that it occurs with the same
name (/opt/cst/CST_STUDIO_SUITE) on the client. Additionally, be aware that the CST
daemons cant be automatically installed on the client machine. This fact leads to the
following limitations:
2.5.1
Limitations
The Distributed Computing system cannot be set up automatically using a central installation as described above. It is however possible to start the system manually. Please refer
to FAQ 373 in the support section of the CST website.
17
3.1
3.2
Prior to starting any CST simulations please run the cst_system_check script at least
once. The script will report missing packages and programs that are required to run a
CST simulation.
$ "<CST_INSTALL_PATH>/cst_system_check"
To start your simulations please use the following syntax:
$ "<CST_INSTALL_PATH>/cst_design_environment" <OPTIONS> "<PATH_TO_CST_FILE>"
The quotes are recommended to prevent problems with special characters in the path. Note
that at least two command line switches need to be specied: one to select the module (e.g.
--m for MICROWAVE STUDIO), and one to select the solver (e.g. --r for the transient
solver).
The CST command line interface currently supports the following command line options:
Option
Behavior
--m
--t
18
--r
--f
--q
--a
--pic
--tp
--tw
--p
--o
--withgpu="<N>"
--withmpi
Enables MPI computing. Also a machinele must be specied when using MPI Computing. Valid for --r, --f, --q
and --tw.
Please refer to the online help to learn more about MPI
Computing.
--withdc
--withdc="<MAINCTRL>"
--dc <N>
--dcpar <N>
19
--machinefile "<MFILE>"
--queuesys "<QS>"
--numthreads <N>
--defaultacc
--dump <N>
20
3.3
Environment Variables
The CST Command line interface currently supports the following environment variables.
CST_VERBOSE_FRONTEND If set to 0 the output of the solvers will be suppressed.
By default the output is shown on the console.
CST_WAIT_FOR_LICENSE If set to 1 the program will wait in case that the license
required to start your simulation is blocked by another simulation. The simulation
will start as soon as the license is free again. If the environment variable is not set
the program will end immediately in case that the required license is already in use.
CST_LOCALHOME By default, crucial runtime les (i.e. shared memory segments)
which are required to run CST STUDIO SUITE are created in the /tmp folder.
The CST_LOCALHOME variable allows the user to change the location where these
les are stored. Note: The path specied must exist and it must point to a local
storage device (not to a folder located on a le-server). All user accounts using CST
STUDIO SUITE need to have write-access to this folder. We recommend to not set
this variable unless /tmp does not reside on a local storage device.
In case of a stateless cluster, where all drives are mounted shared drives, the RAMdisk might be used:
$ export CST_LOCALHOME=/dev/shm
CST_ENABLE_INTERACTIVE_RESULT_VIEW By setting this environment variable to
1 CST STUDIO SUITE can be started interactively, provided the DISPLAY variable points to a visible X display. CST STUDIO SUITE may then be invoked like
this:
$ "<CST_INSTALL_PATH>/cst_design_environment" "<PATH_TO_CST_FILE>"
Be aware that the <PATH_TO_CST_FILE> le must not be in use by another instance
of CST STUDIO SUITE .
Note: The interactive mode of CST STUDIO SUITE is currently meant for result
viewing only although other parts of the software (e.g. modeling) are enabled as well.
These other parts are currently not considered stable enough for production use.
CST_FORCE_SOFTWARE_RENDERER CST STUDIO SUITE uses GPU accelerated
3D rendering by default when started interactively, i.e. if the environment variable
CST_ENABLE_INTERACTIVE_RESULT_VIEW is set. However, some GPU drivers are
unable to handle OpenGL commands properly. If you experience issues with 3D
rendering on your system you may switch o GPU accelerated rendering by setting
CST_FORCE_SOFTWARE_RENDERER to 1.
21
3.4
This version of the Command line interface only supports the following solvers/features.
This is subject to change and we expect this table to grow signicantly for future releases:
Supported Solver
Known Limitations
Transient
TLM solver on Linux cant be started using the Command Line Interface.2
Frequency Domain
Integral Equation
None
Asymptotic
None
PIC
None
Tracking
None
Wakeeld
None
If you have an urgent need for some of the other solvers please let us know. We can take
this into account when planning the further process of porting the software and you may
even help us to make it more robust on the Linux platform as a beta tester if you like.
3.5
Uninstall
The TLM solver can be used on Linux via Distributed Computing when started by the CST frontend
running on Windows.
22
4.1
4.2
4.3
Uninstall
23
5 Troubleshooting
5.1
If the installer shows the error message Previous version found, this likely means that
the CST installation folder has been deleted without running the uninstall program. The
installer remembers a previous installation using a hidden le. If you delete this le with
# rm /var/.com.zerog.registry.xml
you can reinstall the software. However, please use the uninstall program (located in
"<CST_INSTALL_DIR>/Uninstall CST_STUDIO_SUITE_2014") if you want to remove the
software from your system as it reverts all changes applied during installation and also
removes this hidden le.
5.2
If the installer fails with a Java error this is most likely due to an incompatible Java
version on your system. However, the installer has its own Java version and you can force
the installer to use this built-in version using the option --installerjava.
5.3
Typically, the automount of the RedHat Enterprise system will mount the DVD with the
noexec ag which prevents starting programs from a DVD. Thus, if the installer fails to
start from the DVD you might have mounted the DVD with incorrect options. In this
case please unmount the DVD using the umount command and mount it again using the
following command:
# mount -t iso9660 -o loop,ro,exec,map=off /dev/cdrom /media/cdrom
Please create the directory /media/cdrom if it does not exist.
5.4
The CST software package has as few dependencies as possible on external libraries. However, in some rare cases you may get an error about a missing library.
If you experience trouble please run the
$ "<CST_INSTALL_PATH>/cst_system_check"
to detect and optionally install missing dependencies.
5.5
If the update of your installation fails please check the following points:
The update can be performed by the Main User (dened during the installation
process) or by root. It will fail for any other user account.
February 11, 2014
24
Currently the patch les for the Microsoft Windows version of CST STUDIO SUITE
are incompatible with the Linux version. Please ensure that you used the correct
patch le.
5.6
5.7
5.7.1
25
SLES 11 (64-bit)
26
A Technical Information
The CST Linux installer needs to install several les into system directories, e.g. to automatically start CST daemons with every system boot. Note that the uninstaller will undo
all those changes.
Depending on the choice of features dierent les have to be written. In the following text
the feature dependent steps will be marked as follows:
[MC]
[SS]
[FE]
[LS]
=
=
=
=
1. The installation directory selected by the user will be created if it does not exist.
None of the installed programs and libraries will get a setuid ag.
2. The following scripts will be installed in /etc/init.d:
- [SS] lsb-cst-solverserver2014
- [MC] lsb-cst-maincontroller2014
- [LS] lsb-cst-flexlm2014
and symlinks into the /etc/rcN.d directories for N = 3,4,5 will be created according
to the usual Linux startup procedure depending on the features selected for installation. Note that you can switch the services on and o with the Red Hat service
tool.
3. For menu entries and icons the following les will be written:
- XDGDATA/applications/cst/*.desktop
- XDGDATA/desktop-directories/cst-studiosuite2014.directory
- XDGDATA/pixmaps/cst-*.png
- XDGDATA/icons/hicolor/16x16/apps/cst-*.png
- XDGDATA/icons/hicolor/24x24/apps/cst-*.png
- XDGDATA/icons/hicolor/32x32/apps/cst-*.png
- XDGDATA/icons/hicolor/48x48/apps/cst-*.png
- XDGDATA/icons/hicolor/scalable/apps/cst-*.png
- XDGCONFIG/menus/applications-merged/cst-studiosuite2014.menu
where XDGDATA and XDGCONFIG depending on whether the superuser or a normal user
performed the installation:
27
Name
XDGDATA
XDGCONFIG
root install
/usr/share
/etc/xdg
user install
/.local/share
/.config
28
B.1
Debian 6 (64-bit)
B.2
29