View topic | Edit | WYSIWYGAttachPDF
r6 - 19 Apr 2010 - 09:52:00 - JMAlboSYou are here: TWiki >  NEXT Web  >  NextSoftware > SoftwareDetectorSimulation > SoftwareNexus > NexusInstallation

NEXUS Installation Guide

Getting the source

The average user (non-developer) should download the latest tag available at the NEXT Subversion repository:

svn export svn:// 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:// trunk

External Dependencies

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


NEXUS uses SCons as building system. More information here.


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


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

svn export svn:// bhep

You should get tag >= v3r4p9. Your best bet is to get the latest tagged version you can find with:

svn ls svn://

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

Once BHEP is installed, make sure to have:

  • BHEP's bin directory (eg, where bhep-config is) in yoyr $PATH
  • BHEP's lib directory (eg, where is) in your $LD_LIBRARY_PATH (or $DYLD_LIBRARY_PATH)

BHEP depends on ROOT for I/O. Instructions on how to install ROOT from source can be found at: You can also decide to install one of the pre-built binaries for your architecture. See available binaries at:

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

Compiling NEXUS

The latest tag can be obtained from our Subversion repository:

svn export svn:// nexus_vXrYpZ

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:

BHEP_INCDIR: Path to BHEP headers directory.

BHEP_LIBDIR: Path to BHEP library directory.

CLHEP_INCDIR: Path to CLHEP headers directory.

CLHEP_LIBDIR: Path to CLHEP library directory.

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 |r8 < r7 < r6 < r5 | 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