Re: installing root

From: Matthew D. Langston (langston@SLAC.stanford.edu)
Date: Mon May 24 1999 - 19:27:18 MEST


Hi Allister,

Allister Levi Sanchez wrote:
> 
> I'm trying to install ROOT (using binary) on a Pentium II 233 with Linux
> Mandrake 5.3.b  Also tried with RHL 5.2 and 6.0 ...

In addition to Rene's advice, you have two other options as well.  You
can install RPMs (probably the easiest thing to do), or you can build
the Autoconfed version of ROOT (also an extremely easy and trivial thing
to do).

Since you are running an x86 with RPM installed, you could just do the
following:

  $ rpm -ivh ftp://ftp.slac.stanford.edu/users/langston/egcs/libstdc++-1.1.2-1.i386.rpm

This will install the correct C++ runtime which ROOT needs.  Note the
"ivh" flags to ROOT - don't try the "Uvh" flags, which you are probably
use to (RPM won't let you use "Uvh" anyway).  If you "cut and paste" the
commands out of this e-mail, then you should be fine.

Then install ROOT:

  $ rpm -Uvh ftp://ftp.slac.stanford.edu/users/langston/root/root-2.21.08.04-1.i386.rpm

This will be enough for you to use ROOT (and note that this time you do
use the "Uvh" flags).

However, if you want to compile your own C++ code (e.g. to make your own
shared libraries) instead of just using CINT (ROOT's C/C++ interpreter),
then you must have egcs >= 1.1 installed as well.  I don't know which
version of egcs that Mandrake 5.3.b ship with, but you can easily find
out with the command `rpm -q egcs'.

If you have anything less then egcs 1.1, then you will have to install a
newer egcs as well.  This is easy:

  $ rpm -e egcs-objc
  $ rpm -e egcs-g77
  $ rpm -e egcs-c++
  $ rpm -e egcs
  $ rpm -Uvh ftp://ftp.slac.stanford.edu/users/langston/egcs/egcs-1.1.2-1.i386.rpm
  $ rpm -Uvh ftp://ftp.slac.stanford.edu/users/langston/egcs/egcs-c++-1.1.2-1.i386.rpm
  $ rpm -Uvh ftp://ftp.slac.stanford.edu/users/langston/egcs/egcs-g77-1.1.2-1.i386.rpm
  $ rpm -Uvh ftp://ftp.slac.stanford.edu/users/langston/egcs/egcs-objc-1.1.2-1.i386.rpm
  $ rpm -Uvh ftp://ftp.slac.stanford.edu/users/langston/egcs/libstdc++-devel-1.1.2-1.i386.rpm


Installing the ROOT RPMs (and the egcs RPMs if you have to) should take
you only a few minutes.  However, if you want to compile ROOT yourself
(i.e. if you wanted to keep your existing egcs installation intact) then
you may want to try my Autoconfed version of ROOT at
ftp://ftp.slac.stanford.edu/users/langston/root/root-2.21.08.tar.gz.
Building this version will take you about 30 minutes.

The ROOT source code in this package has not been changed from what you
get from ftp://root.cern.ch/root/ - it is still the vanilla version of
ROOT v. 2.21.08.  The only difference is that it has been repackaged in
the GNU style, i.e. with Autoconf, Automake and Libtool.  It builds just
like you would expect any standard GNU package to build, i.e. with the
following 4 commands:

  $ ./configure
  $ make
  $ make check
  $ make install

The advantage of this is that you do not need to install the binary
version of ROOT first, i.e. ROOT builds directly from the source code.

For more information, you can read the announcement of this package from
the RootTalk Digest at
http://root.cern.ch/root/roottalk/roottalk99/0699.html

It is important to note that this software is not yet officially
supported by the ROOT Team.  However, they are aware of my efforts to
add GNU Autoconf, Automake and Libtool support to ROOT.

This package should be considered beta, as it has not seen widespread
testing outside of SLAC.

--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
langston@SLAC.Stanford.EDU



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:33 MET