This wiki is obsolete, see the NorduGrid web pages for up to date information.

Build

From NorduGrid
Jump to navigationJump to search

Build ARC from source: CentOS example

Steps to get ARC built on a new CentOS 5.6 virtual machine:

Add repositories

Add Epel5 repository:

https://fedoraproject.org/wiki/EPEL

Add NorduGrid repository, either by installing the release package for your distribution:

http://download.nordugrid.org/packages/nordugrid-release/releases/11.05/redhat/el5/x86_64/nordugrid-release-11.05-1.el5.noarch.rpm 

(the template on homepage lacks note about sources)

or, go to:

http://download.nordugrid.org/repos-11.05.html

And add the yum repository configuration manually. Don't forget to add sources repository as well, that's missing from documentation (is in bugzilla, will be fixed after vacations)

Install necessary packages

There may be some missing dependencies from yum-builddep, so install these first:

Run:

yum-builddep nordugrid-arc


Download ARC from SVN

Replace tags/nnn with whatever tag or branch you want to build:

svn co http://svn.nordugrid.org/repos/nordugrid/arc1/tags/1.0.1rc4 nordugrid-arc-1.0.1rc4 


Build

cd nordugrid-arc-*
./autogen.sh && ./configure && make dist


Set up rpmbuild

By default it tries to find its directory-structure in a directory owned by root. You can change this by editing the file ~/.rpmmacros , for example:

$ cat ~/.rpmmacros
%_topdir /home/nsc/daniel/rpmbuild

Under this directory there should be a few other directories:

ls ~/.rpmbuild
BUILD  RPMS  SOURCES  SRPMS


Build packages

Copy the nordugrid-arc-*.tar.gz generated in Step 4 to ~/rpmbuild/SOURCES

Run:

rpmbuild -ba nordugrid-arc.spec