Full source installation  

       ... If binary installation cannot work, try this.

For the full source installation, you need to install followings:

Change directory to your working directory and then

Cygwin (for Windows user)
              If you use Windows, you need to install Cygwin on your computer, to compile LCDROOT.

ONCRPC (for Windows user)
              If you use Windows, you need ONCRPC to compile STDHEP.

  1. Copy and unpack tar.gz file under working directory.
  2. cd oncrpc/librpc
  3. gmake -f GNUmake
STDHEP 
We need STDHEP version 4.09 or later. Please re-compile sith PIC option.
Or, can simply follow
  1. Copy and unpack tar.gz file under working directory.
  2. cd stdhep-4.09 and type
    . setup.sh             (for sh / bash users)      or       
    source setup.csh  (for csh / tchs users)
  3. cd src and gmake
    (or make -f GNUmakefile.win32 for Windows
    and you must have DEC Visual Fortran 5.0 or later)
SIO2root_common 
This is the package to handle SIO data.
Copy and unpack tar.gz file under working directory.
ZLIB package
If you already have libz.so, you do not need the followings. libz is required by SIO.

(For Unix Users)

  1. Copy and unpack tar.gz file under working directory. cd zlib-1.1.3  and Type the following command:
    ./configure 
  2. Edit Makefile : put the position-independent-compiling-option flag in CFLAGS
     --->  Add   -fPIC (for gcc)   or  -KPIC (for Sun CC5), etc ...   in CFLAGS
  3. Type   gmake install

(For Windows Users)

  1. Copy and unpack tar.gz file under working directory. 
  2. cd zlib-1.1.3
  3. cp nt/Makefile.nt .
  4. cp nt/zlib.dnt .
  5. nmake -f Makefile.nt
PANDORA
PANDORA is the main generator for LCD study. Please install by followings:
  1. mkdir  pandoraV2.2   under working directory.
  2. Copy and unpack tar.gz file under the pandoraV2.2 directory
  3. Download a patch file and apply it:
    • cd pandoraV2.2
    • patch -p1 < ../pandora22-20011004.patch
PANDORA_PYTHIA
PANDORA_PYTHIA is the interface to PANDORA.
Copy and unpack tar.gz file under working directory.
XML4C
XML4C is IBM's XML for C++ parser.
This program is required to make detector geometry from XML-detector-geometry file for GEANT4.
The source and binary file can be obtained from here.
CLHEP
CLHEP is intended to be a set of HEP-specific foundation and utility classes such as random generators, physics vectors, geometry and linear algebra.
CLHEP is required to compile GEANT4.
The source file can be obtained from here.
  1. Copy and unpack tar.gz file under working directory.
  2. cd CLHEP and run configure shell.
    ./configure or ./configure --prefix=$HOME, or ...           
  3. edit Makefile
    put position independent compile option flag in CXXFLAGS.
    CXXFLAGS=.. -fPIC (for gcc)
    CXXFLAGS=.. -KPIC (for Sun CC5)
  4. Type   gmake install
  5. cd "where CLHEP library is installed"
  6. Type   ln -s libCLHEP-XX.1.7.0.0.a libCLHEP.a
GEANT4
GEANT4 is a toolkit for the simulation of the passage of particles through matter.
The source file can be obtained from here.
  1. Copy and unpack tar.gz file under working directory.
  2. Set up various GEANT4 related environment variables. Here is an example.
  3. cd geant4.4.0/source
  4. Type   gmake install
  5. Type   gmake includes
LCDROOT V3.5
Now you finally achieve here.
  1. Make sure root (or root.exe) executables is in your PATH.
  2. Copy and unpack tar.gz file under working directory.
  3. check the following environment variables:
    ROOTSYS
    LD_LIBRARY_PATH

    (For Windows user: ROOTSYS should be written in Windows PATH name, like 'C:\root'.)
  4. Type the following command and make sure 
    ./configure --help
    then type
    ./configure <arch> (<arch> should be same as your root compiled flag)
  5. Type gmake

  T.Abe & M.Iwasaki  Last Modified: 01/13/04 12:47