The SLIC detector simulation package requires the setup of 7 different pieces of software. This guide is intended as a step-by-step walkthrough of installing all these packages from scratch in the Windows Cygwin environment.
It presumes nothing except a working Windows machine with internet access.
Preliminaries
Cygwin
- Download www.cygwin.com/setup.exe from the www.cygwin.com.
- Double-click on it.
- Click Next.
- Select Install from Internet.
- Click Next.
- Enter your preferred Root Directory.
- Click Next.
- Enter your preferred Local Package Directory, which can be the same as the Root Directory.
- Click Next.
- Select Direct Connection if it is not already.
- Click Next.
- Select a site from the Available Download Sites. Servers inside your country will probably be fastest. I use ftp://ftp.sunsite.utk.edu.
- Click Next.
- In the Cygwin Setup - Select Packages window, you need to make sure that the following tools are selected by clicking in the corresponding box under the New column until you see a version number.
- Devel -> cvs
- Devel -> gcc-core
- Devel -> gcc-g++
- Base -> gzip
- Base -> tar
- The wget tool is also useful for downloading package tarballs and zip files.
- Web -> wget
- Click Next after you have selected the packages.
- Cygwin will now automatically download and install all the selected packages. It might take awhile, so now is the time to go get some coffee.
- If desired, select Create icon on Desktop or Add icon to Start Menu.
- Click Finish.
Testing the Cygwin Command Line Tools
- Select Start Menu -> Cygwin -> Cygwin Bash Shell
- Type cvs.
- The usage should be shown.
- Type g++.
- It should say "no input files".
Java
Work Area
We will install all packages into a common work area.
- From the Cygwin shell, create a work directory for SLIC and its external dependencies.
cd /cygdrive/c mkdir sim cd sim
- Create the file setup.sh with the following contents. (We will be adding to this file as the installation proceeds.)
#!/bin/sh export sim_work=/cygdrive/c/sim
You are now ready to begin the package installations.
Leave your Cygwin window open, as you will be using it throughout the installation.
Package Installations
CLHEP
- Download the CLHEP tarball.
wget http://cern.ch/clhep/clhep-1.9.2.0.tgz
- Unzip to your work directory.
tar zxvf clhep-1.9.2.0.tgz
- Change to CLHEP directory.
cd 1.9.2.0/CLHEP
- Run configure.
./configure
Geant4
- Download the Geant4 tarball.
wget http://geant4.cern.ch/geant4/source/source/geant4.7.0.p01.tar.gz