Technical-DCache SourceInstallation

About NDGF

About
People
Meetings
Forums
Steering Board

Documents

Presentations
Technical
Managemental
Links

Activities

Planning
Operation
Middleware
Tier-1

e-Science Projects

CERN
BioGrid
CO2
CC-VO


Added by Wikiuser -, last edited by Gerd Behrmann on Dec 05, 2007  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Overview

The dCache source code is distributed from http://www.dcache.org for inspection purposes. The latest source code released as of this writing is 1.7.0. In contrast, the latest binary release is 1.7.3.

Installing from source is possible, although a number of issues need to be resolved. The dCache build system is based on Apache Ant. It is possible to install directly from the build environment or to generate RPMs. Below, the direct install method is described.

It should be noted that the source code for the PNFS server is not available. Neither is the source code for the cells packages, on which dCache is build. An essential jar file, cells-protocols.jar, is missing from the source distributed. To build from source, this file has to be copied from the binary distribution of dCache.

Ubuntu

Instructions for installing dCache 1.7.0 from source on Ubuntu Edgy follow. dCacheBuild/ refers to the build directory.

  • install sun-java5-jdk (from multiverse), ant, build-essential, e.g.
 sudo apt-get install sun-java5-sdk ant build-essential
  • set +x for all files ending with .sh in dCacheBuild/ (recursively), e.g.
 find dCacheBuild/ -name "*.sh" | xargs chmod +x
  • cp cells-protocols.jar to dCacheBuild/dist/classes
  • build dCache in this order: cells.bin, cells-log4j.bin, dcache.bin, srm.bin, dcache-srm.bin, javatunnel.bin, dcap.bin, dcache-classpath, e.g.
 ant -DbinDir=/opt/d-cache cells.bin cells-log4j.bin dcache.bin srm.bin dcache-srm.bin javatunnel.bin dcap.bin dcache-classpath
  • if not installing to /opt/d-cache, then create a symlink
  • cp dCacheBuild/skel/* to /opt/d-cache, e.g.
 cp -a dCacheBuild/skel/* /opt/d-cache/
  • make sure JAVA_HOME is set to something like /use/lib/jvm/java-1.5.0-sun (e.g. in /etc/environment)
  • in /opt/d-cache/install/install.sh, uncomment creation of JAVA_HOME variable and the check for JDK/JRE (near line 175)
  • make sure that /bin/sh points to bash (dash will not work)
  • set +x for /opt/d-cache/bin/dcache-{core,pool,srm}, e.g.
 chmod +x /opt/d-cache/bin/dcache-{core,pool,srm}
  • set +x for all files ending with .sh in /opt/d-cache (recursively), e.g.
 find /opt/d-cache -name "*.sh" | xargs chmod +x
  • in /opt/d-cache/etc/dCacheSetup.template erase the spaces after the backslash in the line -Dorg.dcache.dcap.port=0 \
  • do
 cd /opt/d-cache/bin
 wget http://www.atlasgrid.bnl.gov/dcache_admin/pkg/dcache_scripts/grid-mapfile2dcache-kpwd
 chmod +x grid-mapfile2dcache-kpwd