Omnis on Linux
Aus MHC-Wiki
HINT: Get root to do all this by "sudo -s" or if you have set a root password by "su -".
NOTICE: This is a very basic setup without the setup of the webclient for firefox !!
Inhaltsverzeichnis |
Get Omnis
Debian and Debian like sytems like Ubunut do not support rpm directly. RD sadly only provide rpm's, but these rpm's just create /usr/local/rainingdata/osXXX/osXXX.tgz - nothing else. Then you have to do the setup manually any way. Roumor goes around that RD will provide some day a installer for Linux too.
I recomend to get the tgz file by FTP, e.g:
wget ftp://ftp.omnis.net/Studio43/OmnisStudio/Development/Linux/Omnis-Studio-4.3.1.i386.tgz
Unpack tar archive
Assuming that Omnis-Studio-4.3.1.i386.tgz is located at /tmp do the following:
cd /opt tar xfz /tmp/Omnis-Studio-4.3.1.i386.tgz
Set correct permissions
Omnis (sadly) requires that all users can wirte to the installation folder. Set the correct permissions by:
cd /opt chmod -R ogu+rw os431
Start script
To get it running you need a start script. Do:
cat > /opt/os431/os.sh <<EOF #!/bin/sh LD_LIBRARY_PATH=/opt/os431:$LD_LIBRARY_PATH export LD_LIBRARY_PATH /opt/os431/omnis $1 $2 $3 $4 $5 $6 $7 $8 EOF chmod +x /opt/os431/os.sh
this is the minimum. you may need other environmentvaiables in this script set depending on what DBMS and what connecter you want to use. e.g. for oracle you need ORACLE_HOME etc. set. and perhaps you may need to extend LD_LIBRARY_PATH. you can do all this by simply editing /opt/os431/os.sh
Test it
Now you can start omnis by:
/opt/os431/os.sh
I recommend to do this on the commandline for the first start of Omnis. If libs are missing or some thing else went wrong you can see this on the commandline. I you start it by GUI you have to consult ~/.xsession-errors and this is less conviniet.
Create a menu entry
To create a menu entry do (this may not work on all distributions):
cat > /usr/share/applications/omnis.desktop <<EOF [Desktop Entry] Name=Omnis Studio 4.3 Comment=Omnis Studio 4.3 Exec=/opt/os43/os.sh Icon=/opt/os43/studio.png Terminal=0 Type=Application Encoding=UTF-8 Categories=Development;Application; EOF
Fine tuning
For me fonts omnis uses are far to large, plenty of space is wasted. I prefer the following settings in "omnisxi.ini":
IDEPointSize=9 SmallFontPointSize=8 MenuBarPointSize=9
I also recomend to set "idelistpointsize" in the Studio apperance properties to 9.
I've created a seperate page to illustrate the effect of setting these parameters.
Linux Distributions
Additional notes for some distributions
Ubunut 8.04
Ubuntu 8.04 requires an additional lib. Install it with:
apt-get install libstdc++5
Trouble shooting
Some times Omnis crashes at startup with a segmantaion violation. If you suffer from this problem you can use "strace" to track the problem down. To do so you have to do everything manually for the test. Open a shell and set the environment variables:
LD_LIBRARY_PATH=/opt/os431:$LD_LIBRARY_PATH export LD_LIBRARY_PATH
Now you can use "strace" to see all system calls Omnis uses while it starts up. With this information you can try to find out what causes the problem. Do:
strace /opt/os431/omnis >/tmp/trace.dat 2>&1
You should see no output. Start Omnis, just to crash it. Now you can have a look at the trace with:
less /tmp/trace.dat
Most likely you want to look at the bottom of the file and look at the last systemcalls which caused the problem.

