Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

Building and Installing PTL from Source

1. Build PTL from Source

  • Go to PBSProopenpbs/pbsproopenpbs
  • Run autogen:
      ./autogen.sh
  • To install PTL along with PBS Professional, use the "--enable-ptl" option with configure:
      ./configure --prefix=/opt/pbs --enable-ptl

2. Install Package Dependencies

To install PTL package dependencies, run the appropriate installation command as root.  We list them by platform, for Python >=23.6 && < 3.0:

CentOS

      yum install python-beautifulsoup python2-defusedxml python-nose pexpect

     Also install EPEL (Extra Packages for Enterprise Linux).  The package name is "epel-release".

OpenSUSE

      zypper install python-beautifulsoup python-defusedxml python-nose python-pexpect

Debian/Ubuntu

      apt-get install python-beautifulsoup python-defusedxml python-nose python-pexpect

Inst

**Some of the above mentioned dependencies will require Extra packages for enterprise linux (EPEL) repository installed.

3. Make and Install PBS and PTL

  • Run "make"
  • Run "sudo make install"

PTL gets installed in the parent directory of where PBS Professional is installed. For example if you have given install prefix=/opt/pbs, you can find your PTL installation in the /opt/ptl directory.

4. Update Your Paths

Use the following default path settings:

      export PATH=$PATH:/opt/ptl/bin
export PYTHONPATH=$PYTHONPATH:/opt/ptl/lib/python2.7/site-packages

Creating and Installing RPM Package for PTL

1. Create RPM Package for PTL

  • Go to PBSProopenpbs/pbsproopenpbs
  • Run autogen:
      ./autogen.sh
  • To install PTL along with PBS Professional, use the "--enable-ptl" option with configure:
      ./configure --prefix=/opt/pbs --enable-ptl
  • Run "make dist" command:
      make dist
  • Move the generated "pbsproopenpbs-<version>.tar.gz" file to ~/rpmbuild/SOURCES
  • Copy the pbsproopenpbs.spec file to ~/rpmbuild/SPECS
  • Run the “rpmbuild” command with the “–with ptl” argument:
      rpmbuild -ba  pbspro openpbs.spec  --with ptl


The RPM will then be available in the “rpmbuild/RPMS” folder, along with the other pbspro openpbs rpms.

The rpm name for the PTL RPM will be pbsproopenpbs-ptl-<version>.rpm

2. Install RPM Package

Use "yum install" for all the dependencies to install along with the package.

3. Update Your Paths

You may need to log in again to update your PATHs.

...