Standalone ORCA installation

Prepare the PC for Linux installation

I have Windows installed. I don't want to destroy it.
To solve this , you do a dual boot installation of Linux. But ,unfortunately this will make your installation a lot more difficult. You can't just start with the Linux CD; you have to prepare the hard disk by creating the partitions necessary to safely run both systems. Just to save your mental sanity, it is better to spend a few $ and use (on Windows) the program Partition Magic. But before using this you have to understand a few peculiarities of the hardware:

Defined partitions

nametypesize(MB)Comments
hda1NTFS3059Primary active
hda4Extended2125Primary divided in two logical partitions hda5 with /boot(101) and hda6 swap area for Linux(2023)
hda2FAT509Primary : swap partition for Windows
hda3Linux Ext23611Primary : here / is mounted
Note the small physical partition in the first 1024 cylinders introduced to make the boot possible.

Install Linux (RedHat6.1)

Normally at this point you should have Linux working including X and the network. Unfortunately the RH6.1 is rather old and wan't install some modern devices: in my case the network and the video card.

Installation by hand of the network

Installation by hand of the X server

Once you have the network and the X server working, you still need some other software.

Installation of afs

Installation of ssh

Download Cern and CMS software

It is difficult to understand where to put everything. For this reason I start by running OrcaVisMain on lxplus and saving the result of printenv and the result of scram runtime -csh.
Main download done from here.This directory contains also some instructions and a shell script to define the CMS environment variables. From this documentation we understand that we are installing: At this point we can start the SCRAM installation using these instructions
The last part was done using this document. Note that this installation assumes that files are loaded in some directories that can be different from those of the previous step!Also, all these operations where normally done as root.

Copy Objectivity data base

The ORCATEST federation lxcmsc2::/datab/ORCA_5_2_0/myoofd/ORCATEST.boot unfortunately isn't directly accessible from normal users (without access to lxcmsc2). Also,for some reason, the federation is unusable from outside Cern: you can get oodumpcatalog working OK but ORCA will stop when an attempt is done to access objects:it looks like as the names of the files having only "lxcmsc2" and not "lxcmsc2.cern.ch" wan't allow the file to be accessed outside from cern. So I had to find a lxplus computer with enough space in /tmp :13 Giga wich is the federation size. Then I gave the command:
oocopyfd 
This would copy all the federation on the scratch disk. I could then ftp everything on my computer but I can't keep the space enough to do the copy that required a few days. So I saved everything on castor with
rfcp nomefile /castor/cern.ch/user/g/gzito/
The ftp was done in the following days by staging back the saved files.
When all files have been transferred you give the command:
 ooinstallfd -lockserverhost pcba10.ba.infn.it -fdfileost pcba10.ba.infn.it -fdfilepath /data/orcatest/ORCATEST.FDDB -dbdirhost pcba10.ba.infn.it -dbdirpath /data/orcatest/ -jnldirhost pcba10.ba.infn.it -jnldirpath /data/orcatest/ /data/orcatest/ORCATEST.boot   
Of Course now you have to run a lockserver and AMS to access the database. This is done with oocheckls/oolockserver and oocheckams/oostartams run as root all the time. Apparently you have also to modify by hand the boot file replacing "pcba10" with the complete name "pcba10.ba.infn.it" in a single line. After that change the federation can be accessed by anyone with the adress: pcba10.ba.infn.it::/data/orcatest/ORCATEST.boot.

Make ORCA run

This part is in principle very easy. You try to run one of the downloaded binaries OrcaVisMain.You get usually a lot of missing shared libraries. Then you use the ldd OrcaVisMain command in Cern to find out where the missing library should be. At this point you can have two possibilities : Specifically:
I had also to define "OIVHOME" otherwise Open Inventor wouldn't work.
Since I work with tcsh I modify the file /etc/csh.login and ~/.login to define the environment variables. Unfortunately one of the installed programs (afs) would modify also /etc/csh.cshrc creating a PATH that would get bigger and bigger as you created more terminals.
I was able to run OrcaVisMain by running the standard testfed.csh with only one added line:
setenv GEANEUSED TRUE
Before running this I define some environment variables with this script given in the distribution with rpm. This is instead the result of running scram runtime.
A small reflection on how big ORCA is: ldd lists 180 shared libraries used!When you run it, you see its memory size grow and grow to up 1Giga! This means that you need a lot of central memory, otherwise the program will do a lot of swapping.
At last, first IGUANA image of rpc built on my computer

Make Orca compile

Now I repeat the procedure done many times in Cern:
project ORCA
scram project ORCA ORCA_5_4_3
cd ORCA_5_4_3/src
cvs co -r ORCA_5_4_3 Visualisation
cd Visualisation
scram build
cd Visualisation/OrcaVis/test
scram build bin
Unfortunately the scram build produces only error messages. Where is the makefile? How is built? Everything is in the hands of SCRAM and I don't have a clue. Anyhow these are some of the files that seem to be used in building the Makefile:

The nightmare continues with security updates and new versions upgrades

Unfortunately installation doesn't end here but continues with security updates(when some security problem is discovered in the kernel or other software) and new versions upgrades. These are necessary since the old version have no more support for security and become more and more vulnerable to hacker attacks.
So ,here I am, after a year still with Red Hat 6.1 and I must absolutely upgrade to Red Hat 7.3.2
What this implies.
Page author Giuseppe Zito: zito@ba.infn.it
Last update: