View topic | Edit | WYSIWYGAttachPDF
r9 - 15 Sep 2014 - 07:30:52 - PaolaFerrarioYou are here: TWiki >  NEXT Web  >  NextSoftware > SoftwareDetectorSimulation > SoftwareNexus > NexusInstallation

NEXUS Installation Guide

Getting the source

Average users (i.e., non-developers) should download the latest tag available at the NEXT Subversion repository:

svn export svn://next.ific.uv.es:/svn/next/nexus/tags/vXrYpZ vXrYpZ

That will download NEXUS tag vXrYpZ and store it in local directory vXrYpZ.

Developers may want to check out the trunk or a given branch:

svn co svn://next.ific.uv.es:/svn/next/nexus/trunk trunk

External Dependencies

NEXUS depends on several third-party libraries. You'll find below what they are, what they are used for in NEXUS and how to install them.

SCons

NEXUS uses SCons as building system. More information here.

Geant4

You should install Geant4.9.2 (last version, 4.9.3, is not supported yet). NEXUS needs the G4 headers to be copied in a single folder and uses the global libraries. In Mac OS X NEXUS currently cannot link against the shared libraries. This will be fixed in the next release. Meanwhile, build only the static libraries.

Geant4 Installation Guidesexternal

IRENE and ROOT

IRENE is used as the event data model for the detector simulation output. You should get IRENE directly from SVN:

svn export svn://next.ific.uv.es:/svn/next/irene/tags/vXrYpZ irene_vXrYpZ

Your best bet is to get the latest tagged version you can find with:

svn ls svn://next.ific.uv.es:/svn/next/irene/tags

You can find instructions on how to build the code in the README file included in the source code.

Once IRENE is installed, make sure to have:

  • IRENE's bin directory (eg, where irene-config is) in your $PATH
  • IRENE's lib directory (eg, where libirene.so is) in your $LD_LIBRARY_PATH (or $DYLD_LIBRARY_PATH)

IRENE depends on ROOT for I/O. Instructions on how to install ROOT from source can be found at: http://root.cern.ch/drupal/content/installing-root-source. You can also decide to install one of the pre-built binaries for your architecture. See available binaries at: http://root.cern.ch/drupal/content/downloading-root

You should install ROOT version >= 5.14.

Once ROOT is installed, make sure to have:

  • $ROOTSYS environment variable pointing to the ROOT top-level directory, eg the one above ROOT's lib
  • $ROOTSYS/bin in your $PATH
  • $ROOTSYS/lib in your $LD_LIBRARY_PATH (or $DYLD_LIBRARY_PATH)

Compiling NEXUS

The building script (SConstruct) tries to locate the headers and libraries of all dependencies using pkg-config scripts or examining common system-paths (/usr/local, for instance). However, if needed, users can specify the location of any dependency via command-line:

scons DEP=/path/to/dep

where DEP is one of the following variables:

IRENE_INCDIR: Path to IRENE headers directory.

IRENE_LIBDIR: Path to IRENE library.

ROOT_INCDIR: Path to ROOT headers directory.

ROOT_LIBDIR: Path to ROOT library.

G4INCLUDE: Path to Geant4 headers directory.

G4LIBDIR: Path to Geant4 global libraries directory.

OGLPATH: Path to OpenGL? libraries and headers.

X11PATH: Path to X11 libraries and headers.

View topic | Edit |  | WYSIWYG | Attach | PDF | Raw View | Backlinks: Web, All Webs | History: r10 < r9 < r8 < r7 < r6 | More topic actions...
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback