The page contains an example of installing and setting up BI server on Sintez-OS.WS.
NOTE. BI server functionality is limited by the set of available operations and their implementation.
In this article:
Setting Up Library Search Directories
Installing and Setting Up httpd Services to Work with BI Server
Execute preparatory actions before BI server installation:
Make sure that the operating system is set up and hardware and software requirements are met for correct installation and full-functional work of the Prognoz Platform 9 web application.
Set up DBMS back end.
Using the Prognoz Platform desktop application on Windows OS, create a metadata repository, security subsystem service user and set up repository connection. Before setting up it is recommended to study the Installing Prognoz Platform 9 Desktop Application section.
Install DBMS front end.
Working with Prognoz Platform 9 BI server requires installation of third-party packages that can be downloaded from the internet or from DVD repository or from built-in RPM packages. If internet connection is provided via proxy server, determine the required connection settings.
The correct BI server performance requires an installed set of Qt libraries 4.8.x. The libraries can be installed by one of the methods:
Download from open sources and install the package QtSdk-offline-linux-x86_64-v1.2.1.run. Before installation make sure that the source of download is reliable, and that the package contains the appropriate version Qt 4.8.x.
Connect the repository containing the version Qt 4.8.x and execute installation from it.
Manually build and install according to the steps described below.
Consider the example of a manual build of Qt 4.8.7 from source files and setup of Prognoz Platform to use this build.
Download an archive with source codes of Qt 4.8.7:
wget https://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
Install the required setup packages:
sudo yum install gcc-c++ libX11-devel libXext-devel libXtst-devel libGLU-devel libxcb libxcb-devel xcb-util xcb-util-devel perl-version
Set the required dependent titles:
sudo yum install freetype-devel fontconfig-devel libmng-devel cups-devel dbus-devel libicu-devel glib2-devel libXrandr-devel libXv-devel libXrender-devel libXcursor-devel libXinerama-devel libpng-devel libtiff-devel libSM-devel mesa-libGL-devel libXi-devel
Unpack the downloaded archive and go to the new directory:
tar zxf qt-everywhere-opensource-src-4.8.7.tar.gz
cd qt-everywhere-opensource-src-4.8.7
Configuration and build (OpenGL, freetype2 are required; additional parameters of the Qt 4.8 build: http://doc.qt.io/qt-4.8/configure-options.html):
./configure -confirm-license -prefix /opt/Qt-4.8.7 -opensource -release -fast -xmlpatterns -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -svg -no-webkit -script -platform linux-g++-64 -system-zlib -system-libtiff -system-libpng -system-libjpeg -no-rpath -optimized-qmake -dbus-linked -reduce-relocations -verbose -no-gtkstyle -no-openvg -lfontconfig -I /usr/include/freetype2 -qvfb -icu -no-sql-ibase -no-sql-sqlite2 -no-sql-db2 -no-sql-oci -no-sql-tds -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-mysql -no-qt3support -opengl desktop -no-egl -cups -shared -largefile -no-separate-debug-info -sm -stl -system-libmng -xinput -xcursor -xfixes -xinerama -xshape -xrandr -xrender -xkb -glib -nomake examples -nomake tests -nomake docs -nomake demos
gmake -j4
sudo gmake install
NOTE. The specified configuration is an example and can be changed if required. If the message appears: "Tablet and Xinput support cannot be enabled due to functionality tests! Turn on verbose messaging (-v) to ./configure to see the final report. If you believe this message is in error you may use the continue switch (-continue) to ./configure to continue." - it is required to replace the -xinput build configuration flag with the -no-xinput flag.
The following items are optional and can be used if it is required to build Qt in other configuration or remove the earlier installed version.
The following dependencies may be required on other assembly parameters:
sudo yum install mysql-devel unixODBC-devel postgresql-devel sqlite-devel pulseaudio-libs-devel alsa-lib-devel gtk2-devel
Execute the commands to clear the build folder:
gmake confclean
gmake clean
To delete the build, execute the command:
sudo gmake uninstall
If the build is running not at the BI server, Qt can be transferred to it by packing the archive to the directory /opt/Qt-4.8.7, and then unpacking it to the archive at the BI server to the same directory and adding the path to ldconfig libraries. The alternative option is to pack the archive to RPM by means of the "checkinstall" utility, but the path to ldconfig libraries must be added at the installation server.
To add Qt library and Prognoz Platform search directories, execute the commands:
cd ~
echo > qt-x86_64.conf "/opt/Qt-4.8.7/lib"
sudo rm /etc/ld.so.conf.d/qt-x86_64.conf
sudo cp qt-x86_64.conf /etc/ld.so.conf.d/
sudo ldconfig
NOTE. If Qt was installed from the QtSdk-offline-linux-x86_64-v1.2.1.run package, replace the path to /opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib.
To install BI server, execute the following operations:
Copy a *.tar.gz archive with Prognoz Platform 9 BI server installation files to the home directory.
Unpack the archive to the /opt/foresight/9.0 directory by executing the following commands in the terminal:
sudo mkdir -p /opt/foresight/9.0
cd /opt/foresight/9.0
sudo tar xvfz ~/<Prognoz Platform 9 archive name>.tar.gz
cd /opt/foresight/9.0/bin
sudo chmod +x axis2_start.sh
Copy the license file to the directory with installed Prognoz Platform and execute activation:
cp ~/lservrc /opt/foresight/9.0/bin
cd /opt/foresight/9.0/bin
sudo ./initdemo
NOTE. The axis2_start.sh script is required to check if system basic settings are correct and to debug; this script cannot be used for commercial purposes. Replace the string "export LD_LIBRARY_PATH=:/opt/foresight/9.0/bin:/opt/Qt-4.8.7/lib:$LD_LIBRARY_PATH in the script and uncomment "export PPLOG=1".
sudo yum install mesa-libGL mesa-libGLU libgomp libpng libjpeg
sudo yum install httpd
sudo yum install postgresql-server postgresql-contrib postgresql
sudo ln -s /usr/lib64/libpq.so.5 /usr/lib64/libpq.so
sudo yum install xorg-x11-server-Xvfb
After this install and set up httpd services.
This article describes installing and setting up of httpd services for working with BI server on Sintez-OS.WS. It is recommended to set up virtual display xvfb before the installation.
To install and set up httpd services to work with BI server, execute the following operations:
HTTPD=/usr/sbin/httpd.worker
## Prognoz Platform
export WSFCPP_HOME=/opt/foresight/R90/bin
export LD_LIBRARY_PATH=$WSFCPP_HOME:/opt/Qt-4.8.7/lib:$LD_LIBRARY_PATH
export TNS_ADMIN=$WSFCPP_HOME
# Uncomment line below to export extended log
#export PPLOG=1
export HTTPD_LANG=en_US.UTF-8
export DISPLAY=localhost:987
export LD_PRELOAD=/opt/Qt-4.8.7/lib/libQtGui.so.4
export LSFORCEHOST=NO-NET
NOTE. The specified example uses the Qt 4.8.7 version. If OS contains another version, correct the specified strings by specifying corresponding version of Qt. For example, if Qt is installed from QtSdk-offline-linux-x86_64-v1.2.1.run package, replace the path /opt/Qt-4.8.7/lib to /opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib. Specify the number of the display server, on which graphics is rendered, in the DISPLAY environment variable. It is recommended to use the virtual display xvfb No. 987, but if the physical X server is used, specify its number DISPLAY=:0.0.
<IfModule worker.c>
ServerLimit 1
StartServers 1
MaxClients 64
MinSpareThreads 32
MaxSpareThreads 64
ThreadsPerChild 64
MaxRequestsPerChild 0
</IfModule>
CoreDumpDirectory /tmp
## Prognoz Platform
# Uncomment line below if use httpd 2.2
LoadModule axis2_module "/opt/foresight/R90/bin/libmod_axis2_2_2.so"
# Uncomment line below if use htppd 2.4
#LoadModule axis2_module "/opt/foresight/R90/bin/libmod_axis2_2_4.so"
Axis2RepoPath "/opt/foresight/R90/bin"
Axis2LogFile "/opt/foresight/R90/bin/logs/axis2.log"
Axis2LogLevel info
Axis2ServiceURLPrefix services
<Location /axis2>
SetHandler axis2_module
</Location>
sudo chkconfig httpd on
SELINUX=disabled
NOTE. SELinux is disabled for illustrative purposes. The setup of security subsystem for working with Prognoz Platform 9 BI server must be executed by the system administrator.
Then set up xvfb. The graphics setup example is given in the Outputting Graphics via xvfb Virtual Display subsection.
Restart the httpd service:
sudo service httpd restart
Check performance of the BI server installed in httpd by the URL in the browser: http://localhost/axis2/services/. A page with the list of BI server operations should open (see the Checking BI Server Performance section).
BI server uses settings specified in the settings.xml file. See its structure and make modifications if required.
NOTE. A file with settings is optional. If the file is absent, default parameter values are used.
To get information about repositories to work with, BI server uses the registry.reg or Metabases.xml file. For details about setting up these files, see the Configuration and Setup article.
All additional files used by BI server must have access permissions for an Apache HTTP Server user:
sudo chown -R apache:apache /opt/foresight/pp9.0-biserver
After determining settings and granting permissions restart BI server service:
sudo service httpd restart
Check BI server performance.
The installed BI server will work in background as a separate Linux service. The Apache2 instance with BI server starts on the 88xx port, where xx corresponds to the minor version of the Prognoz Platform release.
After installing and setting up BI server, proceed to the web application back end installation.
See also:
Installing Web Application on Linux OS | Installing and Setting Up httpd Services to Work with BI Server