Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Tutorial on WMS build and debian package creation | ||||||||
Line: 42 to 42 | ||||||||
(it is better if possible to use the ssh access: git clone --progress git@github.com:MarcoCecchi/org.glite.wms.git WMS )
Pre-Requisites for build on Debian and for .deb packaging | ||||||||
Changed: | ||||||||
< < | Execute (as root) this command: | |||||||
> > | Execute (as root) the following commands: | |||||||
Changed: | ||||||||
< < | sudo apt-get install build-essential autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils lintian pbuilder cmake dpkg-dev | |||||||
> > | apt-get install curl
curl http://emisoft.web.cern.ch/emisoft/dist/EMI/2/debian/dists/squeeze/main/binary-amd64/emi-release_2.0.0-1.deb6.1_all.deb -o emi-release_2.0.0-1.deb6.1_all.deb
dpkg -i emi-release_2.0.0-1.deb6.1_all.deb
apt-get install build-essential autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils lintian pbuilder cmake dpkg-dev pkg-config
Now an extra EMI software repository is needed to be able to install glite-jobid* packages; as root do the following:
curl http://eticssoft.web.cern.ch/eticssoft/pbuilder/emi-2-deb6-test-x86_64.list -o /etc/apt/sources.list.d/emi-2-deb6-test-x86_64.list apt-get updateNow you can install some dependencies needed by WMS's build (as root): apt-get install libglite-jobid-api-c-dev libglite-jobid-api-cpp-dev libglite-jobid2 libclassad0-dev liblog4cpp5-dev libglobus-io-dev libglobus-gss-assist-dev libglobus-ftp-client-dev libglobus-common-dev libboost-regex-dev libboost-filesystem-dev libboost-date-time-devNow, some dependencies internal and external do not provice the pkg-config .pc files (this is the case of boost, classad, etc.). As root follow these steps: curl http://devel12.cnaf.infn.it:7444/pub/emi/packaging/deb/emi-pkgconfig-compat/deb-emi-pkgconfig-compat-head -o deb-emi-pkgconfig-compat-head chmod +x deb-emi-pkgconfig-compat-head ./deb-emi-pkgconfig-compat-head dpkg -i BINARIES/emi-pkgconfig-compat_1.0.1-1_all.debAt this point your debian box is ready to build WMS software, logout and login as "normal" user. Build (on both SL6 and Debian6_2)These are the steps to follow (at the moment only theorg.glite.wms.common component is covered):
cd $HOME mkdir WORKAREA cd WORKAREA git clone git://github.com/italiangrid/classad-utils.git git clone git://github.com/italiangrid/jobman-exception.git git clone https://github.com/MarcoCecchi/org.glite.wms.git cd classad-utils cmake . -DCMAKE_INSTALL_PREFIX=$HOME/WORKAREA/stage -Dprefix=$HOME/WORKAREA/stage/usr -Dexec_prefix=$HOME/WORKAREA/stage/usr -Dlibdir=$HOME/WORKAREA/stage/usr/lib -Dincludedir=$HOME/WORKAREA/stage/usr/include make install cd .. cd jobman-exception cmake . -DCMAKE_INSTALL_PREFIX=$HOME/WORKAREA/stage -Dprefix=$HOME/WORKAREA/stage/usr -Dexec_prefix=$HOME/WORKAREA/stage/usr -Dlibdir=$HOME/WORKAREA/stage/usr/lib -Dincludedir=$HOME/WORKAREA/stage/usr/include make install cd .. cd org.glite.wms/org.glite.wms.common cmake . -DPREFIX=$HOME/WORKAREA/stage/usr make installIn order to make sure that everything worked try to execute an executable provided by org.glite.wms.common :
export LD_LIBRARY_PATH=$HOME/WORKAREA/stage/usr/lib $HOME/WORKAREA/stage/usr/bin/glite-wms-get-configuration Configuration problem: file "glite_wms.conf" not found in the path(s) /etc/glite-wms, /opt/glite/etc, /etc, | |||||||
Added: | ||||||||
> > | It doesn't matter the error output, this is just to verify that the exe is correctly compiled and linked. | |||||||
TBC -- AlviseDorigo - 2012-10-04 |