Difference between revisions of "Solid install"

From Hall A Wiki
Jump to: navigation, search
(New page: read Up2date GEMC info at http://gemc.jlab.org for installation and tutorial. There are a couple way to GEMC. You can always run it on ifarm for batch mode, but interactive mode will be ...)
 
Line 1: Line 1:
read Up2date GEMC info at http://gemc.jlab.org for installation and tutorial.
+
== Instruction ==
  
There are a couple way to GEMC. You can always run it on ifarm for batch mode, but interactive mode will be slow because the OpenGL 3D rendering.  
+
Before anything, read general GEMC info at http://gemc.jlab.org for installation and tutorial.
 +
 
 +
There are a couple way to run GEMC. You can always run it on ifarm for batch mode, but interactive mode will be slow because the OpenGL 3D rendering.  
  
 
To run interactive mode, install it locally.
 
To run interactive mode, install it locally.
  
The recommend way to install GEMC is by precompiled rpms. if
+
If your computer system is redhat Enterprise Linux 5 (RHEL5) 64bit or 32bit which is the Jlab computer center supported "level X" system or Fedora 14 64bit, you can install the pre-compiled rpm packages.
  
To install by rpm package, I recommend to used yum repo, if it somehow doesn't work, download them directly from http://www.jlab.org/12gev_phys/RPMS/
+
For rpm installation, it's easy to use yum (refer to [https://gemc.jlab.org/gemc/Documentation/Entries/2011/1/2_Install_gemc_on_Linux_with_yum.html]). If it somehow doesn't work, download them directly from http://www.jlab.org/12gev_phys/RPMS/, then install them manually as root to run "rpm -i *.rpm"
  
=== program location ===
+
If your computer system is not one of those two, you can install gemc in a virtual machine. I recommend vmplayer [http://downloads.vmware.com/d/info/desktop_downloads/vmware_player/3_0] and install CentOS 5 x64[http://mirror.centos.org/centos/5/isos/] which is the same system ifarm use.
 +
Then you can use download rpms for redhat Enterprise Linux 5 and install them manually.
  
* [http://clasweb.jlab.org/wiki/index.php/Subversion Subversion help]
+
To get latest version of GEMC, you need to download the source code and compile it your self. Beside, you also need other files from the same source code tree to run GEMC for solid configuration. So you need download gemc source tree. see how below.
  
==== SoLID built within gemc tree ====
+
== Solid GEMC version control ==
'''SVN https://clas12svn.jlab.org/repos/trunk/clas12/gemc/production/''' (all svn sub directory is relative to this location)
+
  
* [http://clasweb.jlab.org/websvn/prod/listing.php?repname=CLAS12&path=%2Ftrunk%2Fclas12%2Fgemc%2Fproduction%2F&sc=1#_trunk_clas12_gemc_production_ WebSVN browser]'''
+
GEMC source code is stored in SVN, to learn some basic about the version control system, refer to [http://clasweb.jlab.org/wiki/index.php/Subversion Subversion help] and google more.
  
* '''''Current working version 4517, 2011/05/14'''''
+
To checkout the svn, do this (it will ask your jlab user name and password)
  
(how to get working version number: go to top directory, run svn update, then run svnversion)
+
svn co https://clas12svn.jlab.org/repos/trunk/clas12/gemc/production/
  
==== Getting the Code which are not in GEMC svn====
+
'''''Current working version 4517, 2011/05/14''''' (how to get working version number: go to top svn directory, run svn update, then run svnversion)
  
  svn checkout https://jlabsvn.jlab.org/svnroot/solid
+
'''(all svn sub directory in the wiki is relative to this location)'''
  
==== SoLID built upon GEMC, using it as a toolkit. ====
+
For a graphic svn client, try "kdesvn" or google others
 +
 
 +
here is a [http://clasweb.jlab.org/websvn/prod/listing.php?repname=CLAS12&path=%2Ftrunk%2Fclas12%2Fgemc%2Fproduction%2F&sc=1#_trunk_clas12_gemc_production_ WebSVN browser]
 +
 
 +
== how to compile GEMC ==
 +
 
 +
To used latest feature of gemc, you need to compile the code yourself.
 +
 
 +
For now, Mauri is working on make the way to compile on general platform.
 +
 
 +
Some old instruction is [http://clasweb.jlab.org/wiki/index.php/Detailed_instructions here]
 +
 
 +
But it's very easy to compile on ifarm.
 +
 
 +
So go to ifarml6 or ifarml1 which are 64bit CentOS now
 +
 
 +
then run
 +
svn co https://clas12svn.jlab.org/repos/trunk/clas12/gemc/production/
 +
cd production
 +
source /site/12gev_phys/ce/jlab.csh
 +
scons OPT=1 -j4
 +
 
 +
Then you should have gemc binary code in the current directory.
 +
 
 +
You can run the newly built gemc on ifarml, but the openGL graphic will be slow.
 +
 
 +
Or if you already gemc rpm installed on your local machine which gives you many gemc dependent library, like root,geant4,evio,clhep etc, you can copy the newly built gemc to your local machine, then you can this new version of gemc. The assumption here is that the version of those external libraries has not changed, only the gemc source code change for this new build.
 +
 
 +
The binary code compiled on ifarm will certainly work on RHEL5, I have also used it on fedora14 x64 just fine too.
 +
 
 +
== SoLID built upon GEMC, using it as a toolkit. ==
 +
 
 +
Another way to run solid simulation is to use GEMC as library,
  
 
To get the code specific to SoLID, solgemc:  
 
To get the code specific to SoLID, solgemc:  
  
 
   svn checkout https://jlabsvn.jlab.org/svnroot/solid/solgemc
 
   svn checkout https://jlabsvn.jlab.org/svnroot/solid/solgemc
 +
 
[[solgemc Installation Instructions]]
 
[[solgemc Installation Instructions]]
  
 
[[solgemc installation outside JLAB]]
 
[[solgemc installation outside JLAB]]
 +
 +
== Getting the Code which are not in GEMC svn==
 +
 +
  svn co https://jlabsvn.jlab.org/svnroot/solid
 +
 +
in includes all other Solid related program, like event generator etc.

Revision as of 23:09, 17 May 2011

Instruction

Before anything, read general GEMC info at http://gemc.jlab.org for installation and tutorial.

There are a couple way to run GEMC. You can always run it on ifarm for batch mode, but interactive mode will be slow because the OpenGL 3D rendering.

To run interactive mode, install it locally.

If your computer system is redhat Enterprise Linux 5 (RHEL5) 64bit or 32bit which is the Jlab computer center supported "level X" system or Fedora 14 64bit, you can install the pre-compiled rpm packages.

For rpm installation, it's easy to use yum (refer to [1]). If it somehow doesn't work, download them directly from http://www.jlab.org/12gev_phys/RPMS/, then install them manually as root to run "rpm -i *.rpm"

If your computer system is not one of those two, you can install gemc in a virtual machine. I recommend vmplayer [2] and install CentOS 5 x64[3] which is the same system ifarm use. Then you can use download rpms for redhat Enterprise Linux 5 and install them manually.

To get latest version of GEMC, you need to download the source code and compile it your self. Beside, you also need other files from the same source code tree to run GEMC for solid configuration. So you need download gemc source tree. see how below.

Solid GEMC version control

GEMC source code is stored in SVN, to learn some basic about the version control system, refer to Subversion help and google more.

To checkout the svn, do this (it will ask your jlab user name and password)

svn co https://clas12svn.jlab.org/repos/trunk/clas12/gemc/production/ 
Current working version 4517, 2011/05/14 (how to get working version number: go to top svn directory, run svn update, then run svnversion)

(all svn sub directory in the wiki is relative to this location)

For a graphic svn client, try "kdesvn" or google others

here is a WebSVN browser

how to compile GEMC

To used latest feature of gemc, you need to compile the code yourself.

For now, Mauri is working on make the way to compile on general platform.

Some old instruction is here

But it's very easy to compile on ifarm.

So go to ifarml6 or ifarml1 which are 64bit CentOS now

then run

svn co https://clas12svn.jlab.org/repos/trunk/clas12/gemc/production/
cd production
source /site/12gev_phys/ce/jlab.csh
scons OPT=1 -j4

Then you should have gemc binary code in the current directory.

You can run the newly built gemc on ifarml, but the openGL graphic will be slow.

Or if you already gemc rpm installed on your local machine which gives you many gemc dependent library, like root,geant4,evio,clhep etc, you can copy the newly built gemc to your local machine, then you can this new version of gemc. The assumption here is that the version of those external libraries has not changed, only the gemc source code change for this new build.

The binary code compiled on ifarm will certainly work on RHEL5, I have also used it on fedora14 x64 just fine too.

SoLID built upon GEMC, using it as a toolkit.

Another way to run solid simulation is to use GEMC as library,

To get the code specific to SoLID, solgemc:

 svn checkout https://jlabsvn.jlab.org/svnroot/solid/solgemc

solgemc Installation Instructions

solgemc installation outside JLAB

Getting the Code which are not in GEMC svn

 svn co https://jlabsvn.jlab.org/svnroot/solid

in includes all other Solid related program, like event generator etc.