Skip to content

Installation

How to install CORAL and COOL locally for centos7 or slc6#

Let's suppose you have requested an instance on openstack with centos7 or slc6. These are the steps to do a local installation of CORAL and COOL:

#optional: Create a user for CORAL and COOL
#as root
adduser test-user
passwd test-user
#give sudo privileges
usermod -aG wheel test-user

#as root or test-user
sudo yum install git -y
#http://cernvm.cern.ch/portal/filesystem/quickstart
sudo yum install https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm -y
sudo yum install cvmfs cvmfs-config-default -y
sudo cvmfs_config setup
#for slc6: sudo yum install http://linuxsoft.cern.ch/wlcg/sl6/x86_64/wlcg-repo-1.0.0-1.el6.noarch.rpm -y
sudo yum install http://linuxsoft.cern.ch/wlcg/centos7/x86_64/wlcg-repo-1.0.0-1.el7.noarch.rpm -y
#for slc6: sudo yum install HEP_OSlibs_SL6 -y
sudo yum install HEP_OSlibs -y

#as root
#create /etc/cvmfs/default.local with these two lines:
echo "CVMFS_REPOSITORIES=sft.cern.ch" > /etc/cvmfs/default.local
echo "CVMFS_HTTP_PROXY=DIRECT" >> /etc/cvmfs/default.local

#reconnect as test-user: ssh test-user@xxx
sudo mkdir /git
sudo chown test-user:wheel -R /git

cd /git
git clone https://:@gitlab.cern.ch:8443/lcgcoral/coral.git
cd coral
#if you want to install the platform x86_64-centos7-gcc9-dbg based on dev4/latest view
#for slc6: ./cc-build -b x86_64-slc6-gcc7-dbg
./cc-build -b x86_64-centos7-gcc9-dbg -v dev4/latest
# CORAL will be installed in folder ./x86_64-centos7-gcc9-dbg
# you can then run tests, etc.

cd ..
git clone https://:@gitlab.cern.ch:8443/lcgcool/cool.git
cd cool
# optional: if you want your cool to be built using the local build of coral,
# you should edit overrideSetupCMake.sh it exports a new CMAKE_PREFIX_PATH=
# for slc6: ./cc-build -b x86_64-slc6-gcc7-dbg
./cc-build -b x86_64-centos7-gcc9-dbg # without -v, uses dev3/latest view
# COOL will be installed in folder ./x86_64-centos7-gcc9-dbg
# you can then run tests, etc.

If there are no errors, you should have a working CORAL and COOL in <git-repo-folder>/<binary-tag>/.

If you didn't change overrideSetupCMake.sh your COOL build will use the CORAL build of the nightly you chose.

Once the projects are installed, you can proceed to run tests.