How to get the source code and setup your development area
The instructions below refer to
$prefix
which is the top of the Ganga area you are setting up.
For example
set prefix=~/ganga
and execute the following instructions below.
Using the shared installation (for example AFS):
mkdir -p $prefix/install
ln -s /afs/cern.ch/sw/ganga/external $prefix/external
cd $prefix/install
For listing available tags
export SVNURL=svn+ssh://svn.cern.ch/reps/ganga
svn ls $SVNURL/tags
For checking out particular tag ('Ganga-5-4-0')
svn co $SVNURL/tags/Ganga-5-4-0 5.4.0
Local installation:
There is a section on how to intall locally at
http://ganga.web.cern.ch/ganga/user/installation/
After completing this, Ganga might not run straight away, especially if the local system
contains newer versions of for example gcc and/or python.
The following steps were taken on a laptop running Gentoo with gcc 4.2.3 and python 2.5
- Remove any directories in the
$prefix/external
directory that contain software that is already installed locally.
If there are several instances of python installed side by side, for example through a local install of LCGCMT,
all the software that is removed from the external directory needs to be available for each instance of python.
- Remove any .pyc files from directories left in $prefix/external
To make running ganga easier.
- Copy /afs/cern.ch/sw/ganga/install/etc/ganga_setup.py to your machine
- create an alias in you shell startup script to
eval `python <somepath>/ganga_setup.py --version=<yourversion> --interactive --experiment<yourexperiment> <sh or csh>`
Running this alias will add $prefix/install//bin to your path and setup GANGA_CONFIG_PATH as needed
- change prefixStr in ganga_setup.py to your local $prefix
If you do not or not always have acces to AFS on your local machine or want to use
local installations of files that ganga uses, modify your ganga startup file, ~/.gangarc by default,
and the .ini files for your experiment to reflect your local installation paths
--
RoelAaij - 20 Mar 2008
Directory structure:
$prefix/install
$prefix/external
$prefix/tarball
--
JakubMoscicki - 21 Mar 2007
For setup under Windows XP:
You need configure the SSH access first. Instructions can be found under point 6 at:
http://cvs.web.cern.ch/cvs/howto.php#accessing-wincvs