Difference between revisions of "Installation Draft"

From cctbx_xfel
Redirect page
Jump to: navigation, search
(First draft)
 
(Redirected page to Installation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
UNDER CONSTRUCTION
+
#REDIRECT [[Installation]]
 
+
== Prerequisites ==
+
 
+
While these tutorials assuming you wish to process XTC streams at SLAC, some users have stills collected from other sources and do not need the full PSDM suite.  If this is the case, see the installation directions below.  Otherwise, it is assumed that the [[Set up PSDM software | PSDM software distribution has been set up]].  Developers may additionally want to [[Set up ssh-agent | set up an ssh-agent]].  Note again that several sites already have ''cctbx.xfel'' installed, and that this step can be skipped for regular users not involved in the development of the software.  Once ''cctbx.xfel'' has been installed it must be [[Setup | set up]] before it can be used.
+
 
+
Finally, you must have a user account on cci.lbl.gov in order to proceed, or else you will not be able to download the sources.
+
 
+
== Standard installation using PSDM  ==
+
 
+
This step has to be performed on a host with Internet access. Not all hosts at SLAC have that, but the members of <i>e.g.</i> pslogin pool do. Make and change to a working directory to contain the new source code and build (this directory should be accessible from any computing nodes ''cctbx.xfel'' will be run. Then download these bootstrap modules:
+
 
+
  svn export svn://svn.code.sf.net/p/cctbx/code/trunk/libtbx/auto_build/bootstrap.py
+
 
+
Then:
+
 
+
  python bootstrap.py hot update --builder=xfel --cciuser=<cciusername> --sfuser=<sourceforgeusername>
+
 
+
This commands instruct bootstrap.py to download static packages required for ''cctbx.xfel'' (hot), and then to checkout the rest of the sources from cci.lbl.gov and sourceforge.net, using the user accounts specified by the cciuser and sfuser parameters, respectively.
+
 
+
After downloading the sources, you need to be sure you have the appropriate compilers before executing the next command.  At SLAC, that means you need to ssh to one of the psana nodes, as the pslogin nodes do not have the requisite compilers.  When ready, configure and compile thusly:
+
 
+
  python bootstrap.py build --builder=xfel --with-python=`which python`
+
 
+
On SLAC's interactive nodes, this takes just over 6 minutes. To avoid problems with run-time dynamic linking of Python extensions, the Python interpreter required for the above command must be the one provided by the PSDM software distribution.  That interpreter can be located using find, <i>e.g.</i>
+
$ find $SIT_ROOT/sw/external/python -perm /0111 -type f -wholename "*/$SIT_ARCH/*/python" 2> /dev/null
+
At SLAC this interpreter is located somewhere under <code>/reg/g/psdm/sw/external/python</code>.  Here we use `which python` to get this path automatically. 
+
 
+
Initialise the running shell using the newly created configuration files.  bash-users should
+
$ . build/setpaths.sh
+
while csh-users will instead need to run
+
% source build/setpaths.csh
+
 
+
To finalize the installation, see [[Setup]].
+
 
+
== External links ==
+
 
+
* [http://cctbx.sourceforge.net/current_cvs/installation.html#manually-building-from-sources-under-unix Manually building from sources under Unix]
+
 
+
 
+
<!-- POSSBILE ADDITIONS:
+
 
+
COMMON PITFALLS:
+
 
+
forget to source the shell configuration files
+
forget to run sit_setup
+
running cxi.pyana from outside the myrelease directory
+
 
+
DEBUGGING:
+
 
+
And a few more things to check: output of "ls -lR arch/*", output of "which python2.7", and the "scons.out" file that results from "scons TRACE=7 > scons.out 2>&1".
+
 
+
What Linux distribution are you running this on (could you past the output of "uname -a" and "cat /etc/issue")?  Could you also tell me which scons you are using (output of "which scons").  Last, could you attach a dump of the environment (env > env.out)?
+
 
+
Andy's information request on debugging: full output from these commands:
+
 
+
% rm -rf arch build
+
% printenv
+
% which scons
+
% which python
+
% which python2.7
+
% scons TRACE=9
+
% ls -lR arch
+
% ls -lR my_ana_pkg
+
 
+
-->
+

Latest revision as of 16:54, 20 March 2015