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.
- set +x for all files ending with .sh in dCacheBuild/ (recursively), e.g.
- 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.
- if not installing to /opt/d-cache, then create a symlink
- cp dCacheBuild/skel/* to /opt/d-cache, e.g.
- 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.
- set +x for all files ending with .sh in /opt/d-cache (recursively), e.g.
- in /opt/d-cache/etc/dCacheSetup.template erase the spaces after the backslash in the line -Dorg.dcache.dcap.port=0 \
- do