1 |
Install procedure 1.1 - Nagni 11 May 2004 |
Install procedure 2.x - Nagni 15 February 2005 |
2 |
|
|
3 |
To install YODA: |
To install YODA: |
4 |
|
|
7 |
#-----YODA's Environment----------------------- |
#-----YODA's Environment----------------------- |
8 |
# this variable define where YODA will write the managed files |
# this variable define where YODA will write the managed files |
9 |
export YODA_DATA= YourPathToStoreUnpackedFiles |
export YODA_DATA= YourPathToStoreUnpackedFiles |
|
export YODA_LOGS= YourPathToLogs |
|
10 |
#-----YODA's Environment----------------------- |
#-----YODA's Environment----------------------- |
11 |
|
|
12 |
#-----Cern's ROOT Environment----------------------- |
#-----Cern's ROOT Environment----------------------- |
16 |
#-----Cern's ROOT Environment----------------------- |
#-----Cern's ROOT Environment----------------------- |
17 |
|
|
18 |
2) check that you have installed |
2) check that you have installed |
19 |
---->log4cpp (logger for c++ programs) |
---->log4cxx (jakarta logger for c++ programs) |
20 |
---->g77 (GNU FORTRAN Compiler) |
---->g77 (GNU FORTRAN Compiler) |
21 |
---->LIBTOOL (compiler utility) |
---->LIBTOOL (compiler utility) |
22 |
|
|
23 |
3) create a directory (say YOUR_YODA) and copy the source into it |
3) create a directory (say YOUR_YODA) and copy the source into it |
24 |
|
|
25 |
4) from LIBTOOL directory copy into YOUR_YODA the following files |
4) execute the following commands (please customize the ./configure line according to your system) |
|
|
|
|
config.guess |
|
|
config.sub |
|
|
ltmain.sh |
|
|
|
|
|
5) execute the following commands |
|
26 |
|
|
27 |
$ cd $YODA_ROOT |
$ cd $YODA_ROOT |
28 |
|
$ autoheader |
29 |
|
$ libtoolize (eventually "libtoolize --force") |
30 |
|
$ export CFLAGS="-g -O4" |
31 |
|
$ export FFLAGS="-g -O0 -keepC" |
32 |
|
$ export CXXFLAGS="-g -O4" |
33 |
$ aclocal |
$ aclocal |
34 |
$ automake -a |
$ automake -a |
35 |
$ autoconf |
$ autoconf |
36 |
$ export CXXFLAGS="-g" |
$ ./configure --prefix=/path/where/you/want/to/install --with-log4cxx=/opt/log4cxx --enable-gprof=no |
37 |
|
$ make |
38 |
|
|
39 |
that a look at the configure options |
that a look at the configure options |
40 |
$ ./configure --help |
$ ./configure --help |
41 |
|
|
|
if you want to install executable in the same directory of source code |
|
42 |
$ ./configure |
$ ./configure |
43 |
|
|
44 |
|
$ make |
45 |
|
|
46 |
else |
then became ROOT user to install YODA |
|
$ ./configure --libexecdir=yourDirectory |
|
47 |
|
|
48 |
and finally |
$ make install |
49 |
$ make |
|
50 |
|
if everthing has been correct typing |
51 |
|
|
52 |
|
$ yoda |
53 |
|
|
54 |
|
the program should reply something like below |
55 |
|
|
56 |
|
You have forgotten the file name. |
57 |
|
Try '--help' for more information. |
58 |
|
|
59 |
|
|
|
------>NOTE<------ |
|
|
This procedure will generate the code in the same directory YODA |
|
|
sources has been copied. |
|
|
The executable file name is techmodelreader and it's located in |
|
|
TECHMODEL directory. |
|
|
To make yoda available using just the command "yoda" from every location |
|
|
just making a softlink to techmodel/.libs/techmodelreader in /usr/bin |
|
|
directory (root privileges are needed!) |
|
60 |
|
|
|
ln -s techmodel/.libs/techmodelreader /usr/bin/yoda |
|
61 |
|
|
62 |
|
------>NOTE 1<------ |
63 |
|
On the source code is supplied also a tipical configuratin file for the Log4cxx tool. |
64 |
|
The file is named log4cxx.conf and is designed to be put into the YODA_DATA directory. |
65 |
|
Notice that to set the output detail level you have to modify the log4cxx.conf |
66 |
|
according to your needs. |
67 |
|
|
68 |
|
------>NOTE 2<------ |
69 |
|
Because of major changes in ROOT, Trees produced with a version of ROOT greater than 4.01/02 |
70 |
|
cannot be read by older ROOT versions. |
71 |
|
|
72 |
|
------>NOTE 3<------ |
73 |
|
If you are doing an upgrading is highly recomended to uninstall your previous version. |