Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
24Activity
0 of .
Results for:
No results containing your search query
P. 1
Set Up Root and Geant4 On Ubuntu

Set Up Root and Geant4 On Ubuntu

Ratings:

4.0

(1)
|Views: 5,268|Likes:
Published by Jessica Chiang
This article shows how I set up my Ubuntu box for Root, Geant4, MySQL, Apache, and PHPMyAdmin. ROOT
is an object oriented framework for large scale data analysis, especially high energy physics.
This article shows how I set up my Ubuntu box for Root, Geant4, MySQL, Apache, and PHPMyAdmin. ROOT
is an object oriented framework for large scale data analysis, especially high energy physics.

More info:

Published by: Jessica Chiang on Jul 19, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/02/2013

pdf

text

original

 
Jessica Chiang
Set up Geant and Root Development Environment On 64 bitsUbuntu 8.0.4 AMD 64 bits machine
0.1) Install Ubuntu 8.0.4
Install Ubuntu 8.0.4 and complete basic setup such as networking.
0.2) Install Necessary Package
Installed the following packages using "apt-get install" command.
libX11-dev
g++
libxft-dev
libxpm-dev
libxt-dev
freeglut3
freeglut3-dev
libglut3
libglut3-dev
libmotif3
libmotif-dev
x11proto-print-dev
libxaw7-dev
libmudflap0
libmudflap0-dev
 po-debconf 
intltool-debian
subversion
libusb-dev
libboost-dev
libmysql++-dev
autoconf 
automake
libtool
libc6-dev-i386
graphviz and graphviz-dev for GraphViz software
libcxx
 
libxerces28
libxerces28-dev
cppunit-dev
1) Set up Root
Obtain the latest Root fromhttp://root.cern.ch. I used Root version 5.18.Unzip the Root package to the location of choice, say ~/mt-sys. After unzipping, there will be a“root” directory in ~/dev. We will come back in the later step to set up root configuration.To build Root from source, download the source ball, unzip it, then change to the sourcedirectory
#cd ~/SetUpZip#tar -zxvpf <root_src>.tar 
.
gz#cd <root_src>#./configure–-prefix=~/install/root --enable-mysql --enable-opengl --enable-python# make# make install
 Notes on tar options used above-z : unzip the file first-x : extract the files from the tarball-v : "verbose" (i.e tar tells you what files it's extracting)-p : preserves dates, permissions of the original files-f : use the file in question (if you don't specify this, tar just sort of sits around doingnothing)Add the following lines to your ~/.bashrc file
CURCWD=`pwd`cd ~/dev/rootsource bin/thisroot.shcd $CURCWDexport LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ROOTSYS}/lib/rootexport PATH=$ROOTSYS/bin:$PATH
 
2) Set up CLHEP
To build CLHEP, you need gcc-3.2.3 or higher.Obtain CLHEP source package fromhttp://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/clhep.html.I used version 2.0.3.1 (http://proj-clhep.web.cern.ch/projclhep/DISTRIBUTION/distributions/clhep-2.0.3.1.tgz)Save the tar ball in a directory of choice, say ~/install. Then unzip and then do configure, make,and make install in the unzipped directory. Note that by default, the CLHEP is installed in /usr/local. I set the installation path to /home/
username
/dev/CLHEP by doing “./configure –-prefix=/home/
username
/dev/CLHEP”.
cd ~/SetUpZiptar -zxvpf clhep-<version>.tar cd <version>/CLHEP./configure –-prefix=/home/
username
/dev/CLHEPmakemake install
Add the following lines to /home/jessica/.bashrc file
export CLHEP_BASE_DIR=/home/username/dev/CLHEPexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CLHEP_BASE_DIR/lib
3) Set up Geant4
 
).Unzip the tar ball to your directory of choice, say ~/geant4. Unzip and then change directory to~/geant4/geant4.8.2.p01 to run the “Configure” script.
cd ~/SetUpZiptar -zxvpf geant<version>.tar.gzcd geant<version>mkdir data

Activity (24)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Jamal Lahmidi liked this
Ismaailjaf Saaid liked this
Ismaailjaf Saaid liked this
Ismaailjaf Saaid liked this
Ismaailjaf Saaid liked this
Auwalu Musa liked this
Daniel Gordo liked this
Zorin Diaconescu liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->