Report on the installation of root and vega on ax3
(with the new version of the O.S. and compilers).
1) I unwrapped root in /scratch/virgoTest/root/v3.00
2) I created a cmt directory with the following requirements file
................................................................
package root
version v3.00
set ROOTSYS $(ROOTROOT)
.................................................................
3) I have configured root with the following options
.................................................................
./configure alphacxx6 --enable-rpath --prefix=/scratch/virgoTest/root/v3.00
--bindir=/scratch/virgoTest/root/v3.00/OSF1
--libdir=/scratch/virgoTest/root/v3.00/OSF1
--etcdir=/scratch/virgoTest/root/v3.00/etc
.................................................................
The important things to note are the alphacxx6 argument (which
selects the right configuration file), the --enable-rpath option,
which sets the "-rpath" (location of the shared libs stored in
the executables) and the location of the bindir, libdir (for
Virgo compatibility) and etcdir (for avoiding writing in /etc)
4) In the compilation, I encountered two small problems, due to
the fact the "statfs" dans "fstatfs" were redeclared in the root
code in a mode slightly different from the system includes (
(without "inline"). I just remove these redeclarations and
everything went fine.
5) In the "gmake install" step, there were script interpretation
errors. I solved them by forcing the SHELL variable in the
Makefile to /bin/ksh (in fact, I used a personal bash shell
instead).
6) I went on to take care of vega. I created a cmt directory with
the following requirements :
.................................................................
use Fr v4r22 /scratch/virgoTest
use root v3.00 /scratch/virgoTest
alias vega ${VEGAROOT}/${UNAME}/vega
set VEGA ${VEGAROOT}
.................................................................
7) I used the Makefile.osf1.cxx6 with slight modifications. Here
is the diff file:
.................................................................
8c8
< SRCFR = /virgoApp/Fr/v4r02/src
---
> SRCFR = $(FRROOT)/src
10,12d9
< # Path to ROOT
< ROOTSYS = /virgoApp/root
<
26c23
< OBJD = ../OSF1
---
> OBJD = ../$(VEGACONFIG)
36,37c33,36
< LDFLAGS = -g
---
> LDFLAGS = -g
> -Wl,-rpath,$(VEGAROOT)/$(VEGACONFIG):$(ROOTROOT)/$(ROOTCONFIG)
.................................................................
These modifications consisted in
a) using the environment variables set by cmt instead of
hard-coded paths
b) cancelling the "ROOTSYS" definition (already done by cmt)
c) Forcing a "rpath" option for the shared libraries.
8) I modified also the "Make-macros" file in order to take
advantage of these environment variables.
9) I then compiled vega. I had a few compiler errors due to the
fact that some default values of arguments were repeated. I just
suppressed these values.
10) The net result of this installation is that one can now use
root and vega in a standard cmt context WITHOUT defining the
LD_LIBRARY_PATH variable.
Computers Network›Software Management
#1032