...
Jira Legacy | ||||||||
---|---|---|---|---|---|---|---|---|
|
Steps to build/package PBS on Debian/Ubuntu are listed below -
Method 1 - Using Debian native method.
- Download PBS source from github.
- cd to pbspro/
- Install the dependencies.
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
- run ./autogen.sh
- run ./configure
- run make dist.
- Step 6 will create pbspro-<version>.tar.gz
- Copy the pbspro-<version>.tar.gz to a two-level directory, e.g. ../build/build/
- Extract the pbspro-<version>.tar.gz
- cd to pbspro-<version> directory.
- run dh_make
- As debian/ directory is already present, we need to run dh_make --createorig -m
- This will create files required by build/packaging machinery in the parent directory.
- run dpkg-buildpackage -rfakeroot -uc -us
- Step 12 will create the .deb files in the parent directory.
Method 2 - using alien.
- Install rpmbuild package.
- Follow steps 1-5 from Method 1 above.
- Build rpm using rpmbuild. Steps described here.
- convert the rpm packages to deb using alien.
- alien --to-deb --scripts /path/to/rpm/pbspro-server-*.x86_64.rpm
...
Method 2 - using apt-get -f - not so clean - this is a 2-step process.
- Install the required deb package using dpkg.
- #dpkg -i <.deb>
- Step 1 installation will not be successful, if the dependencies are not already installed. To install dependencies now -
- apt-get -f install
- Step 2 will install the dependencies, complete PBS installation, run the postinstall script and setup pbs.conf file.
- Update the /etc/pbs.conf as per requirements
- Update /etc/hosts file.
- Start PBS
- /etc/init.d/pbs start
...