Building and Packaging PBS on Debian/Ubuntu

This document is a work in progress and is a by-product of

PP-444 - Getting issue details... STATUS

Steps to build/package PBS on Debian/Ubuntu are listed below -

Method 1 - Using Debian native method

  1. Download PBS source from github.
  2. cd to pbspro/
  3. Install the dependencies.
    1. apt-get install debhelper build-essential autotools-dev gcc automake autoconf comerr-dev libhwloc-dev libx11-dev x11proto-core-dev libxt-dev libedit-dev libical-dev libncurses-dev perl libpq-dev libpython2.7-minimal:amd64 libpython2.7-dev tcl-dev tk-dev swig dpkg-dev libexpat-dev libssl-dev zlib1g-dev:amd64 libxt-dev:amd64 libxext-dev libxft-dev dh-make debhelper devscripts fakeroot xutils lintian

  4. run ./autogen.sh
  5. run ./configure
  6. run make dist.
  7. Step 6 will create pbspro-<version>.tar.gz
  8. Copy the pbspro-<version>.tar.gz to a two-level directory, e.g. ../build/build/
  9. Extract the pbspro-<version>.tar.gz
  10. cd to pbspro-<version> directory.
  11. run dh_make
    1. As debian/ directory is already present, we need to run dh_make --createorig -m
    2. This will create files required by build/packaging machinery in the parent directory.
  12. run dpkg-buildpackage -rfakeroot -uc -us
  13. Step 12 will create the .deb files in the parent directory.

Method 2 - using alien

  1. Install rpmbuild package.
  2. Follow steps 1-5 from Method 1 above.
  3. Build rpm using rpmbuild. Steps described here.
  4. convert the rpm packages to deb using alien.
    1. alien --to-deb --scripts /path/to/rpm/pbspro-server-*.x86_64.rpm

Steps to install PBS from the deb files

For PBS to be installed properly, packages listed in the Depends section of the control file must be installed. There are two ways to do that.

Method 1 - using gdebi - cleaner - this will install the dependencies and PBS in one single step (if gdebi-core is already installed (smile)).

  1. Install gdebi-core
    1. apt-get install gdebi-core
  2. Install the required deb package using dpkg.
    1. #dpkg -i <.deb>
  3. Step 2 will install the package, run the postinstall script and set up pbs.conf file.
  4. Update the /etc/pbs.conf as per requirements
  5. Update /etc/hosts file.
  6. Start PBS
    1. /etc/init.d/pbs start

Method 2 - using apt-get -f - not so clean - this is a 2-step process

  1. Install the required deb package using dpkg.
    1. #dpkg -i <.deb>
  2. Step 1 installation will not be successful, if the dependencies are not already installed. To install dependencies now -
    1. apt-get -f install
  3. Step 2 will install the dependencies, complete PBS installation, run the postinstall script and set up pbs.conf file.
  4. Update the /etc/pbs.conf as per requirements
  5. Update /etc/hosts file.
  6. Start PBS
    1. /etc/init.d/pbs start





OSS Site Map