Difference between revisions of "DF JLab Software Install Instructions"

From New IAC Wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
cd GEMC
 
cd GEMC
 
 
mkdir 2.2
 
mkdir 2.2
 
 
wget http://www.jlab.org/12gev_phys/packages/sources/ceInstall/ceInstall_2.2.tar.gz
 
wget http://www.jlab.org/12gev_phys/packages/sources/ceInstall/ceInstall_2.2.tar.gz
 
 
tar -zxpf ceInstall_2.2.tar.gz --strip-components 1 -C 2.2
 
tar -zxpf ceInstall_2.2.tar.gz --strip-components 1 -C 2.2
 +
</syntaxhighlight>
  
 +
Go to the home directory and open .bashrc in your preferred text editor. Add the following to the bottom of the file:
 +
<syntaxhighlight lang="bash">
 +
export JLAB_ROOT=/path/to/JLabSoftware/GEMC
 +
export JLAB_VERSION=2.2
 +
source $JLAB_ROOT/JLAB_VERSION/ce/jlab.sh
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
Now close the terminal and open a fresh one. You should see something like:
 +
 
=GEMC=
 
=GEMC=
 
=COATJAVA=
 
=COATJAVA=
 
=CED=
 
=CED=
 
=DB=
 
=DB=

Revision as of 23:11, 17 May 2018

These instructions are for installing the software on Ubuntu 16.04. It is assumed that you start in a directory named JLabSoftware which contains the directories CED, COATJAVA, DB, and GEMC

CE 2.2

These instructions set up the common environment so that you may then install GEMC. Skip if you don't intend on installing GEMC.

The CE is dependent on the following packages which can be easily installed by sudo apt-get install <package>:

  • g++
  • mysql-client
  • libmysqlclient-dev
  • libx11-dev
  • libxext-dev
  • libglu1-mesa-dev
  • libxt-dev
  • libxmu-dev
  • libxrender-dev
  • libexpat1-dev
  • libxft-dev
  • tcsh
  • cmake
  • git
  • libafterimage-dev
  • scons

Now, assuming you're in the JLabSoftware directory:

<syntaxhighlight lang="bash"> cd GEMC mkdir 2.2 wget http://www.jlab.org/12gev_phys/packages/sources/ceInstall/ceInstall_2.2.tar.gz tar -zxpf ceInstall_2.2.tar.gz --strip-components 1 -C 2.2 </syntaxhighlight>

Go to the home directory and open .bashrc in your preferred text editor. Add the following to the bottom of the file: <syntaxhighlight lang="bash"> export JLAB_ROOT=/path/to/JLabSoftware/GEMC export JLAB_VERSION=2.2 source $JLAB_ROOT/JLAB_VERSION/ce/jlab.sh </syntaxhighlight>

Now close the terminal and open a fresh one. You should see something like:

GEMC

COATJAVA

CED

DB