mysoftware, installed in /opt/mysoftware-old and with /opt/mysoftware linked to /opt/mysoftware-old:
mkdir /opt/mysoftware-new cd /opt/mysoftware-new pacman -get CACHE:mysoftware # continue the installation and control that it completed successfully (e.g. setup files are there) ln -sf /opt/mysoftware-new /opt/mysoftwareThis is an update order that takes into account requirements, allows a site to remain up and do not require simultaneous updates of multiple packages. Xin are the steps that are usually performed by Xin (remote sw. installation via grid jobs), Admin are the steps that should be performed by a site administrator.
[root@wn /opt/wn-client]$ pacman -get http://software.grid.iu.edu/osg-1.2:wn-clientRemember to setup the CA certificates following the usual OSG instructions.
ATLAS-wn-old (the old version, it points to DQ2Clients 0.1.35), i.e. pacman -get http://www.mwt2.org/caches/:ATLAS-wn-oldIn step 4 above you will need to install the
ATLAS-wn version (the current production version (rolling), it points to the production DQ2Clients 0.1.36 as of 10/24 but 0.1.37 will come out soon), i.e. pacman -get http://www.mwt2.org/caches/:ATLAS-wnIMPORTANT! Before issuing the Pacman command above you have to have a OSG wn-client already installed and the environment variable OSG_GRID must contain the root installation directory (e.g.
export OSG_GRID=/opt/wn-client, if don't have it in your environment).
IMPORTANT 2! DQ2Clients? 0.1.36 (latest release included in ATLAS-wn as of 10/24) and following do require python 2.5 or greater. The system python in RHEL 5 based systems is 2.4.
rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpmInstall python26:
yum install python26Change the DQ2Clients package to use python26. Installing python26 from EPEL will not make it your default Python. DQ2Clients uses the default python in your environment (
/usr/bin/env python).
In order to have DQ2Clients using it you have at least these 2 options: atlasosgcompat/bin part of both the ATLAS-wn and the wlcg-client packages is added to the PATH when the setup file for ATLAS-wn or wlcg-client is sourced.
Link atlasosgcompat/bin/python to pythonloader, so that it will become the default python in the users PATH once they source the ATLAS-wn or wlcg-client setup:
ln -s $VDT_LOCATION/atlasosgcompat/bin/pythonloader $VDT_LOCATION/atlasosgcompat/bin/pythonThis script checks your current python, the one on top of the PATH. If you have already python>= 2.5 does nothing and uses that one to run your python script. If not, it checks in possible places where python 2.5 or greater could be (all the python or python26 executables in the path) and uses the first one it encounters (instead of the one on top of the PATH) to run your python script. You don't choose exactly which version to run, id depends on the PATH content and order. This solution is the least invasive. It is not changing external packages and it is not replacing your custom python that may have been added to the PATH (e.g. by Athena setup).
atlasosgcompat/bin part of the ATLAS-wn package is added to the PATH when the setup file for ATLAS-wn is sourced.
Adding a link named python will hide/replace the system python, e.g.: cd /osg/app/atlas_app/atlaswn/atlasosgcompat/bin ln -s /usr/bin/python26 pythonThis solution is not changing packages different from ATLAS-OSG-compat but it will change the default python once the setup file is sourced and DQ2Clients my end up using a different python if the PATH is changed afterwards (this is not a problem as long as it is any Python 2.5/6 32bit or 64bit).
/usr/bin/env python and the default system python in the path is python 2.4 (RHEL5 based OS). To change them to use python26 do the equivalent of:cd /osg/app/atlas_app/atlaswn/DQ2Clients/opt/dq2/bin/ for i in * ; do sed -i "1s|#!/usr/bin/env python|#!/usr/bin/python26|" $i; doneThis solution is changing an external package (DQ2Clients not developed by us) and needs to be reapplied each time that package is updated/installed, but it will not change the default python and DQ2Clients my always use /usr/bin/python26.
Python32bit26 if you have a 32 bit OS (can work also on 64 bit OS if you need it for a test)
Python64bit26 if you have a 64 bit OS and prefer 64 bit python (recommended for 64 bit OS)
pacman -get http://www.mwt2.org/caches/:Python64bit26This will add python 2.6 as default python once the setup file is sourced, so it is equivalent to the solution adding python26 to the PATH: it is not changing DQ2Clients package but it will change the default python once the setup file is sourced and DQ2Clients my end up using a different python if the PATH is changed afterwards (this is not a problem as long as it is any Python 2.5/6 32bit or 64bit).
Please note that this site is a content mirror of the BNL US ATLAS TWiki. To edit the content of this page, click the Edit this page button at the top of the page and log in with your US ATLAS computing account name and password.