This document describes the steps to perform to install ProLinga System Builder version 0.0.1 binary RPM packages on the Mandriva Linux 2008.1 platform and is intended for the following product releases:
If you are on a different release, please go to the matching installation page. This document is written for the i586 architecture. If you use Mandriva Linux on a different architecture, you have to replace the i586 with your arch notation.
At the moment, the contents of the 4GL application repository will be overwritten when upgrading an existing prolinga-repository installation. To move your applications to the new version, you first have to unload them from the repository. To do so, download this Repository Command and change the Application attributes stock to the name of your application. Then run the following command:
$ /usr/bin/prolingarepexec --in /home/backup/appn_dump.xml --out /home/backup/myAppn.xml
This will create a file containing all the objects of your application. Repeat this process for all your applications.
After upgrading your application, you can load your application on a similar way. Open the file myAppn.xml and in the Command element in the beginning of the file replace Name="Get" with Name="Put" and replace Mode="Response" with Mode="Request". After that run the following command:
$ /usr/bin/prolingarepexec --in /home/backup/myAppn.xml --out /home/backup/output.xml
Repeat this for all your applications. An automatic upgrade feature will be implemented in following releases. It is good practise to periodically archive your application this way. Physically, the repository lives in /share/prolinga/system and the file name is system.
ProLinga products are built around numerous open source packages. Most of these packages like libxml2 or libglade are part of the major standard Linux distributions. When trying to install the ProLinga RPMS, a messages will appear if a dependent 3rd party package is not available. In that case you can get the missing package from your distribution CD or you can download it from the web and install it on your machine.
A couple of packages that should be mentioned are:
These packages are not distributed by Xobas Software, but you can get them by running 'urpmi' as root user. Alternatively, you can download them from a Mandriva Mirror Download Server or you can use one of their other mirrors closer to your (download) location.
There are a couple of packages that are not shipped with Mandriva 2008.1 Linux distribution that ProLinga projects rely on. They are:
The required packages have been compiled and built in-house and are availabe as RPMs at http://download.xobas.net/prolinga/linux/mandriva/2008.1. Download these packages for your architecture and install the packages in this order:
You do not need the -devel- packages for a successful ProLinga installation. You do need however to have root privileges to install the RPMs.
Although access to many different databases is available through libgda technology, only PostgreSQL and MySQL have been verified to work at this stage. Instructions of how to prepare a PostgreSQL and MySQL database are given in the next two sections.
A correctly configured PostgreSQL database should be running on your system. For PostgreSQL specific installation and configuration issues, visit the Web Site of PostgreSQL for any help, as this falls outside the scope of this document. You can check if PostgreSQL is installed by typing the following at the command line:
$ rpm -qa | grep postgres
This should return at least the entries postgresql and postgresql-server.
The daemon can started by typing:
# /sbin/service postgresql start
as root user from the command line.
Set a password for the user postgres.
Some configuration files have to be modified. Go to the directory "/var/lib/pgsql/data" and edit file pg_hba.conf. Add the following line if not already there:
host all all 127.0.0.1/32 trust
This enables the Postgres client to connect to the localhost.
In the same directory edit the file postgresql.conf, search for the string client_min_messages and add a line like this:
client_min_messages = warning
Messages of the type NOTICE must be avoided (libgda issue). Make sure the line is not commented out (#).
After these changes, you have to restart the postgresql daemon by typing:
# /sbin/service postgresql restart
The default ProLinga installation uses a demo database called stock. To create this database in postgresql, logon as user postgres (or su - postgres) and type:
$ createdb stock
You should get a response "CREATE DATABASE" indicating that the database creation was successful.
The default ProLinga installation uses a database user called prolinga. To create this user in postgresql, logon as user postgres and type:
$ psql stock
At the psql prompt type:
stock=# CREATE USER prolinga;
Exit psql.
stock=# \q
Double check if you can logon to postgres now as the prolinga user. From the command line type:
$ psql -hlocalhost -U prolinga stock
If you now type
stock=> \l
you should see the database stock among others (if any).
For more PostgreSQL specific details, please check their documentation at http://www.postgresql.org.
A correctly configured MySQL database should be running on your system. For MySQL specific installation and configuration issues, visit the Web Site of MySQL for any help, as this falls outside the scope of this document. You can check if MySQL is installed by typing the following at the command line:
$ rpm -qa | grep mysql
This should return at least the entries mysql, mysql-client and mysql-common.
The daemon can started by typing:
# /sbin/service mysqld start
as root user from the command line.
No additional changes of MySQL configuration files is needed as a default installation works correctly.
To create the database in MySQL, logon to mysql client as the database administrator user (by default is this user root) and type:
$ mysql -h localhost -u root -p mysql
The database can then be created as follows:
mysql> CREATE DATABASE stock;
If this step went OK, you will see a result as follows:
Query OK, 1 row affected (0.06 sec)
The user can be created as follows:
mysql> GRANT ALL ON stock.* TO 'prolinga'@'localhost';
In this example setup the user is given all privileges for the stock database. In production environments, stricter security measures should probably apply.
For more MySQL specific details, please check their documentation at http://www.mysql.com.
ProLinga System Builder uses gnome-db (libgda) technologies to connect to data providers as PostgreSQL and MySQL. To be able to connect to a database, a Data Source needs to be created that holds details as database name, user name, tcp port etc. The easiest way to create this is to run the gnome-db utility gnome-database-properties-3.0 that comes as part of the libgnome_db package. Make sure you run this application as the user that will run the ProLinga environment, or for ProLinga Networked configurations, the user that started the prolingadatd daemon. Go to the command line and type:
$ gnome-database-properties-3.0
This brings up the gnomedb database properties tool. Click on the tab Providers and check that your data provider (PostgreSQL or/and MySQL) is in this list. If they are not in the list, go a bit back in this document and double check that you have installed all the libgda and libgnomedb packages as required.
Click on the tab Data source where you will see a list of configured data sources. If this is the first time you run this tool, this list is probably empty or contains just a Default entry.
Go to pulldown menu Data source and click New Data source. This will start a druid that guides you through a series of screens to collect all the data needed. Click Forward. On the screen General Information, enter the following details to create a data source to run the ProLinga demo application stock:
Click Forward. Do NOT select the checkbox 'Create a new database', but leave it empty and click Forward. Fill out the fields on screen Provider Parameters as outlined below. Where no data is given, leave the field blank.
The values for PostgreSQL
The values for MySQL
Click Forward and then Apply to confirm all changes and to create the Data Source.
You can now test if the newly created data source works OK. In the main screen where all data sources are listed, select the new data source stock. Go to pulldown menu Data source and click Properties. You should see here all the details you just entered. Click on the button Test. A new screen comes up, titled Login for stocksql. Press the Connect button. If all is OK, you should get a message "Connection successfully opened". Press OK to confirm that message. To further check, press the Browse button and all tables of the database will be listed. If your database does not contain any tables yet, you will see an empty screen. If you get any type of error, something went wrong while creating the data source. Go back in this document and try again.
ProLinga products can be setup and compiled in many different ways. For the binary (RPM) distribution, the following installation types are available:
The stand-alone installation is very straight forward. Please download and install the packages (as root user) in this order:
Please double check that you pick the sa version of prolinga-run and not the net version. Now you are ready to start ProLinga System Builder. Please make sure that the first time you run the product you are NOT a root user, since cache and log files will otherwise get wrong privileges. This will be fixed in further releases.
Go to your home directory and type:
$ prolinga
If all went well, you will see the ProLinga logon screen. You can enter the application on 3 different levels:
To build the database tables parts and groups of the demo application stock, open this application in developer. Then click on the button Table on the tool palette, open the table, click on the Data Manager tab and press the Build Database Table button. This will build an empty table in your database. After building the tables, you can now go back to the ProLinga logon screen and run stock as end-user guest and you should be able now to enter data into the database.
Enjoy!
With an enterprise installation, the various ProLinga components can be setup as Web Services on one or more machines.
Download and install the packages on the machine that you want to host the application repository in this order (as root user):
Check the values in configuration file /etc/prolingarepcfg.xml
Download and install the packages on the machine that you want 4GL validation to take place (most likely application server) in this order (as root user):
Check the values in configuration file /etc/prolingavalcfg.xml
Download and install the packages on the machine that hosts your database or where your database client is installed in this order (as root user):
Check the values in configuration file /etc/prolingadatcfg.xml
Download and install the packages on all the machines that needs to connect to the ProLinga environment (either developer user as end-user) in this order (as root user):
Check the values in configuration file /etc/prolingaruncfg.xml
Download and install the packages on the machine that you want being the application server to provide access to Web Server etc in this order (as root user):
Check the values in configuration file /etc/prolingaruncfg.xml
Download and install the packages on the machine that runs your Web Server (Apache for instance) to provide browser access to 4GL logic in this order (as root user):
Check the values in configuration file /etc/prolingawebsvc.xml